@charset "utf-8";

/************************************************* vars *************************************************/

:root { --dh-black: #202622; --dh-blue: #6c7bd3; --dh-gray: #606569; --dh-bg: #ffffff; --dh-result-bg: #eeecea; --dh-track: #d9d9d9; --dh-mulbit: #6f8fbc; --dh-desert: #b88b52; --dh-jar: #bf766d; --dh-city: #8a7bb9; --app-max: 430px; --pad-x: 24px; --radius-btn: 8px; --radius-option: 8px; --font: "Pretendard Variable",Pretendard,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; }

/************************************************* base *************************************************/

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--dh-black); background: #e8eaf2; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; border: none; cursor: pointer; appearance: none; background: none; }
img { display: block; max-width: 100%; height: auto; }
.hidden { display: none !important; }
#app { min-height: 100dvh; display: flex; justify-content: center; }
.shell { width: 100%; max-width: var(--app-max); min-height: 100dvh; background: var(--dh-bg); position: relative; overflow-x: hidden; }
.page { display: flex; min-height: 100dvh; flex-direction: column; }

/************************************************* buttons *************************************************/

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 14px 20px; border-radius: var(--radius-btn); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; transition: opacity .2s ease, transform .15s ease, border-color .15s ease, background .15s ease; text-decoration: none; box-sizing: border-box; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--dh-black); color: #fff; }
.btn-accent { background: var(--dh-blue); color: #fff; }
.btn-option { background: #fff; color: var(--dh-black); border: 1px solid var(--dh-black); border-radius: var(--radius-option); font-size: 15px; font-weight: 500; min-height: 52px; }
.btn-option.is-selected { border-width: 1.5px; background: #f3f5fc; color: var(--dh-blue); border-color: var(--dh-blue); font-weight: 600; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--dh-black); border: 1px solid rgba(32,38,34,0.25); }
.btn-ghost.is-light { border-color: rgba(255,255,255,0.55); color: #fff; }

/************************************************* landing *************************************************/

.landing { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 100dvh; background: #e7e9f8; padding: 40px var(--pad-x) 20px; text-align: center; overflow: hidden; }
.landing__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 0; }
.landing__inner { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 0; }
.landing__title { margin: 0; font-size: clamp(40px,11vw,48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.landing__rule { width: 2px; height: 36px; background: var(--dh-black); margin: 16px 0 14px; }
.landing__sub { margin: 0 0 22px; font-size: 14px; font-weight: 400; line-height: 1.5; }
.landing__coupons { position: relative; width: min(100%,300px); margin: 0 auto 28px; padding-left: 9%; box-sizing: border-box; }
.landing__coupons img { width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(32,38,34,0.12)); }
.landing__coupons .c-40 { position: relative; display: block; margin: 0; }
.landing__cta { width: 100%; max-width: 320px; margin: 0; }
.landing__note { margin: 14px 0 0; font-size: 12px; color: var(--dh-black); opacity: 0.85; line-height: 1.45; }
.landing__foot { position: relative; z-index: 1; width: 100%; margin-top: 24px; text-align: center; }
.landing__legal { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 11px; line-height: 1.4; }
.landing__legal a { color: rgba(32,38,34,0.55); text-decoration: none; letter-spacing: -0.02em; }
.landing__legal a:hover { color: var(--dh-black); text-decoration: underline; }
.landing__legal span { color: rgba(32,38,34,0.35); }
.landing__biz { margin-top: 8px; font-size: 11px; line-height: 1.55; color: rgba(32,38,34,0.72); letter-spacing: -0.02em; text-align: center; }
.landing__biz p { margin: 0; }

/************************************************* legal *************************************************/

.legal { background: #fff; padding: 28px var(--pad-x) 48px; }
.legal__back { display: inline-flex; align-items: center; margin: 0 0 20px; font-size: 13px; font-weight: 600; color: var(--dh-gray); text-decoration: none; }
.legal__back:hover { color: var(--dh-black); }
.legal__title { margin: 0 0 8px; font-size: clamp(22px,6vw,28px); font-weight: 800; letter-spacing: -0.03em; }
.legal__meta { margin: 0 0 28px; font-size: 12px; color: var(--dh-gray); }
.legal__toc { margin: 0 0 28px; padding: 16px 18px; background: #f6f7fb; border-radius: 12px; list-style: none; }
.legal__toc li { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--dh-gray); }
.legal__toc li:last-child { margin-bottom: 0; }
.legal h2 { margin: 28px 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.legal h3 { margin: 16px 0 8px; font-size: 14px; font-weight: 700; }
.legal p,.legal li { font-size: 13px; line-height: 1.65; color: var(--dh-black); }
.legal p { margin: 0 0 10px; }
.legal ul,.legal ol { margin: 0 0 12px; padding-left: 18px; }
.legal li { margin-bottom: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 12px; }
.legal th,.legal td { border: 1px solid #d9dce3; padding: 10px 8px; text-align: left; vertical-align: top; line-height: 1.45; }
.legal th { background: #f6f7fb; font-weight: 700; }
.legal__note { margin-top: 24px; padding: 14px 16px; background: #f6f7fb; border-radius: 12px; font-size: 12px; color: var(--dh-gray); line-height: 1.55; }

.withdraw { background: #fff; padding: 28px var(--pad-x) 48px; }
.withdraw__back { display: inline-flex; align-items: center; margin: 0 0 20px; font-size: 13px; font-weight: 600; color: var(--dh-gray); text-decoration: none; }
.withdraw__title { margin: 0 0 10px; font-size: clamp(22px,6vw,28px); font-weight: 800; letter-spacing: -0.03em; }
.withdraw__desc { margin: 0 0 24px; font-size: 14px; line-height: 1.55; color: var(--dh-gray); }
.withdraw__box { padding: 18px 16px; background: #f6f7fb; border-radius: 12px; margin-bottom: 24px; }
.withdraw__box h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.withdraw__box ul { margin: 0; padding-left: 18px; }
.withdraw__box li { font-size: 13px; line-height: 1.55; margin-bottom: 6px; }
.withdraw__box li:last-child { margin-bottom: 0; }
.withdraw__check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; font-size: 13px; line-height: 1.5; }
.withdraw__check input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }
.withdraw__actions { display: flex; flex-direction: column; gap: 10px; }
.withdraw__msg { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--dh-blue); text-align: center; }

/************************************************* quiz *************************************************/

.quiz { padding: 28px var(--pad-x) 36px; background: #fff; }
.quiz__top { text-align: center; margin-bottom: 0; }
.quiz__count { margin: 0 0 10px; font-size: 13px; font-weight: 400; letter-spacing: 0.12em; color: var(--dh-black); }
.quiz__bar { display: flex; height: 8px; border-radius: 20px; overflow: hidden; background: var(--dh-track); margin-bottom: 40px; }
.quiz__bar span { flex: 1; background: var(--dh-track); }
.quiz__bar span.on { background: var(--dh-blue); }
.quiz__bar span:first-child { border-radius: 20px 0 0 20px; }
.quiz__bar span:last-child { border-radius: 0 20px 20px 0; }
.quiz__bar span.on:first-child { border-radius: 20px 0 0 20px; }
.quiz__bar span.on:last-child,.quiz__bar span.on:first-child:last-child { border-radius: 20px; }
.quiz__q { margin: 0 0 28px; font-size: clamp(22px,5.8vw,26px); font-weight: 800; text-align: center; letter-spacing: -0.03em; line-height: 1.45; }
.quiz__opts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.quiz__foot { margin-top: auto; padding-top: 24px; }

/************************************************* analyzing *************************************************/

.analyzing { align-items: center; justify-content: center; text-align: center; padding: 40px var(--pad-x); background: #fff; gap: 16px; }
.analyzing__orb { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 30% 30%,#c5cdf0,var(--dh-blue)); animation: pulse 1.2s ease-in-out infinite; margin-bottom: 8px; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }
.analyzing h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; }
.analyzing p { margin: 0; font-size: 14px; color: var(--dh-gray); }
.analyzing__track { width: 180px; height: 6px; border-radius: 99px; background: var(--dh-track); overflow: hidden; margin-top: 12px; }
.analyzing__track i { display: block; height: 100%; width: 30%; background: var(--dh-blue); border-radius: 99px; animation: load 2s ease-in-out forwards; }
@keyframes load { from { width: 12%; } to { width: 100%; } }

/************************************************* result *************************************************/

.result { background: var(--dh-result-bg); padding: 36px var(--pad-x) 40px; }
.result__label { margin: 0; text-align: center; font-size: 14px; font-weight: 400; }
.result__name { margin: 8px 0 10px; text-align: center; font-size: clamp(36px,10vw,44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.result[data-type="mulbit"] .result__name { color: var(--dh-mulbit); }
.result[data-type="desert"] .result__name { color: var(--dh-desert); }
.result[data-type="jar"] .result__name { color: var(--dh-jar); }
.result[data-type="city"] .result__name { color: var(--dh-city); }
.result__desc { margin: 0 0 20px; text-align: center; font-size: 14px; line-height: 1.5; }
.result__hero { width: 100%; margin: 0 0 16px; background: transparent; }
.result__hero img { width: 100%; max-height: 280px; aspect-ratio: 3 / 2; object-fit: contain; margin: 0 auto; }
.result__progress-badge { display: block; width: fit-content; margin: 0 auto 28px; padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; background: #fff; }
.result[data-type="mulbit"] .result__progress-badge { color: var(--dh-mulbit); border: 1px solid var(--dh-mulbit); }
.result[data-type="desert"] .result__progress-badge { color: var(--dh-desert); border: 1px solid var(--dh-desert); }
.result[data-type="jar"] .result__progress-badge { color: var(--dh-jar); border: 1px solid var(--dh-jar); }
.result[data-type="city"] .result__progress-badge { color: var(--dh-city); border: 1px solid var(--dh-city); }
.result__ing-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.result__ings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ing-card { background: #fff; border: 1px solid currentColor; border-radius: 10px; padding: 16px 18px; }
.result[data-type="mulbit"] .ing-card { color: var(--dh-mulbit); }
.result[data-type="desert"] .ing-card { color: var(--dh-desert); }
.result[data-type="jar"] .ing-card { color: var(--dh-jar); }
.result[data-type="city"] .ing-card { color: var(--dh-city); }
.ing-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ing-card span { display: block; font-size: 13px; color: var(--dh-black); font-weight: 400; }
.result__products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.result__products[data-count="1"] { grid-template-columns: 1fr; max-width: 220px; margin-left: auto; margin-right: auto; }
.result__products[data-count="3"] { grid-template-columns: repeat(3,1fr); gap: 8px; }
.prod-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--dh-blue); display: flex; flex-direction: column; min-height: 260px; }
.prod-card.is-sub { border-color: var(--dh-gray); }
.prod-card__head { background: var(--dh-blue); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 12px 8px; }
.prod-card.is-sub .prod-card__head { background: var(--dh-gray); }
.result__products[data-count="3"] .prod-card__head { font-size: 11px; padding: 10px 4px; }
.result__products[data-count="3"] .prod-card__name { font-size: 11px; padding: 6px 6px 12px; }
.result__products[data-count="3"] .prod-card__body img { max-height: 100px; }
.prod-card__body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 8px 8px; }
.prod-card__body img { max-height: 140px; width: auto; object-fit: contain; }
.prod-card__name { text-align: center; font-size: 12px; font-weight: 500; padding: 8px 10px 16px; line-height: 1.35; }
.result__disclaimer { margin: 0 0 16px; text-align: center; font-size: 11px; color: var(--dh-gray); }
.result__actions { display: flex; flex-direction: column; gap: 10px; }

/************************************************* coupon *************************************************/

.coupon-page { background: #fff; padding: 0; }
.coupon-hero { position: relative; padding: 56px var(--pad-x) 56px; text-align: center; color: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; }
.coupon-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; }
.coupon-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; }
.coupon-hero__logo { height: 20px; width: auto; margin: 0 0 18px; }
.coupon-hero h1 { margin: 0 0 22px; font-size: clamp(30px,8.5vw,38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.coupon-hero__card { width: min(100%,280px); height: auto; margin: 0 0 14px; }
.coupon-hero__code { margin: 0 0 22px; font-size: 14px; font-weight: 400; letter-spacing: 0.04em; }
.coupon-hero .btn { width: 100%; max-width: 280px; }
.coupon-guide { background: #f2f2f2; color: var(--dh-black); padding: 48px var(--pad-x) 48px; }
.coupon-guide h2 { margin: 0 0 24px; text-align: center; font-size: clamp(26px,7vw,32px); font-weight: 800; letter-spacing: -0.03em; color: var(--dh-blue); }
.steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.step { background: #fff; color: var(--dh-black); border-radius: 20px; padding: 18px 20px; display: flex; gap: 12px; align-items: baseline; font-size: 13px; font-weight: 400; }
.step strong { flex: 0 0 auto; color: var(--dh-blue); font-size: 14px; font-weight: 700; }
.notice { border-radius: 20px; overflow: hidden; margin-bottom: 28px; }
.notice__head { background: var(--dh-black); color: #fff; text-align: center; padding: 18px; font-size: 22px; font-weight: 800; }
.notice__body { background: #fff; color: var(--dh-black); padding: 20px 18px 24px; font-size: 13px; line-height: 1.65; font-weight: 600; }
.notice__body p { margin: 0; }
.coupon-guide__actions { display: flex; flex-direction: column; gap: 10px; }
.coupon-guide__actions .btn-primary { background: var(--dh-black); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: rgba(32,38,34,0.92); color: #fff; padding: 12px 18px; border-radius: 99px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 70; white-space: nowrap; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/************************************************* survey *************************************************/

.survey { position: relative; background: #fff; padding: 28px var(--pad-x) 36px; }
.survey__skip { position: absolute; top: 28px; right: var(--pad-x); font-size: 13px; color: var(--dh-gray); text-decoration: none; }
.survey__badge { display: inline-block; margin: 8px 0 18px; padding: 6px 14px; border-radius: 99px; background: var(--dh-blue); color: #fff; font-size: 12px; font-weight: 700; }
.survey__block { margin-bottom: 28px; }
.survey__block h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.survey__opts { display: flex; flex-direction: column; gap: 10px; }
.survey__foot { margin-top: auto; padding-top: 12px; }

/************************************************* share layer *************************************************/

.share-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(32,38,34,0.55); }
.share-layer.hidden { display: none; }
.share-layer__panel { width: 100%; max-width: var(--app-max); background: #fff; border-radius: 20px 20px 0 0; padding: 24px var(--pad-x) 28px; display: flex; flex-direction: column; gap: 12px; }
.share-layer__panel h2 { margin: 0 0 4px; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.share-layer__visual { border-radius: 14px; overflow: hidden; background: var(--dh-result-bg); }
.share-layer__visual img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.share-layer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-layer__close { background: none; border: none; padding: 10px; text-align: center; font-size: 13px; color: var(--dh-gray); }

/************************************************* media *************************************************/

/********************* pc *********************/

@media (min-width:768px) {
	.shell { box-shadow: 0 0 40px rgba(32,38,34,0.12); }
}
