/* 랜딩. 방송 블루스크린 파랑을 첫 화면과 다운로드 영역에 깔고, 그 위에 실제 앱 화면을 올린다 */
/* 제목 글꼴: G마켓 산스 Bold를 랜딩에 쓰인 글자만 남겨 줄인 파일(630KB → 22KB).
   랜딩 문구에 새 글자가 생기면 그 글자만 기본 글꼴로 보이므로 다시 만든다:
   uvx --from fonttools --with brotli pyftsubset GmarketSansBold.woff --flavor=woff2 \
     --text-file=<index.html의 글자> --output-file=site/fonts/gmarket-sans-bold.woff2 */
@font-face {
  font-family: 'GmarketSans';
  src: url('/fonts/gmarket-sans-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --blue: #2340f5; /* 브랜드: 블루스크린 */
  --yellow: #ffe45c; /* 파랑 위 버튼 */
  --ink: #0b1233; /* 본문 글자 (남색) */
  --muted: #4b5274;
  --paper: #f5f7ff;
  --white: #fff;
  --rule: #dfe3f5;
  --display: 'GmarketSans', 'Pretendard Variable', sans-serif;
  --text: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Malgun Gothic', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1160px;
  --edge: max(var(--gutter), calc((100vw - var(--wide)) / 2));
  --overlap: clamp(100px, 16vw, 240px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--text);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.button {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}
.button:hover {
  background: #fff07f;
}
.button.ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.55);
}
.button.ghost:hover {
  box-shadow: inset 0 0 0 2px var(--white);
}

/* 상단 + 첫 화면 */
.top {
  background: var(--blue);
  color: var(--white);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px var(--edge);
}
.wordmark {
  color: var(--white);
  font: 700 19px var(--display);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.top nav a {
  color: rgb(255 255 255 / 0.82);
}
.top nav a:hover {
  color: var(--white);
}
.top nav .top-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.hero {
  padding: clamp(48px, 7vw, 96px) var(--edge) 0;
  /* 파랑은 앱 화면 아래쪽 일부를 남기고 끝난다 */
  background: linear-gradient(var(--blue) calc(100% - var(--overlap)), var(--paper) 0);
  color: var(--white);
}
.hero-copy {
  max-width: 1000px;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.15;
}
.hero-copy > p {
  max-width: 32em;
  margin: 0 0 32px;
  color: rgb(255 255 255 / 0.86);
  font-size: clamp(17px, 1.5vw, 20px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .fine {
  margin: 18px 0 0;
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
}
/* 실제 앱 화면: 파랑에서 아래 본문으로 걸쳐 놓는다 */
/* 1920px 앱을 너무 줄이면 글자가 뭉개지므로 본문 폭보다 넓게 쓴다 */
/* 100vw는 스크롤바 폭을 포함해 가로 스크롤을 만들므로, 음수 여백으로 양옆 --gutter까지만 넓힌다 (최대 1600px) */
.shot {
  margin: clamp(48px, 6vw, 80px) 0 0;
  margin-inline: max(var(--gutter) - var(--edge), (100% - 1600px) / 2);
}
.shot video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.18),
    0 40px 80px rgb(6 12 60 / 0.4);
}
.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* 본문 */
main {
  padding: 0 var(--gutter);
}
.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0 0;
}
.section h2,
.download h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
}
.section h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 750;
}
.section p {
  color: var(--muted);
}

/* 세 단계 (순서가 있어 번호를 붙인다) */
.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.step-text::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font: 700 44px/1 var(--display);
}
.step-text p {
  max-width: 28em;
  margin: 0;
}
.steps img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgb(11 18 51 / 0.16);
}

/* 방송 종류 탭 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.tabs button {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--rule);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.tabs button:hover {
  color: var(--ink);
}
.tabs button[aria-selected='true'] {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}
.case dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 24px 0 0;
  padding: 8px 28px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.case dt,
.case dd {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.case dt:last-of-type,
.case dd:last-of-type {
  border-bottom: 0;
}
.case dt {
  padding-right: 24px;
  font-size: 19px;
  font-weight: 700;
}
.case dd {
  color: var(--muted);
}
.note {
  margin: 14px 0 0;
  font-size: 14px;
}

/* 투명성 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
}
.split .lead {
  max-width: 26em;
}
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.facts li:first-child {
  padding-top: 0;
}
.facts p {
  margin: 0;
}

/* 연동 프로그램 */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.apps li {
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.apps strong {
  display: block;
  font-size: 17px;
}
.apps span {
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faq {
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-of-type {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--blue);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: -6px 0 22px;
  max-width: 40em;
}

/* 다운로드: 첫 화면과 같은 파랑으로 마무리 */
.download {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: end;
  max-width: var(--wide);
  margin: clamp(80px, 10vw, 136px) auto 0;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 24px;
  background: var(--blue);
  color: var(--white);
}
.download table {
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 15px;
}
.download th,
.download td {
  padding: 6px 0;
  text-align: left;
  vertical-align: top;
}
.download th {
  width: 7em;
  color: rgb(255 255 255 / 0.72);
  font-weight: 500;
}
.download-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}
.download-actions a:not(.button) {
  color: var(--white);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 48px var(--gutter);
  color: var(--muted);
  font-size: 14px;
}
.foot nav {
  display: flex;
  gap: 20px;
}
.foot a {
  color: var(--muted);
}
.foot a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .steps > li,
  .split,
  .download {
    grid-template-columns: 1fr;
  }
  .top nav a:not(.top-cta) {
    display: none;
  }
  .case dl {
    grid-template-columns: 1fr;
    padding: 4px 20px;
  }
  .case dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }
  .case dd {
    padding-top: 0;
  }
  .case dd:last-of-type {
    border-bottom: 0;
  }
  .case dd:not(:last-of-type) {
    border-bottom: 1px solid var(--rule);
  }
}
