:root {
  --ink: #16181d;
  --sub: #6b7280;
  --line: #e5e7eb;
  --bg2: #f5f6f8;
  --blue: #2f6bff;
  --red: #ef4444;
}

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0 }
ul, ol { list-style: none }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }
button, input, textarea { font: inherit; color: inherit }
/* 본문이 overflow-wrap: anywhere 라 좁은 화면에서 버튼 글자가 한 자씩 접힌다 */
button { cursor: pointer; white-space: nowrap }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }
.in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover { background: #1f58e6; border-color: #1f58e6 }
.btn.line { background: #fff; border-color: #cfd4dc; color: var(--ink) }
.btn.line:hover { background: #fff; border-color: var(--ink) }
.btn:disabled { opacity: .5; cursor: default }
.btn.more { display: flex; margin: 32px auto 0 }

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}
.tag.off { background: #e9ebef; color: #4b5160 }

.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line) }
.top .in { display: flex; align-items: center; gap: 28px; height: 64px }
.logo { display: flex; align-items: center; height: 44px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap }
.drawer { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0 }
.menu { display: flex }
.menu a { display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 8px; color: #3d424d; font-weight: 500; white-space: nowrap }
.menu a:hover { background: var(--bg2) }
.menu a[aria-current] { color: var(--ink); font-weight: 700 }
.auth { display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 44px; font-size: 15px; white-space: nowrap }
.auth > a:not(.btn), .auth button { display: flex; align-items: center; height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: #3d424d; font-weight: 500 }
.auth > a:not(.btn):hover, .auth button:hover { background: var(--bg2) }
.auth b { min-width: 0; max-width: 12em; margin-right: 6px; overflow: hidden; text-overflow: ellipsis; font-weight: 700 }
.auth .btn { margin-left: 6px; padding: 0 16px }
.burger { display: none }
.burger path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round }
.burger .x, .top.open .burger .m { display: none }
.top.open .burger .x { display: inline }

.foot { margin-top: 96px; padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px }
.foot .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px }
.foot strong { color: var(--ink); font-size: 15px }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 -4px }
.foot nav a { display: flex; align-items: center; min-height: 44px; padding: 0 4px }
.foot nav a:hover { color: var(--ink) }

.home { padding-top: 52px }
.home h1 { font-size: clamp(27px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25 }
.lead { margin-top: 14px; max-width: 34em; color: var(--sub); font-size: 17px }
.ways { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 36px }
.way { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 128px; padding: 24px 68px 24px 28px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s }
.way:hover { border-color: var(--ink) }
.way h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em }
.way p { margin-top: 4px; color: var(--sub); font-size: 15px }
.arr { position: absolute; right: 26px; top: 50%; margin-top: -11px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s }
.way:hover .arr { transform: translateX(4px) }
.way.main { grid-row: span 3; justify-content: flex-start; min-height: 420px; padding: 38px 46% 38px 36px; overflow: hidden; border-color: var(--bg2); background: var(--bg2) }
.way.main:hover { border-color: #c9ced8 }
.way.main h2 { font-size: 30px; letter-spacing: -.03em }
.way.main p { margin-top: 10px; color: #4b5160; font-size: 16px }
.way.main .btn { align-self: flex-start; margin-top: 26px }
/* 사진 바탕이 흰색이라 회색 면에 곱해서 얹는다 */
.way.main img { position: absolute; right: 0; bottom: 0; width: 48%; height: 100%; object-fit: contain; object-position: 50% 100%; transform: translateY(12%); mix-blend-mode: multiply }

.sec { margin-top: 80px }
.sec .hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 14px }
.sec h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em }
.sec .hd a { display: flex; align-items: center; min-height: 44px; color: var(--sub); font-size: 15px; text-decoration: underline; text-underline-offset: 3px }
.sec .hd a:hover { color: var(--ink) }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step }
.steps li { padding-top: 14px; border-top: 2px solid var(--ink); counter-increment: step }
.steps li::before { content: counter(step); color: var(--blue); font-size: 15px; font-weight: 800 }
.steps strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 700 }
.steps p { margin-top: 4px; color: var(--sub); font-size: 15px }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; transition: opacity .15s }
.grid.wait { opacity: .45 }
.card { display: block; min-width: 0 }
.th { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--bg2) }
.th img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s }
.th.no { display: grid; place-items: center; color: var(--sub); font-size: 13px; text-align: center }
a:hover > .th img { transform: scale(1.03) }
.card strong { display: block; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600 }
.card .m { display: flex; align-items: center; gap: 10px; margin-top: 2px; color: var(--sub); font-size: 14px }
.card .by { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.card .n { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums }
.card svg { fill: none; stroke: currentColor; stroke-width: 1.8 }
.card .n.on { color: var(--red) }
.card .n.on svg { fill: var(--red) }
.sk .th { animation: sk 1.2s ease-in-out infinite alternate }
.sk i { display: block; width: 70%; height: 14px; margin-top: 14px; border-radius: 4px; background: var(--bg2) }
.sk i + i { width: 40%; margin-top: 8px }
@keyframes sk { to { opacity: .5 } }

.none { padding: 64px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--sub); text-align: center }
.none .btn { margin-top: 18px }

