* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  /* 한글은 어절(단어+조사) 단위로만 줄바꿈되어야 자연스럽다. 기본값(word-break: normal)은
     좁은 화면에서 단어 중간이나 숫자·영단어 바로 뒤에서 끊어버려 부자연스러워 보이는 경우가 많음.
     keep-all로 어절 단위 줄바꿈을 강제하고, 끊을 수 없는 긴 토큰(URL 등)만 break-word로 예외 처리 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul { list-style: none; }

/* Toss's documented TDS type scale: h1 36/700/54, h2 30/600/45, h3 24/600/36, h4 22/600/33 */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: 40px; font-weight: 700; line-height: 58px; }
h2 { font-size: 34px; font-weight: 700; line-height: 48px; }
h3 { font-size: 27px; font-weight: 600; line-height: 38px; }
h4 { font-size: 24px; font-weight: 600; line-height: 34px; }

@media (max-width: 767px) {
  h1 { font-size: 31px; line-height: 44px; }
  h2 { font-size: 24px; line-height: 35px; }
  h3 { font-size: 21px; line-height: 30px; }
  h4 { font-size: 20px; line-height: 28px; }
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-desktop);
}

@media (max-width: 767px) {
  .container { padding: 0 var(--section-pad-mobile); }
}

section {
  padding: 64px 0;
}

@media (max-width: 767px) {
  section { padding: 40px 0; }
}

.section-tint { background: var(--color-bg-tint); }

.section-head {
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: block;
}

.section-head p {
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-size: 16.5px;
}

.text-center { text-align: center; }

/* 모바일에서만 강제 줄바꿈이 필요한 문장에 쓰는 유틸리티 <br> */
.br-mobile { display: none; }
@media (max-width: 767px) {
  .br-mobile { display: inline; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }
