:root {
  --bg: #fffaf3;
  --alt: #fff1e2;
  --ink: #2b2118;
  --sub: #6f6156;
  --line: #f0e2d2;
  --brand: #ff6a3d;
  --brand2: #ff9a3c;
  --rose: #e8456b;
  --kakao: #fee500;
  --kakao-ink: #191600;
  --white: #fff;
  --grad: linear-gradient(90deg, #ff5a36 0%, #ff9a3c 55%, #e8456b 100%);
  --r: 18px;
  --shadow: 0 10px 30px -12px rgba(120, 60, 20, .25);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: #efe7dc;
  color: var(--ink);
  line-height: 1.6;
  word-break: keep-all
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit
}

svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0
}

.page {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: 96px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .06)
}

/* headings */
h1 {
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.02em
}

h2 {
  font-size: clamp(22px, 5.8vw, 32px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 10px 0 16px
}

h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45
}

.grad {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.line {
  text-decoration: none;
  background: linear-gradient(transparent 62%, rgba(255, 154, 60, .35) 62%);
  padding: 0 2px
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(255, 106, 61, .1);
  padding: 4px 12px;
  border-radius: 99px
}

.desc {
  color: var(--sub);
  font-size: 15.5px;
  margin-bottom: 22px
}

/* hero */
.hero-img {
  position: relative
}

.hero-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(transparent, var(--bg))
}

.hero-body {
  padding: 0 22px 40px;
  margin-top: -40px;
  position: relative;
  text-align: center
}

.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px
}

.lead {
  color: var(--sub);
  font-size: 15px;
  margin: 16px 0 22px
}

.income {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow)
}

.income small {
  font-size: 16px;
  font-weight: 700;
  color: var(--sub)
}

.income strong {
  font-size: clamp(40px, 12vw, 60px);
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.ticker {
  overflow: hidden;
  margin: 16px -22px 8px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent)
}

.ticker-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: tick 22s linear infinite
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700
}

.ticker svg {
  color: var(--brand)
}

@keyframes tick {
  to {
    transform: translateX(-50%)
  }
}

.note {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 18px
}

.sub-note {
  font-size: 13.5px;
  color: var(--sub);
  margin-top: 10px
}

/* kakao button + breathing */
.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--kakao);
  color: var(--kakao-ink);
  font-size: 17.5px;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(160, 130, 0, .6)
}

.kk {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--kakao-ink);
  color: var(--kakao);
  font-style: normal
}

.kk svg {
  width: 26px;
  height: 26px
}

.kk b {
  position: absolute;
  font-size: 7.5px;
  font-weight: 900;
  color: var(--kakao-ink);
  top: 11px;
  letter-spacing: -.02em
}

.kk.lg {
  width: 60px;
  height: 60px;
  border-radius: 18px
}

.kk.lg svg {
  width: 46px;
  height: 46px
}

.kk.lg b {
  font-size: 12px;
  top: 20px
}

.breathe {
  animation: breathe 1.8s ease-in-out infinite
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.045)
  }
}

.btn-kakao:active {
  transform: scale(.97)
}

/* sections */
.sec {
  padding: 52px 22px
}

.sec.alt {
  background: var(--alt)
}

.sec>.btn-kakao {
  margin-top: 22px
}

/* swiper */
.swiper {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  touch-action: pan-y
}

.swiper-track {
  display: flex;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1)
}

.slide {
  flex: 0 0 100%;
  padding: 0 4px
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  transition: .3s;
  cursor: pointer
}

.dots i.on {
  width: 24px;
  background: var(--brand)
}

.card-quote {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  min-height: 170px
}

.card-quote .qi {
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--grad);
  border-radius: 12px;
  padding: 9px;
  margin-bottom: 14px
}

.card-quote p {
  font-size: 17px;
  line-height: 1.7
}

.card-quote b {
  color: var(--brand)
}

/* tabs */
.tab-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--white);
  padding: 6px;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

.tab-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sub);
  transition: .3s
}

.tab-nav svg {
  width: 22px;
  height: 22px
}

.tab-nav button.active {
  background: var(--grad);
  color: var(--white)
}

.tab-panels {
  margin-top: 14px
}

