/* 메인(index) 전용 — 2026-11-08 실제 화면 보강.
   style.css 는 /pay/ 도 쓰므로 건드리지 않고 이 파일에만 둔다.
   브랜드 가이드 v1: 다크 면은 Deep Ink #1E2228 / Deep Card #272C33 / Dark Rule #3A4048 / Dark Body #C9CED4,
   다크 면의 그린은 #3AA37D 만. 라이트 면은 기존 style.css 변수(#17795A)를 그대로 쓴다. */

/* ---------- 지금 돌아가는 것 (다크) ---------- */
.live {
  position: relative;
  overflow: hidden;
  background-color: #1e2228;
  color: #c9ced4;
  padding: 88px 0 92px;
}
/* 정돈된 격자 — 아주 옅게 */
.live::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(201, 206, 212, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 206, 212, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.live .container { position: relative; }
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c9ced4;
  border: 1px solid #3a4048;
  background: #272c33;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3aa37d;
  flex: none;
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.live h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 12px;
}
.live-lead { font-size: 16px; color: #c9ced4; max-width: 640px; }

.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #3a4048;
  border: 1px solid #3a4048;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 36px 0 28px;
}
.live-stat { background: #272c33; padding: 18px 20px; min-width: 0; }
.live-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
}
.live-stat b small { font-family: var(--font); font-size: 14px; font-weight: 600; color: #c9ced4; margin-left: 4px; }
.live-stat span { display: block; margin-top: 6px; font-size: 13px; color: #c9ced4; }

.live-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: start;
}
.live-grid > * { min-width: 0; }

.screen {
  margin: 0;
  background: #272c33;
  border: 1px solid #3a4048;
  border-radius: var(--radius);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #3a4048;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c9ced4;
}
.screen-bar span:last-child { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: #c9ced4;
  border-top: 1px solid #3a4048;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #272c33;
  border: 1px solid #3a4048;
  border-radius: var(--radius);
}
.timeline-head {
  padding: 10px 18px 12px;
  border-bottom: 1px solid #3a4048;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c9ced4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.timeline li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #3a4048;
}
.timeline li:last-child { border-bottom: none; }
.tl-time { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: #ffffff; line-height: 1.5; }
.tl-time small { display: block; font-family: var(--font); font-weight: 500; font-size: 12px; color: #c9ced4; }
.tl-body h3 { font-size: 14.5px; font-weight: 700; color: #ffffff; margin: 0 0 4px; }
.tl-body p { font-size: 13px; color: #c9ced4; line-height: 1.6; }
.tl-out {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #3aa37d;
  border: 1px solid #3a4048;
  border-radius: 999px;
  padding: 1px 9px;
}
.live-foot { margin-top: 22px; font-size: 13px; color: #c9ced4; }
.live-foot a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 서비스 — 실제 화면 한 장 ---------- */
.proof {
  margin: 28px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof img { display: block; width: 100%; height: auto; }
.proof figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.proof figcaption b { color: var(--ink); }

/* ---------- 매일 인스타그램에 올리는 것 ---------- */
.ig-strip .section-head { margin-bottom: 28px; }
.ig-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.ig-grid li { min-width: 0; }
.ig-grid a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.ig-grid a:hover { transform: translateY(-3px); border-color: var(--ink); }
.ig-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ig-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.ig-meta span:last-child { font-family: var(--font-mono); }
.ig-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.ig-actions .btn svg { width: 18px; height: 18px; }
.ig-actions p { font-size: 13px; color: var(--ink-soft); }

/* ---------- 반응형 ---------- */
@media (max-width: 880px) {
  .live { padding: 64px 0 68px; }
  .live-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .live-stats { grid-template-columns: 1fr; }
  .live-stat { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .live-stat span { margin-top: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .tl-time small { display: inline; margin-left: 6px; }
  .screen-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ig-grid { gap: 8px; }
  .ig-meta { flex-direction: column; gap: 0; padding: 6px 8px; font-size: 11px; }
  .ig-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .ig-grid a { transition: none; }
  .ig-grid a:hover { transform: none; }
}
