/* 13차 랜딩 "첫 10초" (landing.js 짝) — style.css 바로 뒤에 읽음 */
/* 13차: JS가 그리기 전 빈 본문이면 푸터를 화면 밖에 둠 (그린 뒤 푸터가 밀려 내려가는 레이아웃 밀림 방지) */
main#app:empty { min-height: 100vh; }

/* ================= 13차 랜딩 "첫 10초" — 설명 대신 경험 =================
   실시간 후원 티커(헤더 아래 얇은 띠) · 히어로(폰 안에 살아 있는 크리에이터 페이지 3명 자동 전환) · 오늘 숫자 3개 · 분야 카드 콜라주
   색은 12차 변수만 (라이트 딥그린 / 다크 골드) · 움직임 줄이기 설정이면 티커·스크롤 멈춤 */
.ticker { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 0 0 16px; background: var(--accent-soft); color: var(--text); font-size: 13px; border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker[hidden] { display: none; }
.tk-live { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); font-size: 12px; }
.tk-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); animation: tk-pulse 1.6s ease-out infinite; }
@keyframes tk-pulse { 70% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.tk-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.tk-track { display: flex; width: max-content; animation: tk-run var(--tk-dur, 40s) linear infinite; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
@keyframes tk-run { to { transform: translateX(-50%); } }
.tk-set { display: flex; flex: none; }
.tk-i { display: inline-flex; align-items: center; gap: 6px; padding: 0 26px 0 0; white-space: nowrap; font-weight: 600; color: var(--text-2); }
.tk-i:hover { color: var(--accent); }
.tk-w { color: var(--accent); font-weight: 800; font-size: 12px; }

.hero2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; max-width: 1080px; margin: 0 auto; padding: 48px 8px 28px; }
.h-eye { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; }
.h-eye i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero2 h1 { margin: 18px 0 14px; font-size: 54px; line-height: 1.14; font-weight: 900; letter-spacing: -.055em; color: var(--text); }
.hero2 .sub { color: var(--sub); font-size: 17px; line-height: 1.6; max-width: 460px; }
.h-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 16px; font-weight: 800; }
.today { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.today li { background: var(--card); box-shadow: var(--shadow); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.today b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today span { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); font-weight: 600; }

/* 폰 프레임 + 안의 크리에이터 페이지 */
.h-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { position: relative; display: block; width: 300px; height: 600px; padding: 12px; border-radius: 46px; background: #111; box-shadow: 0 0 0 1px #2A2A2A, 0 30px 60px rgba(0, 0, 0, .22), inset 0 0 0 2px #333; transition: transform .2s; }
.phone:hover { transform: translateY(-3px); }
.ph-notch { position: absolute; z-index: 3; top: 22px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #111; }
.ph-screen { position: relative; display: block; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); }
.lp { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.lp.on { opacity: 1; }
.lp-scroll { padding-bottom: 70px; }
.lp-scroll.run { animation: lp-run 5.6s ease-in-out .6s both; }
@keyframes lp-run { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(var(--dist, 0)); } }
.lp-cover { height: 120px; background: var(--accent-soft); overflow: hidden; }
.lp-cover img { width: 100%; height: 100%; object-fit: cover; }
.lp-head { display: flex; align-items: flex-start; gap: 10px; margin: -27px 14px 0; position: relative; }
.lp-head .lp-nm { padding-top: 30px; }
.lp-head .avatar, .lp-head .avatar-ph { box-shadow: 0 0 0 3px var(--bg); }
.lp-nm { min-width: 0; padding-bottom: 2px; }
.lp-nm b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.03em; }
.lp-nm span { display: block; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tag { margin: 8px 14px 0; font-size: 12px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-num { display: flex; gap: 12px; margin: 6px 14px 0; font-size: 11px; color: var(--sub); }
.lp-num b { color: var(--text); }
.lp-btns { display: flex; gap: 6px; margin: 10px 14px 0; }
.lp-btn { flex: 1; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--text); }
.lp-btn.primary { background: var(--accent); color: var(--on-accent); }
.lp-goal { margin: 10px 14px 0; padding: 10px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 11px; }
.lp-goal b { font-size: 11px; }
.lp-goal small { display: block; margin-top: 4px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-bar { height: 6px; margin-top: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.lp-tabs { display: flex; gap: 14px; margin: 12px 14px 8px; font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--line); }
.lp-tabs > * { padding-bottom: 6px; }
.lp-tabs b { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 14px; }
.lp-t { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.lp-t img { width: 100%; height: 100%; object-fit: cover; }
.lp-t.lp-lk { background: var(--accent-soft); color: var(--accent); }
.lp-t.lp-lk b { font-size: 15px; }
.lp-t small { font-size: 10px; font-weight: 700; }
.lp-t.lp-tx small { padding: 6px; color: var(--sub); font-weight: 600; line-height: 1.35; text-align: center; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-wall { margin: 12px 14px 0; display: grid; gap: 6px; }
.lp-wh { font-size: 12px; }
.lp-msg { display: flex; gap: 8px; padding: 8px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 11px; }
.lp-msg b { font-size: 11px; }
.lp-msg p { margin-top: 2px; color: var(--sub); }
.lp-amt { color: var(--accent); font-weight: 800; }
.lp-anon { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--track-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.lp-tip { position: absolute; left: 8px; right: 8px; bottom: 10px; display: flex; gap: 4px; align-items: center; padding: 6px; border-radius: 16px; background: rgba(var(--card-rgb), .94); box-shadow: 0 6px 18px rgba(0, 0, 0, .16), 0 0 0 1px var(--line); font-size: 11px; font-weight: 800; }
.lp-tip span { flex: 1; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); }
.lp-tip span.on { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); background: var(--accent-soft); }
.lp-tip b { flex: 1.2; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.demo-ctl { display: flex; align-items: center; gap: 8px; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots button, .demo-pause { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; color: var(--sub); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.demo-dots button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.demo-pause { width: 36px; padding: 0; justify-content: center; font-size: 12px; }

/* 분야 카드 (그록 분야 그림 + 대표 크리에이터 얼굴 3개) */
.sec-h { margin-bottom: 18px; }
.sec-h .h2 { margin: 0; }
.sec-h .more { font-size: 14px; font-weight: 700; color: var(--accent); }
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.catcard { display: block; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.catcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.cc-pic { position: relative; display: block; height: 148px; background: var(--accent-soft); }
.cc-art { width: 100%; height: 100%; object-fit: contain; padding: 10px 0 6px; }
.cc-col { position: absolute; left: 12px; bottom: 10px; display: flex; }
.cc-col img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--soft); box-shadow: 0 0 0 2px var(--card); }
.cc-col img + img { margin-left: -8px; }
.cc-b { display: block; padding: 12px 14px 14px; }
.cc-b b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.cc-b .faint { display: block; margin-top: 2px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing .test-band { max-width: 1080px; margin: 4px auto 0; }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; gap: 28px; padding: 28px 4px 18px; }
  .hero2 h1 { font-size: 40px; margin: 14px 0 10px; }
  .lp-cover { height: 100px; }
  .hero2 .sub { font-size: 15px; }
  .h-cta { margin-top: 20px; }
  .h-cta .btn { flex: 1; }
  .btn.lg { height: 52px; padding: 0 16px; font-size: 16px; }
  .today { margin-top: 22px; gap: 8px; }
  .today li { padding: 12px 10px; border-radius: 14px; }
  .today b { font-size: 18px; }
  .today span { font-size: 12px; }
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-pic { height: 112px; }
}
@media (max-width: 420px) {
  .phone { width: 270px; height: 540px; border-radius: 42px; padding: 10px; }
  .ph-screen { border-radius: 33px; }
  .ticker { padding-left: 12px; font-size: 12px; }
  .demo-dots button { padding: 0 10px 0 5px; font-size: 12px; }
}
/* 움직임 줄이기: 티커는 손으로 옆으로 밀어 보기, 폰 화면은 스크롤·자동 넘김 없음 */
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none !important; }
  .tk-view { overflow-x: auto; }
  .tk-set + .tk-set { display: none; }
  .lp-scroll.run, .tk-live i { animation: none !important; }
}
:root[data-theme="dark"] .ticker { background: #14120A; }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 1px #3A3A3A, 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 2px #2A2A2A; }
/* 그림 선이 딥그린이라 다크에서도 그림 칸은 밝은 종이색 */
:root[data-theme="dark"] .cc-pic { background: #E9EFEA; }
:root[data-theme="dark"] .catcard:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
