/* ============================================================
   SMAT 올인원 — 공식 홈페이지
   앱과 같은 디자인 토큰 (Apple HIG 기반)
   ============================================================ */

:root {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --secondary: #515154;
  --muted: #86868b;
  --link: #0064d2;
  --hairline: rgba(0, 0, 0, 0.08);
  --fill-quiet: rgba(120, 120, 128, 0.07);

  --blue: #0a84ff;
  --mint: #009b7e;
  --coral: #ff3b6b;

  --measure: 720px;
  --wide: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Pretendard Variable",
    Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --surface: #1c1c1e;
    --fg: #f5f5f7;
    --secondary: #aeaeb2;
    --muted: #8e8e93;
    --link: #6bb6ff;
    --hairline: rgba(255, 255, 255, 0.1);
    --fill-quiet: rgba(120, 120, 128, 0.18);
    --mint: #00b895;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 28px;
  letter-spacing: -0.35px;
  color: var(--fg);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding-left: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ── 레이아웃 ── */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 22px; }
.wrap--wide { max-width: var(--wide); }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

/* ── 헤더 ── */
.hd {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.hd__in {
  max-width: var(--wide); margin: 0 auto; padding: 0 22px;
  height: 56px; display: flex; align-items: center; gap: 10px;
}
.hd__logo { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 16px; }
.hd__logo:hover { text-decoration: none; }
.hd__logo img { width: 28px; height: 28px; border-radius: 7px; }
.hd__nav { margin-left: auto; display: flex; gap: 4px; }
.hd__nav a {
  padding: 7px 12px; border-radius: 9px; font-size: 14.5px;
  color: var(--secondary); font-weight: 500;
}
.hd__nav a:hover { background: var(--fill-quiet); text-decoration: none; color: var(--fg); }
.hd__nav a[aria-current] { color: var(--fg); background: var(--fill-quiet); }

/* ── 타이포 ── */
.h1 { font-size: 40px; line-height: 49px; font-weight: 700; letter-spacing: -1.1px; }
.h2 { font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -0.6px; margin-top: 48px; }
.h3 { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.35px; margin-top: 30px; }
.lead { font-size: 19px; line-height: 31px; color: var(--secondary); }
.small { font-size: 14.5px; line-height: 23px; }
.muted { color: var(--muted); }
p + p, p + ul, ul + p, .h3 + p, p + .note { margin-top: 14px; }
.h2 + p, .h2 + ul { margin-top: 14px; }

/* ── 본문 목록 ── */
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; list-style: none; }
.list li { display: flex; gap: 11px; }
.list li::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); margin-top: 12px;
}
.list--num { counter-reset: n; }
.list--num li::before {
  counter-increment: n; content: counter(n); width: auto; height: auto;
  background: none; color: var(--blue); font-weight: 700; margin-top: 0; min-width: 16px;
}

/* ── 히어로 ── */
.hero { padding: 72px 0 40px; text-align: center; }
.hero__icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.hero__title { font-size: 46px; line-height: 54px; font-weight: 700; letter-spacing: -1.4px; }
.hero__sub { margin-top: 16px; font-size: 19px; line-height: 30px; color: var(--secondary); }
.hero__price {
  display: inline-flex; align-items: baseline; gap: 8px; margin-top: 26px;
  padding: 9px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--hairline); font-size: 15px; color: var(--secondary);
}
.hero__price b { font-size: 19px; color: var(--fg); font-weight: 700; letter-spacing: -0.4px; }

/* ── 색 점 ── */
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 22px; }
.dots span { width: 34px; height: 6px; border-radius: 3px; }

/* ── 카드 ── */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 22px;
}
.card__t { font-size: 17px; font-weight: 600; letter-spacing: -0.35px; }
.card__d { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--secondary); }
.card__tag { font-size: 12px; font-weight: 700; letter-spacing: 0; }

/* ── 스크린샷 ── */
.shots {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 22px 22px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots figure { flex: none; width: 220px; scroll-snap-align: center; margin: 0; }
.shots img { border-radius: 20px; box-shadow: 0 6px 26px rgba(0,0,0,.12); }
.shots figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ── 표 ── */
.tbl { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.tbl th { background: var(--fill-quiet); font-size: 13.5px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.tblwrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 14px; margin-top: 16px; }
.tblwrap .tbl { margin-top: 0; }
.tblwrap .tbl tr:last-child td { border-bottom: 0; }

/* ── 강조 박스 ── */
.note {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 18px 20px; margin-top: 20px;
}
.note--blue { background: color-mix(in srgb, var(--blue) 8%, var(--surface)); border-color: transparent; }
.note__t { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 7px; }
.note p { font-size: 15px; line-height: 25px; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 14px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.35px;
  background: var(--blue); color: #fff;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn--quiet { background: var(--fill-quiet); color: var(--fg); }

/* ── 정책 문서 ── */
.doc { padding: 44px 0 20px; }
.doc__meta {
  margin-top: 18px; font-size: 14px; color: var(--muted);
  padding-bottom: 22px; border-bottom: 1px solid var(--hairline);
}
.doc h2 { font-size: 21px; line-height: 29px; font-weight: 700; letter-spacing: -0.45px; margin-top: 44px; }
.doc h3 { font-size: 16.5px; font-weight: 600; margin-top: 26px; }
.doc p, .doc li { font-size: 16px; line-height: 27px; }
.doc p { margin-top: 12px; }
.toc {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 20px 22px; margin-top: 28px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 15px; line-height: 27px; }

/* ── 푸터 ── */
.ft { border-top: 1px solid var(--hairline); padding: 40px 0 56px; margin-top: 72px; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ft__nav a { font-size: 14.5px; color: var(--secondary); }
.ft__legal { margin-top: 22px; font-size: 13px; line-height: 21px; color: var(--muted); }

/* ── 반응형 ── */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  /* 넓은 화면에서는 캐러셀 대신 격자로 — 양옆이 잘리지 않도록 */
  .shots {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px; overflow: visible;
    max-width: var(--wide); margin: 0 auto; padding: 6px 22px 22px;
  }
  .shots figure { width: 100%; max-width: 240px; justify-self: center; }
}
@media (min-width: 1000px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 30px; }
  .hero__title { font-size: 36px; line-height: 44px; }
  .h1 { font-size: 32px; line-height: 41px; }
  .hd__nav a { padding: 7px 9px; font-size: 13.5px; }
}