.panel {
  display: none;
  background: var(--white);
  border-radius: var(--r);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow)
}

.panel.active {
  display: block;
  animation: fade .45s ease
}

.panel p {
  color: var(--sub);
  margin-top: 8px
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.big-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: rgba(255, 106, 61, .12);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center
}

.big-badge svg {
  width: 34px;
  height: 34px
}

/* formula + calc */
.formula {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px
}

.formula div {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 700
}

.formula div svg {
  width: 26px;
  height: 26px;
  color: var(--brand);
  display: block;
  margin: 0 auto 6px
}

.formula div.hl {
  background: var(--grad);
  color: var(--white);
  border: 0
}

.formula div.hl svg {
  color: var(--white)
}

.formula>b {
  font-size: 20px;
  color: var(--brand)
}

.calc {
  margin-top: 18px;
  background: var(--white);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow)
}

.calc-head {
  font-weight: 800;
  margin-bottom: 10px
}

.calc label {
  font-size: 15px;
  color: var(--sub)
}

.calc output {
  font-weight: 800;
  color: var(--brand)
}

input[type=range] {
  width: 100%;
  margin: 12px 0;
  accent-color: var(--brand)
}

.calc-res {
  font-size: 15px;
  text-align: right
}

.calc-res strong {
  font-size: 28px;
  font-weight: 900;
  margin-left: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.tiny {
  font-size: 12px;
  color: var(--sub);
  margin-top: 8px
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 15px;
  background: rgba(255, 106, 61, .08);
  padding: 12px 16px;
  border-radius: 12px
}

.pill svg {
  color: var(--brand)
}

/* steps */
.steps-nav {
  display: flex;
  gap: 8px;
  margin-top: 6px
}

.steps-nav button {
  flex: 1;
  height: 6px;
  border-radius: 9px;
  background: var(--line);
  font-size: 0;
  transition: .3s
}

.steps-nav button.active {
  background: var(--brand)
}

.step {
  background: var(--white);
  border-radius: var(--r);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  min-height: 200px
}

.step-ic {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px
}

.step-ic svg {
  width: 30px;
  height: 30px
}

.step span {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .1em
}

.step p {
  color: var(--sub);
  margin-top: 6px
}

.photo {
  margin-top: 20px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow)
}

.photo p {
  padding: 16px 18px;
  font-size: 15px
}

.photo b {
  color: var(--brand)
}

/* faq */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.qa {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line)
}

.q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 16px;
  font-size: 16px;
  font-weight: 700
}

.q b {
  color: var(--brand);
  font-weight: 900
}

.q svg {
  margin-left: auto;
  transition: .3s;
  color: var(--sub)
}

.qa.open .q svg {
  transform: rotate(180deg)
}

.a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease
}

.a p {
  overflow: hidden;
  padding: 0 16px 0 38px;
  color: var(--sub)
}

.qa.open .a {
  grid-template-rows: 1fr
}

.qa.open .a p {
  padding-bottom: 16px
}

/* cta */
.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--alt))
}

.foot {
  text-align: center;
  font-size: 12px;
  color: var(--sub);
  padding: 20px
}

/* fixbar */
.fixbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: 100%;
  max-width: 750px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 243, .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 50;
  transition: transform .35s
}

.fixbar.show {
  transform: translate(-50%, 0)
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden
}

.modal.open {
  visibility: visible
}

.mask {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, .55);
  opacity: 0;
  transition: .3s
}

.modal.open .mask {
  opacity: 1
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 750px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 30px 22px calc(26px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  text-align: center
}

.modal.open .sheet {
  transform: none
}

@media(min-width:760px) {
  .modal {
    align-items: center
  }

  .sheet {
    max-width: 440px;
    border-radius: 24px
  }
}

.x {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--alt);
  display: flex;
  align-items: center;
  justify-content: center
}

.m-ic {
  display: flex;
  justify-content: center;
  margin-bottom: 12px
}

.m-sub {
  color: var(--sub);
  font-size: 14.5px;
  margin: 6px 0 20px
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  margin-bottom: 12px;
  transition: .2s
}

.field:focus-within {
  border-color: var(--brand)
}

.field svg {
  color: var(--brand);
  width: 20px;
  height: 20px
}

