/* 랜딩 페이지. 인스타 인앱 브라우저(휴대폰)가 주 무대라 모바일 한 열이 기본이고, 넓은 화면은 가운데 정렬만 한다. */

.disclosure {
  margin: 0;
  padding: 10px var(--gutter);
  background: var(--ink);
  color: #f2f2f1;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
}

/* ── 프로필 ───────────────────────────────────────── */
.profile {
  padding: 36px 0 28px;
  text-align: center;
}
.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
}
.name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.handle {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}
.handle a { text-decoration: none; }
.handle a:hover { text-decoration: underline; }
.tagline {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 500;
}

/* ── 이벤트 ───────────────────────────────────────── */
.event {
  padding: 24px 20px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #f2f2f1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.event-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.steps {
  list-style: none;
  margin: 18px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, background-color 120ms ease;
}
.btn:active { transform: scale(0.98); }

.find {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-line {
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
}
.btn-line span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.btn-line b { font-size: 16px; font-weight: 700; }
.btn-line:hover { background: #fafaf9; }

.btn-solid {
  margin-top: 10px;
  background: var(--ink);
  color: #fff;
}
.btn-solid:hover { background: #333; }

.fine {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.fine li { padding-left: 12px; position: relative; }
.fine li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}
.fine b { color: var(--ink); font-weight: 600; }

/* ── 핫딜 ─────────────────────────────────────────── */
.deals { margin-top: 40px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sec-head h2, .sec-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.month { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.ad-line {
  margin: 6px 0 14px;
  color: var(--ink-2);
  font-size: 12px;
}

.deal-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}
.deal {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb .ph {
  position: absolute;
  inset: 28%;
  width: 44%;
  height: 44%;
  object-fit: contain;
}
.deal-title {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-comment {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-price {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.deal-price small {
  margin-left: 4px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
}
.deal-go {
  margin-top: auto;
  padding-top: 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}
.deal:hover .deal-title { text-decoration: underline; }
.price-note { margin: 16px 0 0; color: var(--ink-3); font-size: 12px; }

/* ── 채널 ─────────────────────────────────────────── */
.channels { margin-top: 40px; }
.channel-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.channel-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.channel-list svg { flex: none; width: 24px; height: 24px; }
.ch-name { font-weight: 600; }
.ch-sub { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.ch-arrow { flex: none; width: 16px !important; height: 16px !important; color: var(--ink-3); }

/* ── 바닥 ─────────────────────────────────────────── */
.foot {
  margin-top: 40px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}
.foot p { margin: 0 0 4px; }
.foot a { color: var(--ink-2); }

@media (min-width: 640px) {
  .profile { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ── 응모 페이지 (/enter) ─────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* 봇 덫. display:none 이면 봇도 건너뛰므로 화면 밖으로만 뺀다. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.mini-brand img { border-radius: 50%; }

.enter-head { padding: 28px 0 22px; }
.enter-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.lead { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }

.card {
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  font-size: 16px; /* iOS 는 16px 미만 입력칸을 누르면 화면을 확대한다 */
  line-height: 1.45;
}
textarea.input { resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--danger); }

.agree { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.agree-detail {
  list-style: none;
  margin: -4px 0 0 32px;
  padding: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.who { margin: 0; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hint { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.hint b { color: var(--ink); font-weight: 600; }
.msg { margin: 0; color: var(--danger); font-size: 14px; }
.msg:empty { display: none; }
.card .btn-solid { margin-top: 2px; border: 0; width: 100%; cursor: pointer; }
.card .btn-solid:disabled { background: var(--ink-3); cursor: default; }

.done { justify-items: center; text-align: center; padding: 32px 20px 24px; }
.done h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -0.03em; }
.done p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.done .btn { width: 100%; margin-top: 4px; cursor: pointer; font-family: inherit; }
.done .btn-line { min-height: 56px; flex-direction: row; }
.btn-ghost { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.done-mark { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.closed {
  margin: 0;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
}
.enter-fine { margin-top: 18px; }

/* 랜딩 이벤트 구역의 응모 버튼 묶음 */
.enter-ctas { display: grid; gap: 10px; margin-top: 10px; }
.enter-ctas .btn-solid { margin-top: 0; flex-direction: column; gap: 1px; min-height: 64px; }
.enter-ctas .btn-solid small { color: #c9c9c5; font-size: 12.5px; font-weight: 500; }
.btn-dm { min-height: 52px; background: var(--bg); border: 1.5px solid var(--ink); font-size: 15px; }