.state { padding-top: 120px; padding-bottom: 80px; color: var(--sub); text-align: center }
.state h1 { margin-bottom: 8px; color: var(--ink); font-size: 26px; letter-spacing: -.02em }
.state .btn { margin-top: 20px }

.bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding-top: 48px }
.bar h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3 }
.bar p { margin-top: 6px; color: var(--sub) }

.sorts { display: flex; flex-wrap: wrap; gap: 8px }
.seg { display: flex; overflow: hidden; border: 1px solid #cfd4dc; border-radius: 8px }
.seg a { display: flex; align-items: center; height: 44px; padding: 0 16px; color: #4b5160; font-size: 15px; font-weight: 500; white-space: nowrap }
.seg a + a { border-left: 1px solid #cfd4dc }
.seg a[aria-current] { background: var(--ink); color: #fff; font-weight: 600 }
.count { margin: 28px 0 14px; color: var(--sub); font-size: 14px }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 56px }
.pager a { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 500; font-variant-numeric: tabular-nums }
.pager a:hover { background: var(--bg2) }
.pager a[aria-current] { background: var(--ink); color: #fff }

.pre { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-top: 48px }
.pre .side { position: sticky; top: 112px; align-self: start }
.pre h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3 }
.pre .side p { margin-top: 14px; color: #4b5160 }
.pre .side .free { margin-top: 10px; color: var(--ink); font-weight: 600 }
.pre .side .btn { margin-top: 24px }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px }
.tile { display: block; min-width: 0 }
.tile .th { border-radius: 12px }
.tile strong { display: block; margin-top: 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em }
.tile .go { color: var(--blue); font-size: 15px; font-weight: 600 }
.tile:hover .go { text-decoration: underline; text-underline-offset: 3px }
.tile.sk i { height: 18px }

.det { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; padding-top: 28px }
.stage { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; height: calc(100vh - 148px); min-height: 440px; max-height: 860px; overflow: hidden; border-radius: 14px; background: var(--bg2) }
.stage img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain }
/* 방향 버튼과 안내 글이 머리 끝을 가리지 않게 캔버스는 그 위까지만 쓴다. 글자를 키워 버튼이 두 줄이 되면 그만큼 줄어든다 */
.stage canvas { flex: 1; width: 100%; min-height: 0; visibility: hidden; touch-action: none }
.stage.live canvas { visibility: visible }
.stage.live img { display: none }
.note { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .86); color: #4b5160; font-size: 13px }
.stage.live .note { position: static; max-width: none; padding: 5px 12px 10px; background: none; text-align: center }
.views { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 12px }
.views button { min-width: 52px; height: 44px; padding: 0 10px; border: 1px solid #d8dce3; border-radius: 22px; background: #fff; font-size: 14px; font-weight: 500 }
.views button:hover { border-color: var(--ink) }

.info { min-width: 0; padding-top: 8px }
.kind { margin-bottom: 6px; color: var(--blue); font-size: 14px; font-weight: 700 }
.info h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3 }
.by { margin-top: 8px; color: var(--sub); font-size: 15px }
.by span { color: var(--ink); font-weight: 600 }
.by time::before { content: '·'; margin: 0 6px }
.memo { margin-top: 18px; color: #3d424d; white-space: pre-wrap }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px }
.like { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; font-weight: 600; font-variant-numeric: tabular-nums }
.like svg { fill: none; stroke: currentColor; stroke-width: 1.8 }
.like:hover { border-color: var(--red) }
.like[aria-pressed=true] { border-color: var(--red); color: var(--red) }
.like[aria-pressed=true] svg { fill: var(--red) }
.msg { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--bg2); font-size: 15px }
/* 문장 속 링크도 손가락에 걸리게 위아래를 넓히고 그만큼 당긴다 */
.msg a, .ask a, .alt a { display: inline-block; margin: -13px -4px; padding: 13px 4px; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px }
.own { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px }
.own span { margin-right: auto; color: var(--sub) }
.own span.on { color: var(--blue); font-weight: 600 }
.own a, .own button { display: flex; align-items: center; height: 44px; padding: 0 10px; border: 0; background: none; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px }
.own #del { color: var(--red) }

.cmts { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line) }
.cmts h2 { font-size: 18px; font-weight: 700 }
.cmts h2 span { color: var(--sub); font-weight: 500 }
.cmts form { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px }
.cmts textarea { flex: 1; min-width: 0; min-height: 76px; padding: 10px 12px; border: 1px solid #cfd4dc; border-radius: 8px; resize: vertical; line-height: 1.5 }
.cmts textarea:focus { border-color: var(--blue); outline: 0 }
.ask { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--bg2); font-size: 15px }
.cmts ul { margin-top: 8px }
.cmts li { padding: 16px 0; border-bottom: 1px solid var(--line) }
.cmts li div { display: flex; align-items: center; gap: 8px; min-height: 28px }
.cmts li strong { font-size: 15px; font-weight: 700 }
.cmts li time { color: var(--sub); font-size: 13px }
.cmts li button { margin: -8px -8px -8px auto; height: 44px; padding: 0 8px; border: 0; background: none; color: var(--sub); font-size: 14px; text-decoration: underline; text-underline-offset: 3px }
.cmts li p { margin-top: 2px; white-space: pre-wrap }
.cmts li.no { border: 0; color: var(--sub); font-size: 15px }

.err { margin-top: 6px; color: var(--red); font-size: 14px }
.sign { max-width: 440px; padding-top: 64px }
.sign h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em }
.sign form { margin-top: 12px }
.sign label { display: block; margin-top: 20px; font-size: 14px; font-weight: 600 }
.sign input { display: block; width: 100%; height: 50px; margin-top: 6px; padding: 0 14px; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff }
.sign input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(47, 107, 255, .15) }
.sign input[aria-invalid] { border-color: var(--red) }
.hint { margin-top: 6px; color: var(--sub); font-size: 13px }
.err.all { margin-top: 20px; padding: 12px 14px; border-radius: 8px; background: #fef2f2 }
.sign form .btn { width: 100%; height: 52px; margin-top: 24px; font-size: 17px }
.alt { margin-top: 20px; color: var(--sub); font-size: 15px }
.sign.two { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 360px); justify-content: space-between; gap: 48px; max-width: 920px }
.why { align-self: start; margin-top: 62px; padding: 28px; border-radius: 14px; background: var(--bg2) }
.why h2 { font-size: 17px; font-weight: 700 }
.why li { margin-top: 16px; color: #4b5160; font-size: 15px }
.why strong { display: block; color: var(--ink); font-weight: 700 }

.mine .bar { padding-bottom: 20px; border-bottom: 2px solid var(--ink) }
.rows li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line) }
.rows .th { flex: none; width: 76px }
.rows .tx { flex: 1; min-width: 0 }
.rows .t { display: block; margin: -8px 0; padding: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 700 }
.rows .t:hover { text-decoration: underline; text-underline-offset: 3px }
.rows .tx p { margin-top: 2px; color: var(--sub); font-size: 14px }
.pub { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: #e9ebef; color: #4b5160; font-size: 12px; font-weight: 600 }
.pub.on { background: #e8efff; color: var(--blue) }
.rows .do { display: flex; align-items: center; gap: 4px }
.rows .do button { height: 44px; padding: 0 12px; border: 0; background: none; color: var(--red); font-size: 15px; text-decoration: underline; text-underline-offset: 3px }
.rows .sk i { flex: 1; max-width: 240px; height: 18px; margin: 0 }

.ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; padding-top: 64px }
.ai .tag { margin: 0 }
.ai h1 { margin-top: 10px; font-size: 36px; font-weight: 800; letter-spacing: -.03em }
.ai h2 { margin-top: 40px; font-size: 18px; font-weight: 700 }
.ai ol { margin-top: 10px; counter-reset: step }
.ai ol li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); counter-increment: step }
.ai ol li::before { content: counter(step); position: absolute; left: 4px; color: var(--blue); font-weight: 800 }
.ai .sub { margin-top: 20px; color: var(--sub); font-size: 15px }
.ai .btn { margin-top: 20px }
.plan { align-self: start; padding: 28px; border-radius: 14px; background: var(--bg2); color: #4b5160; font-size: 14px; font-weight: 600; text-align: center }
.plan svg { fill: none; stroke: #9aa1ad; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.shots span { padding: 12px 4px 8px; border-radius: 8px; background: #fff }
.shots svg { display: block; width: 44px; margin: 0 auto 6px }
.plus { padding: 8px 0; color: #9aa1ad; font-size: 20px; line-height: 1 }
.file { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 8px; background: #fff }
.out { padding: 40px 16px; border: 1.5px dashed #b6bcc7; border-radius: 8px; color: var(--sub) }

@media (max-width: 960px) {
  .top .in { height: 56px }
  .burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -10px 0 auto; border: 0; background: none }
  .drawer { display: none; position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 20px 20px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 16px 24px rgba(22, 24, 29, .08) }
  .top.open .drawer { display: flex }
  .menu { flex-direction: column }
  .menu a { height: 52px; padding: 0 2px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px }
  .auth { flex-wrap: wrap; gap: 8px; font-size: 16px }
  .auth .btn { flex: 1; margin: 0 }
  .auth > a:not(.btn) { flex: 1; justify-content: center; border: 1px solid #cfd4dc }
  .auth b { flex: 0 0 100%; max-width: none; margin: 0 }

  .det { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px }
  .stage { position: relative; top: 0; width: 100%; height: auto; min-height: 0; max-height: 60vh; aspect-ratio: 4 / 5 }
  .pre { grid-template-columns: minmax(0, 1fr); gap: 32px }
  .pre .side { position: static }
  .ai { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px }
  .sign.two { grid-template-columns: minmax(0, 1fr); max-width: 440px }
  .why { margin-top: 0 }
  .ways { grid-template-columns: minmax(0, 1fr) }
  .way { min-height: 0 }
  .way.main { min-height: 300px }
}

@media (max-width: 760px) {
  .home { padding-top: 32px }
  .lead { font-size: 16px }
  .ways { gap: 10px; margin-top: 24px }
  .way { padding: 20px 56px 20px 20px }
  .way h2 { font-size: 19px }
  .arr { right: 18px }
  .way.main { min-height: 0; padding: 26px 42% 26px 22px }
  .way.main h2 { font-size: 25px }
  .way.main p { font-size: 15px }
  .sec { margin-top: 56px }
  .sec h2 { font-size: 21px }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 16px }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px }
  .bar { padding-top: 32px }
  .bar h1, .pre h1 { font-size: 26px }
  .pre { padding-top: 32px }
  .info h1 { font-size: 24px }
  .sign { padding-top: 40px }
  .ai h1 { font-size: 28px }
  .foot { margin-top: 64px }
  .own span { flex: 1 1 100%; padding-top: 8px }
  .own a, .own #pub { padding-left: 0 }
  .rows li { flex-wrap: wrap; gap: 12px 14px }
  .rows .do { width: 100%; padding-left: 90px }
}

@media (min-width: 761px) and (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .sec .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
}
