/* GitHub App 설치 가이드 (정적 페이지) */

:root {
  color-scheme: light;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo',
    'Malgun Gothic', Arial, sans-serif;
  color: #203650;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 헤더 */

.header {
  background: #fff;
  border-bottom: 1px solid #e0e9f3;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1600px;
  min-height: 85px;
  padding: 12px 32px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand img {
  object-fit: contain;
}

/* 본문 */

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1600px;
  padding: 30px 32px 75px;
  margin: 0 auto;
}

.guide-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 0 40px;
}

.guide-page > h1 {
  color: #173d70;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.guide-page > p {
  color: #5f7189;
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 32px;
  word-break: keep-all;
}

/* 설치 버튼 */

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 20px;
  color: #fff;
  background: #245db7;
  border: 1px solid #245db7;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease;
}

.primary-button:hover {
  background: #183e82;
}

.primary-button:focus-visible {
  outline: 3px solid #9dbcf0;
  outline-offset: 2px;
}

.guide-cta {
  margin: 0 0 28px;
}

/* STEP 카드 */

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 30px;
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid #dde7f3;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(18, 52, 100, 0.025);
}

.guide-step > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.guide-step > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  margin-bottom: 18px;
  color: #235cbb;
  background: #eaf2ff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.guide-step h2 {
  color: #1d416d;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 16px;
  word-break: keep-all;
}

.guide-step p {
  color: #42536b;
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 18px;
  word-break: keep-all;
}

/* 화면 예시 (크기는 img의 width, height 속성으로 정한다) */

.guide-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #f4f7fc;
  border: 1px solid #dce6f3;
  border-radius: 12px;
}

/* 푸터 */

.footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 85px;
  padding: 20px 35px;
  color: #647589;
  background: #fff;
  border-top: 1px solid #e0e8f3;
  font-size: 12px;
}

.footer img {
  object-fit: contain;
}

/* 태블릿 */

@media (max-width: 1000px) {
  .guide-page {
    padding: 10px 4px 30px;
  }

  .guide-step {
    padding: 24px;
  }

  .guide-step h2 {
    font-size: 21px;
  }
}

/* 모바일 */

@media (max-width: 700px) {
  .header-inner {
    min-height: 64px;
    padding: 12px 15px;
  }

  .brand img:first-child {
    width: 48px;
    height: 38px;
  }

  .brand img:last-child {
    width: 84px;
    height: 38px;
  }

  .main-content {
    padding: 22px 15px 50px;
  }

  .guide-page {
    padding: 5px 0 25px;
  }

  .guide-page > h1 {
    font-size: 26px;
  }

  .guide-page > p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .guide-step {
    padding: 20px;
    margin-bottom: 20px;
  }

  .guide-step p {
    font-size: 14px;
    line-height: 1.8;
  }

  .primary-button {
    width: 100%;
  }

  .footer {
    padding: 16px 15px;
  }
}
