/* /css/pages/coupon/kakao.css
 * 카카오 쿠폰 공용 랜딩/결과 화면
 * 모바일 OPEN 이벤트를 기준으로 만들되 coupon 데이터에 따라 혜택 문구가 바뀝니다.
 */

.p-kakao-coupon-body {
  background:
    radial-gradient(circle at 85% 3%, rgba(62, 109, 255, .08), transparent 27rem),
    #f6f8fb;
  color: #121826;
}

.kc-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  backdrop-filter: blur(12px);
}

.kc-page {
  width: min(100%, 600px);
  margin: 0 auto;
  padding: 14px 16px calc(48px + env(safe-area-inset-bottom));
}

/* ---------- Hero ---------- */
.kc-hero {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 34px 25px 28px;
  border-radius: 28px;
  background:
    linear-gradient(148deg, #eef5ff 0%, #f8fbff 46%, #fff7c6 100%);
  border: 1px solid rgba(78, 105, 164, .10);
  box-shadow: 0 18px 44px rgba(42, 62, 104, .11);
  isolation: isolate;
}

.kc-hero::before {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -88px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #fee500;
  opacity: .88;
  z-index: -2;
}

.kc-hero::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 72px;
  height: 58px;
  border-radius: 24px;
  background: #191919;
  opacity: .94;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 63% 74%, 47% 100%, 50% 74%, 0 74%);
  z-index: -1;
}

.kc-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  z-index: -1;
}

.kc-hero__glow--one {
  width: 170px;
  height: 170px;
  top: -85px;
  left: -70px;
  background: rgba(91, 135, 255, .13);
}

.kc-hero__glow--two {
  width: 110px;
  height: 110px;
  right: 72px;
  top: 54px;
  background: rgba(254, 229, 0, .24);
}

.kc-hero__content { position: relative; z-index: 1; }

.kc-hero__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 22px;
  padding: 0 11px;
  border-radius: 999px;
  background: #172033;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.kc-hero__label {
  margin: 0 0 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.kc-hero h1 {
  margin: 0;
  color: #14213a;
  font-size: clamp(29px, 8vw, 40px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 650;
}

.kc-hero h1 b {
  color: #101727;
  font-weight: 850;
}

.kc-hero__benefit {
  margin-top: 12px;
  color: #111827;
  font-size: clamp(40px, 12vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.kc-hero__desc {
  max-width: 390px;
  margin: 22px 0 0;
  color: #566174;
  font-size: 13.5px;
  line-height: 1.7;
  word-break: keep-all;
}

.kc-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: #4a4214;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.kc-hero__brand .material-symbols-outlined { font-size: 17px; color: #332f12; }

/* ---------- CTA ---------- */
.kc-primary,
.kc-secondary {
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.kc-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding: 15px 17px;
  box-shadow: 0 9px 22px rgba(17, 24, 39, .09);
}

.kc-primary .material-symbols-outlined { font-size: 20px; }

.kc-primary--kakao {
  background: #fee500;
  color: #191600;
  box-shadow: 0 10px 24px rgba(158, 139, 0, .16);
}
.kc-primary--kakao:active { background: #f6de00; }

.kc-primary--dark {
  background: #171c29;
  color: #fff;
}
.kc-primary--dark:active { background: #262d3d; }

.kc-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid #d9dee7;
  background: #fff;
  color: #344054;
}

.kc-actions { display: grid; gap: 10px; }
.kc-actions .kc-primary { margin-top: 0; }

/* ---------- How to ---------- */
.kc-how,
.kc-info {
  margin-top: 18px;
  padding: 24px 20px;
  border: 1px solid #e6e9ef;
  border-radius: 22px;
  background: #fff;
}

.kc-section-kicker {
  margin: 0 0 4px;
  color: #5571a7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
}

.kc-how h2 {
  margin: 0 0 20px;
  color: #182235;
  font-size: 21px;
  letter-spacing: -.025em;
}

.kc-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kc-steps li {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  position: relative;
  padding: 0 0 22px;
}
.kc-steps li:last-child { padding-bottom: 0; }
.kc-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 5px;
  left: 21px;
  width: 1px;
  background: #e3e8f0;
}

.kc-steps li > b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 34px;
  border-radius: 11px;
  background: #f1f5fb;
  color: #42639e;
  font-size: 11px;
  letter-spacing: .04em;
}

.kc-steps span { display: grid; gap: 4px; padding-top: 1px; }
.kc-steps strong { color: #1d2939; font-size: 14.5px; }
.kc-steps small { color: #7a8495; font-size: 12.5px; line-height: 1.55; }

.kc-info { display: grid; gap: 17px; }
.kc-info > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.kc-info .material-symbols-outlined { font-size: 20px; color: #77839a; margin-top: 1px; }
.kc-info p { display: grid; gap: 2px; margin: 0; }
.kc-info b { color: #344054; font-size: 12.5px; }
.kc-info small { color: #8a94a5; font-size: 11.5px; line-height: 1.55; }

/* ---------- Result ---------- */
.kc-result {
  margin-top: 10px;
  padding: 34px 22px 30px;
  border: 1px solid #e2e7ef;
  border-radius: 26px;
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 36px rgba(31, 47, 82, .07);
}

.kc-result--success {
  border-color: #c9ead9;
  background: linear-gradient(180deg, #f3fff8 0%, #fff 58%);
}
.kc-result--ok {
  border-color: #d9e4f8;
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 62%);
}
.kc-result--error {
  border-color: #f1d7d9;
  background: linear-gradient(180deg, #fff8f8 0%, #fff 62%);
}
.kc-result--neutral {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 62%);
}

.kc-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #eef3fb;
  color: #41649f;
  font-size: 31px;
}
.kc-result--success .kc-result__icon { background: #dcf7e8; color: #208354; }
.kc-result--error .kc-result__icon { background: #fde8e9; color: #bd4d54; }
.kc-result--neutral .kc-result__icon { background: #edf0f4; color: #697386; }

.kc-result__eyebrow {
  margin: 17px 0 5px !important;
  color: #6f7f98 !important;
  font-size: 10.5px !important;
  font-weight: 850;
  letter-spacing: .12em;
}

.kc-result h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.kc-result > p {
  margin: 14px auto 0;
  max-width: 390px;
  color: #697386;
  font-size: 13.5px;
  line-height: 1.68;
  word-break: keep-all;
}
.kc-result > p b { color: #25324a; }
.kc-result .kc-result__sub { color: #7f8897; font-size: 12.5px; }

.kc-code {
  display: inline-flex;
  margin-top: 16px;
  padding: 9px 13px;
  border: 1px solid #dde2ea;
  border-radius: 11px;
  background: #f8fafc;
  color: #374151;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .06em;
}

.kc-success-amount {
  margin: 17px 0 0;
  color: #16824f;
  font-size: clamp(40px, 11vw, 54px);
  font-weight: 900;
  letter-spacing: -.045em;
}

.kc-balance {
  margin-top: 8px !important;
  color: #667085 !important;
  font-size: 12.5px !important;
}
.kc-balance b { color: #29364c !important; }

.kc-footnote {
  margin: 14px 8px 0;
  color: #8a94a5;
  font-size: 11.5px;
  line-height: 1.65;
  text-align: center;
  word-break: keep-all;
}

@media (min-width: 480px) {
  .kc-page { padding-left: 20px; padding-right: 20px; }
  .kc-hero { min-height: 430px; padding: 40px 32px 32px; }
  .kc-how, .kc-info { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
