/* ============== Inter (셀프 호스팅) ============== */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: local('Inter'), url('./fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: local('Inter'), url('./fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: local('Inter'), url('./fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: local('Inter'), url('./fonts/inter-v20-latin-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: local('Inter'), url('./fonts/inter-v20-latin-800.woff2') format('woff2');
}

/* ============== Noto Sans KR (셀프 호스팅) ============== */
@font-face {
  font-display: swap;
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 400;
  src: local('Noto Sans KR'), url('./fonts/noto-sans-kr-v39-korean-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 500;
  src: local('Noto Sans KR'), url('./fonts/noto-sans-kr-v39-korean-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 700;
  src: local('Noto Sans KR'), url('./fonts/noto-sans-kr-v39-korean-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'KimjungchulScript';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/KimjungchulScript-LightA1.woff2') format('woff2');
}

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

html, body {
  height: 100%;
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  background-color: #fff;
  color: #000;
  position: relative;
  scrollbar-gutter: stable;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


.noto-sans-kr-regular {
  font-family: 'Noto Sans KR', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.noto-sans-kr-bold {
  font-family: 'Noto Sans KR', sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* ============================================
   Custom Scrollbar (Global)
   ============================================ */

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #FF4D00 #1a1a1a;
}

/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #FF4D00;
  border-radius: 8px;
  border: 2px solid #1a1a1a;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff6622;
  border: 2px solid #1a1a1a;
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: #1a1a1a;
}

/* 모바일: 더 얇게 */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  ::-webkit-scrollbar-thumb {
    border: none;
    background-clip: border-box;
  }
}

.scrollbar {
  overflow-y: auto;
}

/* ============================================
   전역 공통 스타일 (한글 줄바꿈 규칙)
   ============================================ */
p, h1, h2, h3, h4, h5, h6, li, span, a,
dt, dd, blockquote, figcaption, label,
.hero-cta-text, .cta-title, .cta-sub,
.hero-title, .hero-subtitle, .hero-name, .hero-message,
.section-title, .section-sub, .section-desc,
.card-title, .card-body, .card-desc,
.feature-title, .feature-desc,
.center-title, .center-sub, .profile-bio,
.tri-warn-text, .tri-desc, .tri-desc-sub, .tri-col-title, .tri-col-sub,
.faq-q-text, .faq-answer-inner,
.review-title, .review-body,
.cta-urgency-badge, .cta-urgency {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* ============================================
   nav / footer 보정
   ============================================ */
.nav-inner {
  height: 60px;
}
.footer {
  padding-bottom: 40px;
}
.footer .info-text {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
}

@media only screen and (max-width: 600px) {
  .footer {
    padding-bottom: 40px;
  }
  .footer .info-text {
    font-size: 14px;
  }
}

/* ============================================
   Top Fixed Bar (shared across all pages)
   ============================================ */
:root {
  --bar-h: 48px;
  --nav-h: 50px;
}
.top-fixed-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #0b1420;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap { top: var(--bar-h) !important; }
body.bar-below .top-fixed-bar { top: var(--nav-h); z-index: 999; }
body.bar-below .nav-wrap { top: 0 !important; }
.top-fixed-bar__text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.top-fixed-bar__track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-single 7s linear infinite;
}
@keyframes marquee-single {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.top-fixed-bar__phone {
  display: none;
}
@media (min-width: 769px) {
  .top-fixed-bar__track { animation-duration: 22s; }
  .top-fixed-bar {
    pointer-events: none;
    cursor: default;
  }
  .top-fixed-bar__phone {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,0.25);
  }
  .top-fixed-bar__btn {
    display: none;
  }
}
.top-fixed-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF4D00;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  flex-shrink: 0;
  animation: btnColorPulse 2.8s ease-in-out infinite;
}
@keyframes btnColorPulse {
  0%, 50%, 100% { background: #FF4D00; }
  60%           { background: #ff6b1a; box-shadow: 0 0 14px 2px rgba(255,107,26,0.7); }
  70%           { background: #FF4D00; box-shadow: none; }
}
.top-fixed-bar__btn::before,
.top-fixed-bar__btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  border: 2px solid #FF4D00;
  opacity: 0;
  animation: sonar-ring 2.2s ease-out infinite;
  pointer-events: none;
}
.top-fixed-bar__btn::after {
  animation-delay: 1.1s;
}
@keyframes sonar-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.top-fixed-bar__btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  animation: phoneVibrate 2.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes phoneVibrate {
  0%, 55%, 100% { transform: translate(0, 0) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  58%  { transform: translate(-3px, 0) rotate(-12deg); }
  61%  { transform: translate(3px, 0)  rotate(10deg);  filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)); }
  64%  { transform: translate(-2px, 0) rotate(-8deg);  }
  67%  { transform: translate(2px, 0)  rotate(7deg);   filter: drop-shadow(0 0 4px rgba(255,255,255,0.7)); }
  70%  { transform: translate(-1px, 0) rotate(-4deg);  }
  73%  { transform: translate(1px, 0)  rotate(2deg);   }
  76%  { transform: translate(0, 0)    rotate(0deg);   filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}
.top-fixed-bar:hover .top-fixed-bar__btn {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,77,0,0.4);
}
body { padding-top: calc(var(--bar-h) + var(--nav-h)); }
@media (max-width: 768px) {
  :root { --bar-h: 43px; }
  .top-fixed-bar {
    padding: 8px 12px;
    gap: 10px;
  }
  .top-fixed-bar__text {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
  }
  .top-fixed-bar__btn {
    padding: 6px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .top-fixed-bar__btn-text {
    display: none;
  }
}

/* ============================================
   Toast Notice — 24시간 상담 가능 안내
   (FOUC 방지를 위해 base.css에 위치)
   ============================================ */
.toast-notice {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 10px 14px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0,0,0,0.04);
  max-width: 340px;
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
  pointer-events: auto;
}
.toast-notice[hidden] { display: none !important; }
.toast-notice__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 4px 6px 4px 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.toast-notice__link:hover {
  background: rgba(255, 77, 0, 0.06);
}
@media (min-width: 769px) {
  .toast-notice__link {
    pointer-events: none;
    cursor: default;
  }
}
.toast-notice.is-visible {
  transform: translateX(0);
  opacity: 1;
}
.toast-notice__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  background: #FFF0EB;
  border-radius: 50%;
  color: #FF4D00;
  animation: toast-icon-pulse 2.4s ease-in-out infinite;
}
.toast-notice__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
@keyframes toast-icon-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.toast-notice__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.toast-notice__title {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.2px;
}
.toast-notice__msg {
  font-size: 12px;
  color: #595959;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.toast-notice__close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #888;
  padding: 0 6px;
  flex-shrink: 0;
  align-self: flex-start;
}
.toast-notice__close:hover { color: #111; }

@media (max-width: 768px) {
  .toast-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    transform: translateY(140%);
  }
  .toast-notice.is-visible { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .toast-notice { transition: opacity 0.2s ease; transform: none; }
  .toast-notice__icon { animation: none; }
}
