/* HeyBias 웹페이지. 앱의 오방색 "단청 팝" 톤: 한지 바탕, 3px 먹선과 오프셋 그림자 타일, LED 핑크. */
:root {
  --paper: #f3ede0;
  --ink: #111;
  --blue: #1f4fa3;
  --yellow: #f2b81d;
  --red: #d8362f;
  --pink: #ff4fa3;
  --navy: #1b2a4f;
  --muted: #5b574f;
  --line: 3px;
  --shadow: 0 5px 0 var(--ink);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Apple SD Gothic Neo',
    'Malgun Gothic', system-ui, sans-serif;
  line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 상단 바(앱 Home 탑바와 같은 남색) + 단청 줄무늬 */
.site-header { background: var(--navy); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.brand-mark { display: inline-block; width: 34px; height: 34px; }
.site-header nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-header nav a { color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; opacity: 0.9; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.stripe { display: flex; height: 8px; border-bottom: 2px solid var(--ink); }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--blue); }
.stripe i:nth-child(2) { background: var(--red); }
.stripe i:nth-child(3) { background: var(--yellow); }
.stripe i:nth-child(4) { background: var(--paper); }
.stripe i:nth-child(5) { background: var(--ink); }

h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.12; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
h1 .h1-sub { display: inline-block; margin-top: 6px; font-size: 0.62em; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
h3 { font-size: 1.15rem; margin: 22px 0 6px; font-weight: 800; }
p, li { margin: 0 0 10px; }
ul { padding-left: 1.3em; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lead { font-size: 1.15rem; max-width: 36em; }
.muted { color: var(--muted); }
.pink { color: var(--pink); }
section { padding: 44px 0 8px; }

/* 히어로 */
.hero { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 36px; }
.hero > *, .two > * { min-width: 0; }
.hero .copy { align-self: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.05fr 1fr; align-items: center; } }

/* LED 전광판 */
.led {
  position: relative; overflow: hidden; height: 150px;
  background-color: #000;
  background-image: radial-gradient(circle, rgba(70, 70, 70, 0.95) 0.9px, transparent 1.3px);
  background-size: 6px 6px;
  border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; align-items: center;
}
.led span {
  display: inline-block; white-space: nowrap; padding-left: 100%;
  font-size: 4.2rem; font-weight: 800; letter-spacing: 0.06em; color: var(--pink);
  text-shadow: 0 0 14px rgba(255, 79, 163, 0.9), 0 0 32px rgba(255, 79, 163, 0.5);
  animation: marquee 12s linear -4s infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .led { justify-content: center; }
  .led span { animation: none; padding-left: 0; }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 12px 22px; border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: var(--shadow);
}
.btn[aria-disabled='true'] { background: #e6dfd0; color: var(--muted); cursor: default; }
.btn.ghost { background: transparent; box-shadow: none; padding: 8px 16px; font-size: 0.95rem; }

/* 스크린샷 자리: 이미지(/screenshots/0N.png)가 있으면 덮고, 없으면 점선 상자가 보인다. */
.shots { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 700px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; min-width: 0; }
@media (min-width: 700px) { .shot:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); } }
.shot .frame {
  position: relative; aspect-ratio: 844 / 390; overflow: hidden;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 700; font-size: 0.95rem; text-align: center; padding: 10px;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(0, 0, 0, 0.035) 14px 28px);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin: 14px 4px 0; font-weight: 700; }

/* 단계 타일 */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.tile { border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 18px 14px; min-height: 230px; }
.tile .glyph { font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.tile .num { display: block; margin-top: 6px; font-weight: 800; font-size: 0.9rem; opacity: 0.85; }
.tile h3 { margin: 2px 0 8px; font-size: 1.35rem; }
.tile p { font-weight: 700; font-size: 0.98rem; line-height: 1.45; margin: 0; }
.tile.blue { background: var(--blue); color: #fff; }
.tile.yellow { background: var(--yellow); color: var(--ink); }
.tile.red { background: var(--red); color: #fff; }
.tile.black { background: var(--ink); color: #fff; }
.tile.black .glyph { color: var(--pink); text-shadow: 0 0 10px rgba(255, 79, 163, 0.7); }

/* 카드·목록 */
.card { background: #fff; border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 24px; margin: 22px 0; }
.card ul { margin: 0; }
.two { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; }

details { background: #fff; border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); padding: 12px 18px; margin: 0 0 18px; }
summary { cursor: pointer; font-weight: 800; }
details[open] summary { margin-bottom: 8px; }

.updated { color: var(--muted); font-size: 0.9rem; }
.license-text {
  background: #fff; border: var(--line) solid var(--ink); border-radius: 16px; padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.doc { max-width: 720px; padding-top: 12px; }
.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin-top: 24px; }

.site-footer { margin-top: 64px; background: var(--navy); color: #fff; padding: 22px 0 34px; font-size: 0.92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.site-footer a { color: #fff; }
.site-footer .note { opacity: 0.75; font-size: 0.85rem; margin-top: 6px; }

.shot-group { display: flex; align-items: center; gap: 10px; margin: 30px 0 0; font-size: 1.1rem; }
.shot-group i { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 5px; }
.hero .chips { margin: 14px 0 0; }
