/* 소개 페이지 전용 스타일 (공용: /assets/css/common.css) */

.home-nav { display: flex; gap: 16px; margin-left: 12px; }
.home-nav a { color: var(--text-sub); text-decoration: none; font-weight: 600; }
.home-nav a:hover { color: var(--green-dark); }

.btn-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}
.btn-link:hover { background: var(--green-dark); }

.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.btn-primary { background: var(--green); color: var(--white); border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: var(--white); color: var(--green-dark); border: 1px solid var(--green); }

/* 첫 화면 */
.hero { background: linear-gradient(180deg, var(--green-light), var(--bg)); padding: 56px 20px 48px; }
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow { color: var(--green-dark); font-weight: 700; margin: 0 0 8px; letter-spacing: 0.02em; }
.hero h1 { font-size: 40px; letter-spacing: -0.02em; }
.lead { font-size: 17px; color: var(--text-sub); margin: 0 0 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.small { font-size: 13px; }

/* 이미지 자리표시 (사진이 준비되면 교체) */
.placeholder {
  background: repeating-linear-gradient(45deg, #eceeed, #eceeed 10px, #e4e8e6 10px, #e4e8e6 20px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.placeholder.tall { min-height: 320px; }
.placeholder.small-box { min-height: 48px; padding: 12px 16px; flex: 1; }

/* 앱 화면 슬라이드쇼 (첫 화면) */
.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1c1f1d;
  box-shadow: 0 10px 30px rgba(28, 31, 29, 0.12);
}
.slides {
  position: relative;
  /* 화면 비율(약 16:10)을 미리 잡아 두어 전환할 때 높이가 흔들리지 않는다 */
  aspect-ratio: 1278 / 797;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.slide.on { opacity: 1; }

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(28, 31, 29, 0.55);
}
.dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dots button:hover { background: rgba(255, 255, 255, 0.75); }
.dots button.on { background: var(--white); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* 슬라이드 클릭 안내 */
.slides { cursor: zoom-in; }
.zoom-hint {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 31, 29, 0.6);
  color: var(--white);
  font-size: 12px;
  pointer-events: none;
}

/* 화면 크게 보기 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 18, 17, 0.92);
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lightbox.on { display: flex; }
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* 화면을 넘지 않게 맞춰 스크롤 없이 한 번에 보이도록 한다 */
  max-width: 100%;
  max-height: calc(100vh - 120px);
}
.lightbox-figure img {
  max-width: min(1400px, 94vw);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: #1c1f1d;
}
.lightbox-figure figcaption { color: rgba(255, 255, 255, 0.85); font-size: 14px; text-align: center; }
.lightbox .dots { background: none; padding: 0; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* 크게 보기가 열려 있는 동안에는 뒤 배경이 스크롤되지 않게 한다 */
body.no-scroll { overflow: hidden; }

/* 섹션 */
.section { padding: 56px 20px; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner.narrow { max-width: 680px; }
.section h2 { font-size: 26px; }
.section-lead { color: var(--text-sub); margin: 0 0 28px; }

/* 기능 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.section.alt .feature { background: var(--bg); }
.feature .icon { font-size: 26px; margin-bottom: 8px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-sub); }

/* 구성도 */
.diagram { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.node {
  flex: 1 1 200px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.section.alt .node { background: var(--white); }
.node.accent { border-color: var(--green); background: var(--green-light); }
.node-title { font-weight: 700; margin-bottom: 6px; color: var(--green-dark); }
.node p { margin: 0; color: var(--text-sub); font-size: 13px; }
.arrow { align-self: center; color: var(--green); font-size: 22px; font-weight: 700; }

.notes { margin: 0; padding-left: 18px; color: var(--text-sub); }
.notes li { margin-bottom: 6px; }

/* 도입 절차 */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-no {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 10px;
}
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text-sub); font-size: 13px; }

/* 앱 설치 */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.install-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.install-box p { color: var(--text-sub); }
.store-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* 문의 폼 */
.agree { display: flex; align-items: center; gap: 8px; color: var(--text-sub); margin: 8px 0 14px; }
.agree input { width: auto; }

/* 바닥글 */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 28px 20px; }
.foot-title { font-weight: 700; color: var(--green-dark); }
.foot-links { display: flex; gap: 14px; align-items: flex-start; }
.foot-links a { color: var(--text-sub); text-decoration: none; }
.foot-links a:hover { color: var(--green-dark); }
.footer p { margin: 2px 0; }

/* 문서 페이지(약관·개인정보처리방침) */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 20px 60px; }
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 18px; margin-top: 28px; }
.doc p, .doc li { color: var(--text-sub); }
.doc .updated { color: var(--text-sub); font-size: 13px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .install { grid-template-columns: 1fr; }
  .arrow { display: none; }
}

@media (max-width: 560px) {
  .home-nav { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .section { padding: 36px 16px; }
}