.field input {
  flex: 1;
  border: 0;
  outline: 0;
  height: 52px;
  font: inherit;
  font-size: 16px;
  background: none;
  color: var(--ink)
}

.agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
  text-align: left;
  margin: 4px 0
}

.agree input {
  accent-color: var(--brand);
  width: 18px;
  height: 18px
}

.err {
  min-height: 20px;
  color: var(--rose);
  font-size: 13.5px;
  margin: 6px 0
}

.done {
  display: none
}

.done p {
  color: var(--sub);
  margin: 8px 0 20px
}

.sheet.ok form,
.sheet.ok .m-ic,
.sheet.ok #mTitle,
.sheet.ok .m-sub {
  display: none
}

.sheet.ok .done {
  display: block
}

.toast {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: rgba(30, 20, 10, .85);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 200
}

.toast.show {
  opacity: 1
}

/* ===== Form Modal (Replicated from tk5) ===== */
.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
  box-sizing: border-box;
}

.form-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.form-modal-container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-modal-overlay.show .form-modal-container {
  transform: translateY(0) scale(1);
}

.form-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: #F0F0F0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 34px;
  color: #666;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.form-modal-close:hover {
  background: #FF5252;
  color: #ffffff;
}

.form-card {
  background: #ffffff;
  border: 2px solid #FFD0A8;
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 12px 32px -8px rgba(255, 130, 45, 0.15);
  position: relative;
}

.form-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.form-card__badge {
  display: inline-block;
  background: #FFEBEB;
  color: #FF5252;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.form-card__title {
  font-size: 24px;
  font-weight: 900;
  color: #333333;
  line-height: 1.3;
}

.form-card__sub {
  font-size: 13px;
  color: #7A5A3F;
  margin-top: 6px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: #AA8B72;
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 50px;
  padding: 12px 14px 12px 44px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid #E2D5C5;
  border-radius: 12px;
  background: #FFFDF9;
  color: #333;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: #FF9D00;
  box-shadow: 0 0 0 3px rgba(255, 157, 0, 0.15);
  background: #fff;
}

/* Radio chips */
.form-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.form-chip-item {
  position: relative;
  cursor: pointer;
}

.form-chip-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-chip-item span {
  display: block;
  text-align: center;
  padding: 10px 4px;
  border: 1.5px solid #E2D5C5;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  background: #FFFDF9;
  transition: all 0.2s;
}

.form-chip-item input[type="radio"]:checked+span {
  border-color: #FF5252;
  background: #FF5252;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 82, 82, 0.25);
}

/* Agreement checkbox */
.form-agree {
  margin: 20px 0 24px;
  padding: 12px;
  background: #FFF7ED;
  border-radius: 10px;
}

.form-agree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5C3A21;
  cursor: pointer;
  font-weight: 500;
}

.form-agree-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #FF5252;
  cursor: pointer;
}

/* Submit button */
.form-submit-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF9D00, #FF5252);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 82, 82, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 82, 82, 0.45);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn__talk {
  background: #FEE500;
  color: #3A1D02;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.form-submit-btn__arrow {
  font-weight: 900;
}

/* ===== Kakao Copy Modal (Fallback) ===== */
.kakao-copy-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: none;
  overflow: hidden;
}

.kakao-copy-modal.show {
  display: block;
}

.kakao-copy-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.kakao-copy-icon {
  width: 45px;
  height: 45px;
  background: #FEE500;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.kakao-copy-title {
  font-size: 17px;
  font-weight: 700;
}

.kakao-copy-body {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.kakao-copy-box {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.kakao-copy-id {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
}

.kakao-copy-btn {
  border: 0;
  background: #d0e8ff;
  color: #0066cc;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.copy-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 30px;
  color: #999;
  cursor: pointer;
  z-index: 10;
}

.copy-modal-close:hover {
  color: #333;
}

@media(min-width:760px) {
  .page {
    margin: 0 auto
  }

  .sec {
    padding: 64px 40px
  }

  .hero-body {
    padding: 0 40px 50px
  }
}

@media(prefers-reduced-motion:reduce) {

  .breathe,
  .ticker-track {
    animation: none
  }
}