@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

:root {
	--mc-ink: #111827;
	--mc-sub: #6b7280;
	--mc-line: #e5e7eb;
	--mc-brand: #d645a0;
	--mc-radius: 16px;
}

body.mc-body {
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	color: var(--mc-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	letter-spacing: -0.015em;
}

.mc-brand {
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.mc-brand a:first-child {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: var(--mc-ink);
}
.mc-brand img { width: 34px; height: 34px; object-fit: contain; }
.mc-brand span { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.mc-brand span em { color: var(--mc-brand); font-style: normal; }
.mc-brand__dir { font-size: 14px; font-weight: 600; color: var(--mc-sub); text-decoration: none; }
.mc-brand__dir:hover { color: var(--mc-ink); }

.mc-main { max-width: 1120px; margin: 0 auto; padding: 0 24px 90px; }

/* ===== STEP 1 히어로 ===== */
.mc-hero {
	position: relative;
	text-align: center;
	padding: 74px 10px 40px;
}
.mc-hero__logo { width: 58px; height: 58px; object-fit: contain; margin-bottom: 14px; }

.mc-hero__title {
	font-size: clamp(38px, 7vw, 62px);
	font-weight: 900;
	line-height: 1.14;
	letter-spacing: -0.045em;
}
.mc-rot-wrap { display: inline-block; min-width: 5.2em; }
.mc-rot { color: var(--mc-brand); }

.mc-sticker {
	position: absolute;
	user-select: none;
	pointer-events: none;
}
.mc-sticker--link {
	top: 58px;
	right: 16%;
	background: #ffd83d;
	color: #111;
	font-weight: 900;
	font-size: 15px;
	padding: 10px 22px;
	border-radius: 999px;
	transform: rotate(12deg);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.mc-sticker--blob {
	top: 130px;
	left: 14%;
	width: 74px;
	height: 74px;
	background: radial-gradient(circle at 35% 35%, #f9a8d4, var(--mc-brand));
	border-radius: 58% 42% 55% 45% / 45% 55% 42% 58%;
	opacity: 0.9;
}

.mc-hero__sub {
	margin-top: 20px;
	color: var(--mc-sub);
	font-size: 16.5px;
	word-break: keep-all;
}

.mc-claim {
	margin: 30px auto 0;
	max-width: 620px;
	display: flex;
	gap: 10px;
	background: #fff;
	border: 2px solid var(--mc-ink);
	border-radius: 18px;
	padding: 8px 8px 8px 18px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
.mc-claim__url { flex: 1; display: flex; align-items: center; min-width: 0; }
.mc-claim__prefix { color: var(--mc-sub); font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.mc-claim__prefix::after { content: ""; display: inline-block; width: 6px; }
.mc-claim input {
	flex: 1;
	min-width: 60px;
	border: none;
	outline: none;
	font: inherit;
	font-size: 16.5px;
	font-weight: 700;
	color: var(--mc-brand);
}
.mc-claim input::placeholder { color: #cbd0d8; font-weight: 600; }
.mc-claim__btn {
	border: none;
	background: var(--mc-ink);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 13px 20px;
	border-radius: 12px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .15s ease;
}
.mc-claim__btn:hover { opacity: 0.85; }
.mc-claim__btn:disabled { opacity: 0.4; cursor: not-allowed; }

.mc-claim__msg { margin-top: 12px; font-size: 14px; font-weight: 600; }
.mc-claim__msg.ok { color: #0e9f6e; }
.mc-claim__msg.bad { color: #e11d48; }

.mc-cta {
	margin-top: 26px;
	display: inline-block;
	border: none;
	cursor: pointer;
	background: var(--mc-ink);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	padding: 17px 44px;
	border-radius: 16px;
	text-decoration: none;
	transition: transform .15s ease, opacity .15s ease;
}
.mc-cta:hover { transform: translateY(-2px); }
.mc-cta:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.mc-cta--black { background: var(--mc-ink); color: #fff; }
.mc-cta--ghost { background: #f3f4f6; color: var(--mc-ink); }

/* ===== STEP 2 빌더 ===== */
.mc-build { padding-top: 34px; }
.mc-build__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 46px;
	align-items: start;
}
@media (max-width: 960px) {
	.mc-build__grid { grid-template-columns: 1fr; }
	.mc-prev-wrap { order: -1; position: sticky; top: 0; z-index: 5; }
}

.mc-form__title { font-size: 24px; font-weight: 900; margin-bottom: 22px; }
.mc-form__title small { color: var(--mc-brand); font-size: 15px; font-weight: 700; margin-left: 6px; }

.mc-field { margin-bottom: 22px; }
.mc-field > label { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 8px; }
.mc-field > label small { color: var(--mc-sub); font-weight: 500; margin-left: 6px; font-size: 12.5px; }
.mc-field input[type="text"],
.mc-field input[type="url"],
.mc-field input[type="email"],
.mc-field input[type="password"],
.mc-field textarea,
.mc-field select {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 13px 15px;
	border: 1.5px solid var(--mc-line);
	border-radius: 12px;
	outline: none;
	background: #fff;
	color: var(--mc-ink);
	transition: border-color .15s ease;
}
.mc-field input:focus, .mc-field textarea:focus, .mc-field select:focus { border-color: var(--mc-ink); }
.mc-field textarea { resize: vertical; }

.mc-field--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mc-avatar { display: flex; align-items: center; gap: 14px; }
.mc-avatar__prev {
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: #f3f4f6;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.mc-avatar__prev img { width: 100%; height: 100%; object-fit: cover; }
.mc-avatar__prev span { font-size: 30px; font-weight: 800; color: #c3c8d0; }
.mc-avatar__btns { display: flex; gap: 8px; }

.mc-btn-s {
	display: inline-block;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	padding: 9px 16px;
	border-radius: 10px;
	border: 1.5px solid var(--mc-ink);
	background: #fff;
	color: var(--mc-ink);
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease;
}
.mc-btn-s:hover { background: #f3f4f6; }
.mc-btn-s--ghost { border-color: var(--mc-line); color: var(--mc-sub); }
.mc-btn-s--add { border-style: dashed; }

.mc-socialrow, .mc-linkrow {
	display: grid;
	gap: 6px;
	margin-bottom: 8px;
	align-items: center;
}
.mc-socialrow { grid-template-columns: 150px 1fr 32px; }
.mc-linkrow { grid-template-columns: 30px 1fr 1.4fr 32px; }
.mc-socialrow select, .mc-socialrow input, .mc-linkrow input {
	font: inherit;
	font-size: 14px;
	padding: 10px 12px;
	border: 1.5px solid var(--mc-line);
	border-radius: 10px;
	outline: none;
	background: #fff;
}
.mc-socialrow select:focus, .mc-socialrow input:focus, .mc-linkrow input:focus { border-color: var(--mc-ink); }
.mc-rowdel, .mc-rowup {
	border: 1.5px solid var(--mc-line);
	background: #fff;
	border-radius: 9px;
	height: 38px;
	font-size: 15px;
	cursor: pointer;
	color: var(--mc-sub);
}
.mc-rowdel:hover { border-color: #e11d48; color: #e11d48; }
.mc-rowup:hover { border-color: var(--mc-ink); color: var(--mc-ink); }

.mc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.mc-swatch {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--sw, #fff);
	border: 2px solid var(--mc-line);
	cursor: pointer;
	overflow: hidden;
	transition: transform .12s ease;
}
.mc-swatch:hover { transform: scale(1.08); }
.mc-swatch.is-active, .mc-swatch:has(input:checked) { border-color: var(--mc-ink); box-shadow: 0 0 0 2px #fff inset; }
.mc-swatch input[type="radio"] { position: absolute; opacity: 0; }
.mc-swatch--custom input[type="color"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.mc-segs { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-seg {
	font-size: 13.5px;
	font-weight: 700;
	padding: 10px 16px;
	border: 1.5px solid var(--mc-line);
	border-radius: 999px;
	cursor: pointer;
	color: var(--mc-sub);
	transition: all .15s ease;
}
.mc-seg input { position: absolute; opacity: 0; }
.mc-seg.is-active, .mc-seg:has(input:checked) {
	border-color: var(--mc-ink);
	background: var(--mc-ink);
	color: #fff;
}

.mc-error {
	margin-bottom: 16px;
	background: #fff1f2;
	color: #be123c;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 16px;
	border-radius: 12px;
}

.mc-submit {
	width: 100%;
	border: none;
	cursor: pointer;
	background: var(--mc-ink);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	padding: 18px;
	border-radius: 16px;
	transition: transform .15s ease, opacity .15s ease;
}
.mc-submit:hover { transform: translateY(-2px); }
.mc-submit:disabled { opacity: 0.5; cursor: wait; transform: none; }
.mc-submit__spin {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: -3px;
	animation: mcSpin .7s linear infinite;
}
@keyframes mcSpin { to { transform: rotate(360deg); } }

.mc-note { margin-top: 14px; text-align: center; color: var(--mc-sub); font-size: 12.5px; }

/* 미리보기 폰 */
.mc-prev-wrap { position: sticky; top: 24px; }
.mc-phone {
	width: 320px;
	margin: 0 auto;
	border-radius: 42px;
	background: #111;
	padding: 10px;
	box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}
.mc-phone__screen {
	border-radius: 33px;
	background: #fff;
	min-height: 560px;
	overflow: hidden;
	padding: 40px 18px 30px;
}
.mc-pv-head { text-align: center; }
.mc-pv-avatar {
	width: 88px;
	height: 88px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: rgba(128, 128, 128, 0.16);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mc-pv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mc-pv-avatar span { font-size: 32px; font-weight: 800; color: #9aa1ab; }
.mc-pv-avatar--square { border-radius: 26%; }
.mc-pv-name { font-size: 17px; font-weight: 800; }
.mc-pv-bio { margin-top: 5px; font-size: 12px; color: var(--mc-sub); word-break: keep-all; }
.mc-pv-social { margin-top: 10px; display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.mc-pv-social img, .mc-pv-social svg { width: 15px; height: 15px; }
.mc-pv-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mc-pv-link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: var(--pv-radius, 16px);
	background: var(--pv-btnbg, #fff);
	color: var(--pv-btntext, #111827);
	border: var(--pv-btnborder, 1px solid rgba(17,24,39,.05));
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	font-size: 13px;
	font-weight: 700;
	overflow: hidden;
}
.mc-pv-link img { width: 15px; height: 15px; flex: none; }
.mc-pv-link span { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-pv-link .mc-pv-fav + span { text-align: left; }
.mc-pv-arrow { width: 12px; height: 12px; opacity: 0.45; flex: none; }
.mc-prev-cap { margin-top: 14px; text-align: center; color: var(--mc-sub); font-size: 13px; font-weight: 600; }

/* ===== STEP 3 완료 ===== */
.mc-done { padding-top: 60px; display: flex; justify-content: center; }
.mc-done__card {
	width: 100%;
	max-width: 480px;
	text-align: center;
	background: #fff;
	border: 2px solid var(--mc-ink);
	border-radius: 26px;
	padding: 46px 34px 38px;
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}
.mc-done__check {
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #0e9f6e;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mc-done__check svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mc-done__card h2 { font-size: 26px; font-weight: 900; }
.mc-done__url {
	margin-top: 14px;
	font-size: 16.5px;
	font-weight: 800;
	color: var(--mc-brand);
	word-break: break-all;
}
.mc-done__btns { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mc-done__btns .mc-cta { margin-top: 0; padding: 14px 28px; font-size: 15px; border-radius: 13px; }
.mc-done__qr { margin-top: 26px; }
.mc-done__qr #mcQr { display: flex; justify-content: center; }
.mc-done__qr #mcQr svg { width: 150px; height: 150px; }
.mc-done__qr p { margin-top: 8px; font-size: 12.5px; color: var(--mc-sub); font-weight: 600; }
.mc-done__again {
	margin-top: 24px;
	border: none;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--mc-sub);
	text-decoration: underline;
	cursor: pointer;
}
.mc-done__again:hover { color: var(--mc-ink); }

@media (max-width: 640px) {
	.mc-hero { padding-top: 48px; }
	.mc-sticker--link { right: 6%; }
	.mc-sticker--blob { left: 5%; }
	.mc-claim { flex-direction: column; padding: 14px; }
	.mc-claim__btn { width: 100%; }
	.mc-phone { width: min(300px, 86vw); }
	.mc-phone__screen { min-height: 480px; }
	.mc-field--2col { grid-template-columns: 1fr; }
}

/* ===== 허니팟 ===== */
.mc-hp { position: absolute; left: -9999px; }

/* ===== 회원가입 (2단계) ===== */
.mc-signup { max-width: 520px; margin: 20px auto 0; }
.mc-form__sub { margin: -12px 0 24px; color: var(--mc-sub); font-size: 14.5px; word-break: keep-all; }
.mc-claim--flat {
	box-shadow: none; border-color: var(--mc-line);
	border-radius: 12px; padding: 6px 6px 6px 14px;
}

/* ===== 로그인 페이지 ===== */
body.mcl-body { background: #fafafa; }
.mcl-main { padding: 30px 24px 90px; display: flex; justify-content: center; }
.mcl-card {
	width: 100%; max-width: 460px; background: #fff;
	border: 1.5px solid #eceef1; border-radius: 24px;
	padding: 38px 34px 30px;
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}
.mcl-logo { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 12px; display: block; }
.mcl-title { text-align: center; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.mcl-tabs {
	margin: 24px 0 4px; display: flex; background: #f3f4f6;
	border-radius: 12px; padding: 4px;
}
.mcl-tab {
	flex: 1; border: none; background: none; cursor: pointer;
	font: inherit; font-size: 14.5px; font-weight: 800; color: var(--mc-sub);
	padding: 10px; border-radius: 9px; transition: all .15s ease;
}
.mcl-tab.is-active { background: var(--mc-ink); color: #fff; }
.mcl-pane { display: none; padding-top: 14px; }
.mcl-pane.is-active { display: block; }
.mcl-remember { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--mc-sub); margin-bottom: 18px; }
.mcl-go { width: 100%; margin-top: 6px; padding: 15px; font-size: 15.5px; border-radius: 13px; }
.mcl-msg { margin-top: 12px; font-size: 13.5px; font-weight: 600; text-align: center; }
.mcl-msg.ok { color: #0e9f6e; }
.mcl-msg.bad { color: #e11d48; }
.mcl-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--mc-sub); }
.mcl-foot a { color: var(--mc-brand); font-weight: 700; text-decoration: none; }

/* ===== 모바일 오버플로우 방지 + 로그인/가입 페이지 보완 ===== */
html, body { overflow-x: clip; }
.mcl-sub { text-align: center; font-size: 13.5px; color: var(--mc-sub); margin-top: 8px; }
@media (max-width: 480px) {
	.mcl-card { padding: 30px 20px 24px; border-radius: 20px; max-width: 100%; }
	.mcl-main { padding: 18px 14px 70px; }
	.mc-brand { padding: 14px 16px; }
	.mc-brand span { font-size: 19px; }
	.mc-brand__dir { font-size: 13px; }
	.mc-main { padding-left: 16px; padding-right: 16px; }
	.mc-hero__title { font-size: clamp(30px, 9.5vw, 38px); }
	.mc-sticker--link { right: 18px; top: 42px; font-size: 13px; padding: 8px 16px; }
	.mc-sticker--blob { left: 5%; top: 104px; width: 58px; height: 58px; }
	.mc-signup { margin-top: 8px; }
	.mc-claim__prefix { font-size: 14px; }
	.mc-claim { min-width: 0; }
	.mcl-card *, .mc-claim * { min-width: 0; }
}
/* ===== 로그인/가입: 사이트 디자인 연동 ===== */
.mcl-label {
	display: block; text-align: center;
	color: var(--mc-brand); font-size: 11.5px; font-weight: 800;
	letter-spacing: .3em; text-transform: uppercase; margin-bottom: 6px;
}
@media (max-width: 768px) {
	/* 모바일: 사이트와 동일한 핑크 그라데이션 헤더 */
	.mc-brand {
		background: linear-gradient(95deg, #f0437c 0%, #d81b60 100%);
		justify-content: center; position: relative;
		padding: 16px 18px; max-width: none;
	}
	.mc-brand img { display: none; }
	.mc-brand span { color: #fff; font-size: 24px; letter-spacing: -.02em; }
	.mc-brand span em { color: #fff; }
	.mc-brand__dir {
		position: absolute; right: 16px;
		color: #fff; font-size: 12.5px; font-weight: 700; opacity: .95;
	}
	.mcl-main { padding-top: 24px; }
}