/* 정직페이 랜딩: web.mhna98.com UI 시스템을 그대로 쓰되 공식 안내 목적만 보강 */
.logo-mark {
  object-fit: contain;
  border-radius: 10px;
}

.hero-card .hc-foot b,
.card-link,
.proof-item b {
  color: var(--mint);
}

.lead-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.sticky-cta .btn-primary {
  min-width: 160px;
}

.hero-cta {
  position: relative;
}

.cta-arrow {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  animation: arrowNudge 1.15s ease-in-out infinite;
}

.cta-arrow::after {
  content: "→";
  display: inline-block;
  font-size: 24px;
  line-height: 1;
}

.cta-arrow-hero {
  left: 18px;
  top: -30px;
}

.lead-arrow-wrap {
  position: relative;
}

.cta-arrow-lead {
  right: 16px;
  top: -28px;
}

.official-pulse {
  position: relative;
  overflow: hidden;
}

.official-pulse::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -40%;
  width: 34%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: buttonShine 2.4s ease-in-out infinite;
}

.header-official-pulse {
  animation: headerCtaLift 1.8s ease-in-out infinite;
}

.btn-phone {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.22);
}

.btn-phone:hover {
  box-shadow: 0 14px 38px rgba(16, 185, 129, 0.3);
}

.phone-pulse {
  position: relative;
  overflow: hidden;
  animation: phoneBreath 1.9s ease-in-out infinite;
}

.phone-pulse::before {
  content: "전화 연결";
  position: absolute;
  right: 12px;
  top: -18px;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  animation: phoneLabel 2.4s ease-in-out infinite;
}

.phone-pulse::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -40%;
  width: 34%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  animation: buttonShine 2.8s ease-in-out infinite;
}

@keyframes arrowNudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.74;
  }

  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}

@keyframes buttonShine {
  0% {
    left: -45%;
  }

  55%,
  100% {
    left: 115%;
  }
}

@keyframes headerCtaLift {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(124, 58, 237, 0.3);
  }
}

@keyframes phoneBreath {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes phoneLabel {
  0%,
  100% {
    opacity: 0;
    transform: translateY(4px);
  }

  35%,
  70% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar .container {
    display: grid;
    gap: 4px;
    min-height: auto;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 12.5px;
    line-height: 1.38;
  }

  .topbar .container > span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topbar .tb-right {
    margin-left: 0;
    gap: 10px;
    flex-wrap: wrap;
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-text {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .header-right {
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: none !important;
  }

  .header-right .btn-sm {
    max-width: 94px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(32px, 9.6vw, 42px);
    line-height: 1.18;
    letter-spacing: -1.5px;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 64px;
  }

  .hero-sub {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.72;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-note,
  .form-note {
    max-width: 330px;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero-cta {
    max-width: 330px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .cta-arrow {
    position: static;
    margin: 0 0 -4px 2px;
    width: 100%;
    justify-content: center;
  }

  .lead-arrow-wrap .cta-arrow {
    margin-bottom: 8px;
  }

  .phone-pulse::before {
    display: none;
  }

  .sec {
    padding: 64px 0;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .sec-head,
  .story,
  .story .big,
  .sec-head h2,
  .sec-head p {
    max-width: 330px;
  }

  .story .big,
  .sec-head h2 {
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.3;
    letter-spacing: -1.1px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .story p,
  .sec-head p,
  .pain .tx span,
  .card p {
    word-break: normal;
    overflow-wrap: break-word;
  }

  .sticky-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    left: 0;
    right: auto;
    width: min(100vw, 340px);
    max-width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .sticky-cta .btn {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-cta .btn-primary {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .brand-text small {
    display: none;
  }

  .header-right .btn-sm {
    max-width: 82px;
    padding: 0 8px;
    font-size: 12px;
  }
}

.ad-section-jeongjikpay {
  padding: 22px 0;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.ad-section-jeongjikpay .container {
  max-width: 980px;
}

.ad-label {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ad-section-jeongjikpay .yn-ad {
  display: block;
  min-height: 90px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-2);
}

@media (max-width: 640px) {
  .ad-section-jeongjikpay {
    padding: 18px 0;
  }

  .ad-section-jeongjikpay .yn-ad {
    min-height: 72px;
  }
}
