/* ==========================================================
   코어세일즈컴퍼니 대부중개 — 초안 스타일
   토큰 기준: aid_new DESIGN_GUIDE.md (brand/aid 팔레트, Pretendard)
   ========================================================== */

:root {
  /* brand */
  --brand-50: #e7f5ff;
  --brand-100: #d0ebff;
  --brand-300: #74c0fc;
  --brand-400: #4dabf7;   /* primary */
  --brand-500: #339af0;   /* primary hover */
  --brand-600: #228be6;   /* active, 링크 */
  --brand-700: #1c7ed6;
  --brand-weak: rgba(77, 171, 247, 0.14);

  /* neutral */
  --aid-50: #f8f9fa;
  --aid-100: #f1f3f5;
  --aid-150: #e9ecef;
  --aid-200: #dee2e6;
  --aid-300: #ced4da;
  --aid-400: #adb5bd;
  --aid-500: #868e96;
  --aid-600: #495057;
  --aid-700: #343a40;
  --aid-800: #212529;
  --aid-900: #0b0c0e;

  /* radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* shadow */
  --shadow-card: 0 1px 2px rgba(0, 12, 30, 0.04), 0 2px 8px rgba(0, 12, 30, 0.06);
  --shadow-card-lg: 0 4px 12px rgba(0, 12, 30, 0.06), 0 12px 24px rgba(0, 12, 30, 0.10);
  --shadow-ring: 0 0 0 3px rgba(77, 171, 247, 0.20);
}

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

body {
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  color: var(--aid-700);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── 버튼 ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary { background: var(--brand-400); color: #fff; }
.btn-primary:hover { background: var(--brand-500); }
.btn-primary:active { background: var(--brand-600); }
.btn-neutral { background: var(--aid-150); color: var(--aid-700); }
.btn-neutral:hover { background: var(--aid-200); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── 헤더 ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--aid-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--brand-400);
  color: #fff;
  font-weight: 800;
  border-radius: var(--r-md);
}
.brand-text { font-size: 17px; font-weight: 800; color: var(--aid-900); }
.gnb { display: flex; align-items: center; gap: 24px; }
.gnb a:not(.btn) { font-size: 15px; font-weight: 600; color: var(--aid-600); }
.gnb a:not(.btn):hover { color: var(--brand-600); }
.gnb .btn-primary { color: #fff; }
.gnb .btn-primary:hover { color: #fff; background: var(--brand-600); }

/* ── 히어로 ───────────────────────────── */
.hero {
  background: var(--aid-50);
  border-bottom: 1px solid var(--aid-100);
  padding: 88px 0;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--brand-weak);
  color: var(--brand-700);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--aid-900);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-sub { font-size: 17px; color: var(--aid-500); margin-bottom: 32px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; }

/* ── 섹션 공통 ─────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--aid-50); }
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--aid-900);
  text-align: center;
}
.section-sub {
  font-size: 15px;
  color: var(--aid-500);
  text-align: center;
  margin: 8px 0 36px;
}

/* ── 카드 ─────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--aid-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--brand-weak);
  color: var(--brand-700);
  font-weight: 800;
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 800; color: var(--aid-800); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--aid-600); }

/* ── 세 가지 약속 ─────────────────────── */
.promise-card { max-width: 720px; margin: 0 auto; }
.promise-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
}
.promise-list li + li { border-top: 1px solid var(--aid-100); }
.promise-list .step-num { flex-shrink: 0; margin: 0; }
.promise-list p { font-size: 16px; color: var(--aid-700); font-weight: 600; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--brand-400);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 50%;
}

/* ── 인사말 ───────────────────────────── */
.greeting-card { max-width: 760px; margin: 0 auto; }
.greeting-card p {
  font-size: 15px;
  color: var(--aid-600);
  line-height: 1.8;
}
.greeting-card p + p { margin-top: 14px; }
.greeting-quote {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--aid-800) !important;
  padding-left: 14px;
  border-left: 3px solid var(--brand-400);
}
.greeting-sign {
  text-align: right;
  font-weight: 700;
  color: var(--aid-700) !important;
}

/* ── 유의사항 ─────────────────────────── */
.notice-box {
  background: #fff;
  border: 1px solid var(--aid-200);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}
.notice-box li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--aid-600);
  margin-bottom: 8px;
}
.notice-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
}

/* ── FAQ ─────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--aid-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--aid-50); }
.faq-q {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--brand-weak);
  color: var(--brand-600);
  font-size: 15px;
  font-weight: 800;
  border-radius: 50%;
}
.faq-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--aid-800);
}
.faq-arrow {
  flex-shrink: 0;
  color: var(--aid-400);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-item[open] summary {
  border-bottom: 1px solid var(--aid-100);
}
.faq-item[open] .faq-q { background: var(--brand-400); color: #fff; }
.faq-body {
  padding: 18px 22px 20px 66px;
}
.faq-body p {
  font-size: 15px;
  color: var(--aid-600);
  line-height: 1.7;
}
.faq-body p + p,
.faq-body p + ul { margin-top: 10px; }
.faq-body ul li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  color: var(--aid-600);
  line-height: 1.7;
  margin-bottom: 4px;
}
.faq-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-400);
}

/* ── 대상자 안내 (무한 슬라이드) ───────── */
.target-section { overflow: hidden; }
.target-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}
.target-left { flex: 0 0 320px; }
.target-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--aid-900);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
}
.target-title .highlight { color: var(--brand-600); }
.target-subtitle {
  font-size: 15px;
  color: var(--aid-500);
  margin-bottom: 24px;
}
.target-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 좌우 페이드 마스크 */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.slide-row { overflow: hidden; }
.slide-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide-left 28s linear infinite;
}
.slide-track.reverse { animation: slide-right 32s linear infinite; }
.slide-row:hover .slide-track { animation-play-state: paused; }
@keyframes slide-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes slide-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.target-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--aid-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 22px;
  white-space: nowrap;
}
.target-card p { font-size: 15px; font-weight: 700; color: var(--aid-700); }
.target-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--brand-weak);
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .slide-track, .slide-track.reverse { animation: none; }
}

/* ── 푸터 ─────────────────────────────── */
.site-footer {
  background: var(--aid-800);
  color: var(--aid-400);
  padding: 40px 0 32px;
  font-size: 14px;
}
.footer-warning {
  border: 1px solid var(--aid-600);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.footer-warning p { font-size: 13px; line-height: 1.7; }
.footer-warning-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--aid-600);
}
.footer-warning-em {
  margin-top: 12px;
  font-weight: 700;
  color: var(--aid-300);
}
.footer-info strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-info li { font-size: 13px; }
.footer-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--aid-600);
  font-size: 12px;
  color: var(--aid-500);
}

/* ── 반응형 ───────────────────────────── */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .faq-body { padding-left: 22px; }
  .target-layout { flex-direction: column; align-items: stretch; }
  .target-left { flex: none; text-align: center; }
  .target-title { font-size: 24px; }
  .gnb { gap: 14px; }
  .gnb a:not(.btn) { display: none; }
}
