* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #f3f4f6;
  color: #1b1f3b;
  letter-spacing: -0.02em;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.page {
  max-width: 1024px;
  margin: 0 auto;
  background: #fff;
  padding: 18px 14px 30px;
  min-height: 100vh;
}

/* 헤더 */
.top { display: flex; align-items: center; justify-content: center; gap: 18px; }
.logo { height: 62px; width: auto; }
.divider { width: 2px; height: 34px; background: #c9ccd6; }
.top-copy { font-size: 30px; font-weight: 600; color: #3a3f55; }

/* 히어로 */
.hero { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 0 8px; }
.hero-text { text-align: center; position: relative; padding-right: 210px; }
.hero-sub { font-size: 52px; font-weight: 900; color: #1b1f3b; line-height: 1.15; }
.hero-main { font-size: 92px; font-weight: 900; line-height: 1.1; color: #1b1f3b; font-style: italic; transform: skewX(-4deg); letter-spacing: -0.04em; }
.hero-main .red { color: #E5121D; }
.swoosh { width: 86%; height: 30px; margin: -4px auto 0; display: block; }
.hero-tag { position: absolute; right: -4px; top: -6px; width: 240px; transform-origin: 80% 0; animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }

/* 혜택 */
.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 22px 6px 40px; padding: 18px 10px;
  border-radius: 16px; background: #fff;
  box-shadow: 0 4px 18px rgba(20, 30, 60, .10);
}
.benefit { display: flex; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid #e1e3ea; }
.benefit:last-child { border-right: 0; }
.benefit svg { width: 60px; height: 52px; flex-shrink: 0; }
.benefit p { font-size: 22px; line-height: 1.3; font-weight: 600; color: #1b1f3b; }
.benefit b { font-weight: 800; }

/* 상품 */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.card {
  border: 1px solid #e6e7ec; border-radius: 14px; background: #fff;
  padding: 6px 12px 16px; box-shadow: 0 2px 10px rgba(20, 30, 60, .06);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 30, 60, .12); }
.card-top { display: grid; grid-template-columns: 58% 42%; align-items: center; }
.card-top img { width: 100%; height: auto; border-radius: 10px; }
.info { padding-left: 10px; }
.name { font-size: 29px; font-weight: 800; line-height: 1.17; color: #15182e; }
.name small { display: block; font-size: 22px; font-weight: 500; color: #333; }
.origin { margin-top: 6px; font-size: 21px; color: #555; text-decoration: line-through; text-decoration-thickness: 2px; }
.label { display: inline-block; margin-top: 8px; background: #E5121D; color: #fff; font-size: 20px; font-weight: 800; padding: 3px 10px; border-radius: 6px; }
.price { margin-top: 4px; font-size: 40px; font-weight: 900; color: #E5121D; letter-spacing: -0.03em; }
.price span { font-size: 34px; }
.buy {
  margin-top: 10px; height: 54px; width: 100%; border-radius: 16px;
  background: linear-gradient(180deg, #FFE33A 0%, #FFD400 55%, #F5C400 100%);
  box-shadow: 0 3px 0 #E0B000, 0 6px 12px rgba(240, 190, 0, .35);
  font-size: 27px; font-weight: 800; color: #1b1f3b;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  transition: transform .12s, filter .12s;
}
.buy:hover { filter: brightness(1.04); }
.buy:active { transform: translateY(2px); box-shadow: 0 1px 0 #E0B000; }
.buy svg { width: 34px; height: 34px; }
.buy .chev { width: 22px; height: 22px; }

.foot { margin-top: 30px; text-align: center; font-size: 13px; color: #9aa0ad; }

/* 모달 공통 */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(30, 30, 30, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 14px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.overlay.open { opacity: 1; visibility: visible; }
.sheet {
  position: relative; width: 100%; max-width: 420px; margin: auto;
  background: #fffdf7; border: 1px solid #e8e4d8; border-radius: 26px;
  padding: 28px 26px 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
  transform: translateY(18px); transition: transform .3s;
}
.overlay.open .sheet { transform: none; }

.x-btn { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; color: #8b8b8b; display: grid; place-items: center; z-index: 2; }
.x-btn svg { width: 22px; height: 22px; }

.s-logo { display: flex; align-items: flex-end; gap: 4px; margin: 4px 0 26px; }
.s-mark { width: 44px; height: 44px; margin-right: 4px; }
.s-word { font-size: 30px; font-weight: 900; color: #2b1d0e; line-height: 1; letter-spacing: -0.05em; }
.s-small { font-size: 14px; font-weight: 700; color: #2b1d0e; margin-left: 2px; }
.s-spark { font-size: 12px; color: #f59e0b; margin-left: 4px; margin-bottom: 4px; }

.s-title { font-size: 17px; font-weight: 700; color: #2c2c2c; }
.s-desc { margin-top: 6px; font-size: 12px; color: #8a8578; }

.sec-head { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 12.5px; font-weight: 700; color: #4a4636; }
.sec-head .num { background: #efece0; color: #8a8578; font-size: 11px; padding: 3px 6px; border-radius: 5px; font-weight: 600; }
.sec-head .req { margin-left: auto; font-size: 11px; font-weight: 500; color: #8a8578; }

.field {
  display: flex; align-items: center; gap: 10px;
  height: 46px; margin-top: 8px; padding: 0 12px;
  background: #fff; border: 1px solid #e3dfd2; border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: #f2b31b; box-shadow: 0 0 0 3px rgba(242, 179, 27, .15); }
.field.err { border-color: #ef4444; }
.field.ok { border-color: #6aa874; }
.ico svg, .eye svg, .safe svg { width: 18px; height: 18px; fill: none; stroke: #d9a548; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye svg { stroke: #8f8f8f; }
.ico { display: grid; place-items: center; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #222; }
.field input::placeholder { color: #a8a396; }
.dup-btn { flex-shrink: 0; height: 28px; padding: 0 10px; border: 1px solid #6e8f6a; border-radius: 5px; font-size: 11.5px; color: #3e5f3c; background: #fbfbf6; }
.dup-btn:hover { background: #eef3ea; }
.dup-btn.done { background: #e9f3e7; }

.msg { min-height: 0; font-size: 11.5px; color: #ef4444; margin: 5px 2px 0; }
.msg:empty { display: none; }
.msg.hint { color: #777; }
.msg.good { color: #3e8a49; }

.safe { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 11.5px; font-weight: 700; color: #222; }
.safe svg { stroke: #222; width: 16px; height: 16px; flex-shrink: 0; }

.agree { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: #555; cursor: pointer; user-select: none; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree .box { width: 16px; height: 16px; border: 1.5px solid #333; border-radius: 3px; background: #fff; flex-shrink: 0; display: grid; place-items: center; }
.agree input:checked + .box { background: #4C8A55; border-color: #4C8A55; }
.agree input:checked + .box::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.agree em { font-style: normal; color: #888; }

.submit {
  margin-top: 18px; width: 100%; height: 56px; border-radius: 28px;
  background: linear-gradient(90deg, #FFC107 0%, #FF8A1F 55%, #FF3D3D 100%);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  box-shadow: 0 8px 18px rgba(255, 110, 40, .28);
  transition: transform .12s, filter .12s;
}
.submit:hover { filter: brightness(1.04); }
.submit:active { transform: translateY(1px); }
.submit svg { width: 20px; height: 20px; }
.login { margin-top: 16px; text-align: center; font-size: 12px; color: #8a8578; }
.login a { color: #222; font-weight: 700; text-decoration: none; margin-left: 6px; }

/* 완료 모달 */
.done-wrap {
  position: absolute; inset: 0; border-radius: 26px; z-index: 5;
  background: rgba(60, 60, 50, .35);
  display: flex; align-items: center; justify-content: center; padding: 0 0;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.done-wrap.open { opacity: 1; visibility: visible; }
.done {
  position: relative; width: calc(100% + 48px); margin: 0 -24px;
  background: #fffef9; border-radius: 22px; padding: 34px 26px 22px;
  text-align: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  transform: scale(.94); transition: transform .3s cubic-bezier(.2, .9, .3, 1.3);
}
.done-wrap.open .done { transform: none; }
.x-btn.small { top: 12px; right: 12px; width: 22px; height: 22px; border: 1.5px solid #8fb08f; border-radius: 4px; color: #6a8a6a; }
.x-btn.small svg { width: 14px; height: 14px; }
.check { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #e8eedf; margin: 0 auto; display: grid; place-items: center; }
.check svg { width: 30px; height: 30px; }
.check .spark { position: absolute; top: -6px; right: -12px; color: #f2a71b; font-size: 18px; }
.eyebrow { margin-top: 18px; font-size: 11px; color: #c49a3b; }
.done h3 { margin-top: 10px; font-size: 21px; font-weight: 800; color: #1f1f1f; }
.done-body { margin-top: 18px; font-size: 13px; line-height: 1.9; color: #444; }
.done-body b { font-weight: 600; }
.kakao {
  margin-top: 26px; height: 52px; border-radius: 10px; background: #FEE500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14.5px; font-weight: 800; color: #191919; text-decoration: none;
  box-shadow: 0 8px 16px rgba(240, 200, 0, .35);
  transition: transform .12s, filter .12s;
}
.kakao:hover { filter: brightness(.98); transform: translateY(-1px); }
.kakao svg { width: 22px; height: 22px; }
.kakao .arr { width: 16px; height: 16px; margin-left: 4px; }
.done-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid #ece9de; font-size: 10.5px; color: #9a9585; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 99;
  transform: translate(-50%, 20px); background: rgba(20, 20, 20, .88); color: #fff;
  font-size: 13px; padding: 10px 18px; border-radius: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.lock { overflow: hidden; }

/* 반응형 */
@media (max-width: 900px) {
  .top-copy { font-size: 22px; }
  .logo { height: 48px; }
  .hero-sub { font-size: 36px; }
  .hero-main { font-size: 62px; }
  .hero-text { padding-right: 150px; }
  .hero-tag { width: 170px; }
  .benefit p { font-size: 16px; }
  .benefit svg { width: 42px; height: 38px; }
  .name { font-size: 22px; }
  .name small { font-size: 16px; }
  .origin { font-size: 16px; }
  .label { font-size: 15px; }
  .price { font-size: 30px; }
  .price span { font-size: 25px; }
  .buy { font-size: 20px; height: 46px; }
  .buy svg { width: 26px; height: 26px; }
}
@media (max-width: 640px) {
  .page { padding: 14px 10px 24px; }
  .top { gap: 10px; }
  .logo { height: 36px; }
  .divider { height: 22px; }
  .top-copy { font-size: 15px; }
  .hero { padding-top: 6px; }
  .hero-text { padding-right: 96px; }
  .hero-sub { font-size: 21px; }
  .hero-main { font-size: 38px; }
  .swoosh { height: 16px; }
  .hero-tag { width: 108px; right: -4px; top: -4px; }
  .benefits { grid-template-columns: repeat(2, 1fr); row-gap: 14px; margin: 14px 0 22px; padding: 14px 6px; }
  .benefit { justify-content: flex-start; padding-left: 10px; }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit p { font-size: 14px; }
  .products { grid-template-columns: 1fr; gap: 12px; }
  .name { font-size: 20px; }
  .price { font-size: 28px; }
  .buy { font-size: 19px; }
  .sheet { padding: 24px 18px 20px; }
  .done { width: calc(100% + 28px); margin: 0 -14px; padding: 30px 18px 20px; }
}

/* 히어로 높이 확보 (가격표가 혜택 바와 겹치지 않도록) */
.hero { min-height: 305px; }
.hero-tag { top: 0; }
@media (max-width: 900px) { .hero { min-height: 220px; } }
@media (max-width: 640px) { .hero { min-height: 140px; } .hero-tag { top: 0; } }

/* 하단 사업자 정보 */
.foot { margin-top: 36px; padding: 22px 8px 6px; border-top: 1px solid #eceef3; text-align: left; font-size: 13px; line-height: 2; color: #555; }
.foot i { display: inline-block; width: 12px; }
@media (max-width: 640px) { .foot { font-size: 11.5px; line-height: 1.9; } .foot i { width: 6px; } }

/* 카카오톡 버튼: 커졌다 작아졌다 + 반짝 */
.kakao { position: relative; overflow: hidden; animation: kakaoPulse 1.3s ease-in-out infinite; }
.kakao::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); animation: kakaoShine 2.6s ease-in-out infinite;
}
.kakao svg { animation: kakaoIcon 1.3s ease-in-out infinite; }
@keyframes kakaoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 16px rgba(240, 200, 0, .35); }
  50% { transform: scale(1.06); box-shadow: 0 12px 26px rgba(240, 200, 0, .6); }
}
@keyframes kakaoShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes kakaoIcon { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .kakao, .kakao::after, .kakao svg { animation: none; } }

/* 완료창 상단 쿠폰 이미지 */
.done { padding-top: 40px; }
.done .coupon { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 4px 14px rgba(90, 60, 200, .18); }
.done .eyebrow { margin-top: 16px; }
