/* =========================================================
   엔스AI (Near Support AI) — 랜딩페이지 스타일
   톤: 잉크 퍼플 / 웜 아이보리 / 바이올렛 / 라벤더 그레이
   ========================================================= */

:root {
  /* Brand */
  --ink: #302442;
  --ink-2: #4a3c5c;
  --muted: #756781;
  --muted-2: #9488a3;
  --violet: #6946a0;
  --violet-deep: #553785;
  --violet-soft: #f1ecf9;

  /* Surface */
  --ivory: #f8f6f1;
  --lavender: #efeaf5;
  --white: #ffffff;
  --line: #e6e0ec;
  --line-soft: #efeaF5;

  /* Accent (설명 아이콘용) */
  --accent-mint: #10b3a3;
  --accent-amber: #d98829;

  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(48, 36, 66, .04);
  --shadow: 0 2px 4px rgba(48, 36, 66, .03), 0 10px 30px -16px rgba(48, 36, 66, .16);
  --shadow-lg: 0 24px 60px -30px rgba(48, 36, 66, .3);

  --container: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   공통 버튼
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(105, 70, 160, .85);
}
.btn-primary:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(105, 70, 160, .9);
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-soft);
}
.btn-ghost-light {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); }

/* 어두운 배경 위 밝은 버튼 (히어로) */
.btn-light {
  background: #fff;
  color: var(--violet-deep);
  box-shadow: 0 14px 30px -16px rgba(12, 3, 28, .8);
}
.btn-light:hover {
  background: #fff;
  color: var(--violet);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -16px rgba(12, 3, 28, .9);
}
/* 카카오톡 문의 — 카카오 브랜드 옐로를 써서 "상담 채널"임을 즉시 인지시킨다.
   퍼플 팔레트에 노란색이 하나 섞이지만, 기능성 버튼이라 브랜드 색을 유지하는 편이
   인지·클릭률 모두 유리하다. 톤을 맞추고 싶으면 --kakao 를 아이보리로 바꾸면 된다. */
.btn-kakao {
  background: #fee500;
  color: #3c1e1e;
  box-shadow: 0 14px 30px -16px rgba(12, 3, 28, .8);
}
.btn-kakao svg { width: 18px; height: 18px; }
.btn-kakao:hover {
  background: #ffeb33;
  color: #2b1414;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -16px rgba(12, 3, 28, .9);
}

/* 채널 주소가 아직 없을 때만 나타나는 안내 (히어로를 평소엔 깨끗하게 유지) */

.btn-light-soft {
  background: rgba(255, 255, 255, .92);
  color: var(--violet-deep);
  box-shadow: 0 14px 30px -18px rgba(12, 3, 28, .7);
}
.btn-light-soft:hover {
  background: #fff;
  color: var(--violet);
  transform: translateY(-1px);
}

.btn-block { width: 100%; }

/* =========================================================
   헤더
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 246, 241, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(48, 36, 66, .5);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 브랜드 로고 (헤더·푸터 공통) — 공식 워드마크 이미지.
   원본 1024×341 중 실제 잉크는 x 63~961, y 133~208 (899×76) 이고 사방이 투명이다.
   여백을 그대로 두면 로고가 작게 떠 보이므로 잉크만 오려낸다.
   (여유 3px: crop 905×82, 비율 11.04:1) */
.brand-logo {
  --src-w: 1024;
  --src-h: 341;
  --crop-x: 60;    /* 63 - 3 */
  --crop-y: 130;   /* 133 - 3 */
  --crop-w: 905;   /* 899 + 3×2 */
  --crop-h: 82;    /* 76 + 3×2 */

  position: relative;
  display: block;
  /* 로고 높이 = 폭 × 82/905. 푸터 기준 크기.
     헤더는 아래 `.site-header .brand-logo` 에서 더 작게 덮어쓴다. */
  width: clamp(230px, 27vw, 310px);
  aspect-ratio: var(--crop-w) / var(--crop-h);
  overflow: hidden;
}

/* 헤더 로고만 축소 (대표 요청: "왼쪽 상단에 로고 크기 줄이기").
   폭 310px → 258px, 높이 28px → 23px (1280px 기준).
   헤더 높이(72px)는 그대로 두고 로고만 줄여 내비·CTA와의 무게 균형을 맞췄다.
   푸터·법적문서 푸터는 기존 크기를 유지하므로 여기서는 헤더로 한정한다. */
.site-header .brand-logo {
  width: clamp(196px, 21vw, 258px);
}

/* 어두운 푸터(#241b33) 위에서는 잉크색 로고가 묻히므로 흰색으로 뒤집는다.
   brightness(0)으로 완전 검정 실루엣을 만든 뒤 invert(1)로 흰색으로 반전. */
.brand-logo.is-light img {
  filter: brightness(0) invert(1);
  opacity: .92;
}
.brand-logo img {
  position: absolute;
  top: 0;
  left: 0;
  /* 전역 img{max-width:100%} 가 확대를 막아 오른쪽이 잘리므로 해제 */
  width: calc(var(--src-w) / var(--crop-w) * 100%);
  max-width: none;
  height: auto;
  transform: translate(
    calc(var(--crop-x) / var(--src-w) * -100%),
    calc(var(--crop-y) / var(--src-h) * -100%)
  );
}

/* 구 텍스트 브랜드 (법적문서 미적용분 대비 보존) */
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.05em;
  flex: 0 0 auto;
}
.brand-mark span { color: #c3a8e8; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name b {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-name small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.header-cta { flex: 0 0 auto; margin-left: auto; }
.header-cta .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }

.nav-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { background: var(--lavender); }
.nav-toggle svg { width: 20px; height: 20px; }

.header-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  width: min(17rem, 100%);
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  box-shadow: 0 12px 28px rgba(48, 36, 66, .14);
}
.header-menu a:not(.btn) {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 600;
}
.header-menu a:not(.btn):hover,
.header-menu a:not(.btn):focus-visible { background: var(--lavender); }
.header-menu .btn { display: none; }

/* =========================================================
   HERO — 중앙 정렬 (한 문장 + CTA)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 118% 94% at 50% 38%,
      #8352d8 0%, #6431ac 32%, #401c78 62%, #241142 100%);
  /* 상단 여백은 스티키 헤더와 제목이 붙지 않도록 반드시 필요하다.
     하단 여백은 기관 띠의 .clients padding이 담당한다.
     대표 요청("히어로 배너 크기 위아래로 늘리기")으로 세로 여백을 늘렸다.
     1280px 기준 상단 115px → 160px. 아래쪽은 .clients padding 으로 함께 늘린다. */
  padding: clamp(104px, 12.5vw, 184px) 0 0;
}

/* --- 배경 장식 레이어 : 움직이는 원형 + 도트 그리드 --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;    /* 레이아웃/페인트 격리로 애니메이션 비 절감 */
}

/* 커서 조명과 원형 장식의 시차 효과 */
@media (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(280px, 48vw, 720px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222, 204, 255, .34), rgba(205, 173, 255, .12) 36%, transparent 70%);
    opacity: 0;
    translate: calc(var(--hero-light-x, 50vw) - 50%) calc(var(--hero-light-y, 35vh) - 50%);
    transition: translate .24s ease-out, opacity .32s ease-out;
  }
  .hero-bg.is-pointer-active::before { opacity: .85; }
  .hero-bg :is(.orb, .ring) {
    translate: calc(var(--hero-drift-x, 0px) * var(--hero-depth, 1))
               calc(var(--hero-drift-y, 0px) * var(--hero-depth, 1));
    transition: translate .42s ease-out;
  }
  .hero-bg .orb-2 { --hero-depth: .55; }
  .hero-bg .orb-3 { --hero-depth: 1.15; }
  .hero-bg .orb-4 { --hero-depth: .65; }
  .hero-bg .ring { --hero-depth: 1.35; }
}

/* 도트 그리드 : 천천히 흘러가는 미세한 이동 */
.hero-bg .dots {
  position: absolute;
  inset: -20% -8%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .17) 1.35px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 76% 60% at 50% 40%, #000 26%, transparent 76%);
          mask-image: radial-gradient(ellipse 76% 60% at 50% 40%, #000 26%, transparent 76%);
  animation: dotDrift 24s linear infinite;
}
@keyframes dotDrift {
  from { background-position: 0 0; }
  to   { background-position: 26px 26px; }
}

/* 원형 오브 : 각기 다른 주기로 떠다님 */
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.orb-1 {
  top: -190px; right: -130px;
  width: 560px; height: 560px;
  background: radial-gradient(circle at 38% 36%,
              rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 46%, transparent 70%);
  animation: orbDriftA 19s ease-in-out infinite alternate;
}
.orb-2 {
  bottom: 40px; left: -180px;
  width: 440px; height: 440px;
  background: radial-gradient(circle at 52% 50%,
              rgba(16, 179, 163, .26), rgba(16, 179, 163, .07) 48%, transparent 72%);
  animation: orbDriftB 23s ease-in-out infinite alternate;
}
.orb-3 {
  top: 26%; left: 12%;
  width: 300px; height: 300px;
  background: radial-gradient(circle at 45% 45%,
              rgba(255, 255, 255, .12), transparent 68%);
  animation: orbDriftC 15s ease-in-out infinite alternate;
}
.orb-4 {
  top: 12%; right: 26%;
  width: 190px; height: 190px;
  background: radial-gradient(circle at 50% 50%,
              rgba(201, 176, 242, .26), transparent 66%);
  animation: orbDriftA 13s ease-in-out infinite alternate-reverse;
}

@keyframes orbDriftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-46px, 38px, 0) scale(1.1); }
}
@keyframes orbDriftB {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(54px, -42px, 0) scale(.94); }
}
@keyframes orbDriftC {
  from { transform: translate3d(0, 0, 0) scale(.96); }
  to   { transform: translate3d(38px, 30px, 0) scale(1.08); }
}

/* 원형 링 : 퍼져 나가며 사라지는 잔물결 */
.hero-bg .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .30);
  opacity: 0;
  will-change: transform, opacity;
}
.ring-1 {
  top: 6%; right: 9%;
  width: 400px; height: 400px;
  animation: ringWave 9.5s ease-out infinite;
}
.ring-2 {
  top: 6%; right: 9%;
  width: 400px; height: 400px;
  animation: ringWave 9.5s ease-out 4.75s infinite;
}
@keyframes ringWave {
  0%   { transform: scale(.5);  opacity: 0; }
  16%  { opacity: .55; }
  70%  { opacity: .14; }
  100% { transform: scale(1.45); opacity: 0; }
}

.hero .container { position: relative; z-index: 1; }

/* 중앙 정렬 본문 */
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* 히어로 주 메시지 (h1)
   로고 이미지를 삭제하고 이 문장 하나만 남겼으므로, 이제 h1 이 히어로의 주 시각 요소다.
   (기존에는 로고가 시각적 주인공이고 h1 은 30px 보조 제목이었다)
   검색엔진이 페이지 제목으로 읽는 자리이므로 굵기는 800 으로 유지한다.

   ▸ 대표 요청으로 크기를 한 단계 줄였다: 42px → 32px (1280px 기준).
   ▸ 줄바꿈은 자동(text-wrap)에 맡기지 않고 index.html 의 <br> 로 "위한" 뒤에서 고정한다.
     자동 줄바꿈이던 시절에는 뷰포트 폭에 따라 "파트너"만 다음 줄로 떨어져
     고아 줄이 생겼고, 그것을 막으려고 860px 이라는 넓은 max-width 가 필요했다.
     이제 줄 나눔이 마크업에 있으므로 max-width 는 "한 줄이 너무 길어지지 않게"
     잡아주는 역할만 한다(두 번째 줄 실측 폭 + 여유).
     → 두 줄이 고정이므로 text-wrap: balance 는 더 이상 필요 없어 삭제했다. */
.hero h1 {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(20px, 2.5vw, 32px);
  /* 두 줄이 된 만큼 줄 사이가 답답하지 않게 1.38 → 1.42 */
  line-height: 1.42;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #fff;
  /* 한글 단어 중간에서 줄바꿈되지 않도록 */
  word-break: keep-all;
}

/* 히어로 리드문 — 현재 마크업에서 쓰지 않는다.
   (히어로는 한 문장만 남기기로 확정. 다른 문구를 다시 넣을 때 재사용) */
.hero-lead {
  margin: clamp(16px, 2vw, 22px) auto 0;
  max-width: 560px;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.8;
  color: rgba(255, 255, 255, .76);
}
.hero-lead strong {
  font-weight: 700;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 3.2vw, 38px);
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hero-note svg { width: 14px; height: 14px; color: #7fe3d6; flex: 0 0 auto; }

/* 인증·실적 */
.cred-band {
  background: var(--ivory);
  padding: clamp(30px, 4.6vw, 56px) 0 clamp(34px, 5vw, 60px);
}

.cred-panel {
  border: 1px solid #ded3ef;
  border-radius: 22px;
  background: var(--violet-soft);
}

.cred-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: clamp(18px, 2.1vw, 26px) 0;
  list-style: none;
  border-top: 1px solid #ded3ef;
}
.cred-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
  padding: 0 clamp(18px, 2.6vw, 34px);
}
.cred-list li + li { border-left: 1px solid #ded3ef; }

.cred-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(44px, 4vw, 52px);
  height: clamp(44px, 4vw, 52px);
  border-radius: 15px;
  background: #e6dcf3;
  color: var(--violet-deep);
}
.cred-ico svg { width: 24px; height: 24px; }

.cred-txt b {
  display: block;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.cred-txt small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}

.cred-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(18px, 2.3vw, 30px) 0;
}
.stat-card {
  padding: 8px clamp(10px, 2vw, 24px);
  text-align: center;
}
.stat-card + .stat-card { border-left: 1px solid #ded3ef; }

.stat-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--violet);
  line-height: 1;
  letter-spacing: -0.055em;
}
.stat-num strong {
  font-size: clamp(2rem, 3.4vw, 2.625rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.stat-num .stat-unit {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.stat-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
}

.stat-num strong[data-stat-count="200"] {
  min-inline-size: 3ch;
  text-align: end;
}

@media (prefers-reduced-motion: no-preference) {
  .stat-num.is-counting { animation: stat-rise .5s ease-out; }
}

@keyframes stat-rise {
  from { transform: translateY(10px); opacity: .55; }
  to { transform: translateY(0); opacity: 1; }
}

/* 신뢰 배지 바 (구 디자인 — 다른 시안으로 되돌릴 때 대비해 보존) */
.trust {
  margin-top: clamp(14px, 1.8vw, 22px);
  background: var(--white);
  border: 1px solid var(--line);
  /* 기관 띠가 히어로 아래에 들어오면서, 아래 섹션과 이어 붙이던 방식(border-bottom:0)을
     쓰면 카드 아래가 잘린 것처럼 보인다. 사방 라운드 + 아래 테두리로 독립된 카드로 마감. */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-radius: var(--radius);
  transition: background .16s ease;
}
.trust-item:hover { background: var(--ivory); }
.trust-item + .trust-item { position: relative; }
.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 26px;
  background: var(--line);
}
.ti-ico {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
}
.ti-ico svg { width: 18px; height: 18px; }
.ti-ico.mint { background: #e6f7f4; color: var(--accent-mint); }
.ti-ico.amber { background: #fdf3e5; color: var(--accent-amber); }

.ti-text { line-height: 1.4; min-width: 0; }
.ti-text b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ti-text small {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: -0.005em;
}

/* =========================================================
   CLIENT STRIP — 기관 목록이 끊김 없이 흐르는 띠
   히어로(퍼플) 안, CTA 버튼 바로 아래에 놓인다.
   ========================================================= */
.clients {
  position: relative;
  z-index: 1;                    /* .hero-bg(z-index:0)보다 위에 그린다 */
  /* 제목·안내문을 삭제했으므로 띠 자체가 위아래 여백을 모두 갖는다.
     히어로를 세로로 늘리면서 이 여백도 함께 키웠다 (1280px 기준 50px → 77px).
     히어로의 아래쪽 절반 높이를 이 띠가 담당하므로, 여기를 키우면 배너가 길어진다. */
  padding: clamp(50px, 6vw, 82px) 0 clamp(50px, 6vw, 82px);
  overflow: hidden;
}

.marquee {
  position: relative;
  overflow: hidden;
  /* 양 끝을 감춰서 띠가 잘린 느낌을 없앤다. 어두운 배경이라 그라데이션은 투명→검정 알파 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
  will-change: transform;
}
/* 마우스를 올리거나 키보드 포커스가 들어오면 잠시 정지 */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 160px;
  min-height: 58px;
  margin-right: clamp(32px, 3.6vw, 62px);
  color: #fff;
}
.client-name {
  font-size: calc(1.25rem * var(--logo-k, 1));
  font-weight: 800;
  white-space: nowrap;
}
.client-logo-filters { position: absolute; pointer-events: none; }

.logo-crop {
  position: relative;
  display: block;
  --display-height: calc(var(--lh) * var(--logo-k, 1) * 1px);
  width: calc(var(--display-height) * var(--crop-w) / var(--crop-h));
  height: var(--display-height);
  overflow: hidden;
}
.logo-crop img {
  position: absolute;
  top: calc(-100% * var(--crop-y) / var(--crop-h));
  left: calc(-100% * var(--crop-x) / var(--crop-w));
  width: calc(100% * var(--src-w) / var(--crop-w));
  max-width: none;
  height: auto;
  filter: brightness(0) invert(1);
}
.logo-crop.is-women {
  --src-w: 1536;
  --crop-x: 134; --crop-y: 250;
  --crop-w: 1274; --crop-h: 545;
  --lh: 47;
}
.logo-crop.is-saeil {
  --src-w: 2048;
  --crop-x: 133; --crop-y: 160;
  --crop-w: 1783; --crop-h: 368;
  --lh: 36;
}
.logo-crop.is-tp {
  --src-w: 1983;
  --crop-x: 92; --crop-y: 287;
  --crop-w: 1812; --crop-h: 213;
  --lh: 23;
}
.logo-crop.is-gochang {
  --src-w: 2048;
  --crop-x: 0; --crop-y: 0;
  --crop-w: 2048; --crop-h: 296;
  --lh: 27;
}
.logo-crop.is-gochang img { filter: url("#light-client-logo"); }
.logo-crop.is-buan {
  --src-w: 600;
  --crop-x: 31; --crop-y: 13;
  --crop-w: 559; --crop-h: 302;
  --lh: 48;
}
.logo-crop.is-buan img { filter: url("#dark-client-logo"); }

/* Each loop advances by one of the five repeated lists. */
@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-20%, 0, 0); }
}

/* =========================================================
   섹션 공통
   ========================================================= */
.sec { padding: 96px 0; }
.sec-ivory { background: var(--ivory); }
.sec-lavender { background: var(--lavender); }
.sec-ink { background: var(--ink); color: #fff; }

.sec-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.sec-ink .kicker { color: #c3a8e8; }

.sec-head h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.sec-head .desc {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--muted);
}
.sec-ink .sec-head .desc { color: #b9aec6; }
.sec-head .desc strong { color: var(--ink); font-weight: 700; }
.sec-ink .sec-head .desc strong { color: #fff; }

.why-title-accent {
  font-style: normal;
  color: var(--violet);
}

@media screen and (prefers-reduced-motion: no-preference) {
  [data-reveal].is-entering {
    animation: reveal-up .62s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) backwards;
  }
  [data-reveal="heading"].is-entering { --reveal-distance: 14px; }
  [data-reveal].is-entering:focus-within { animation: none; }
}

@keyframes reveal-up {
  from { opacity: 0; translate: 0 var(--reveal-distance, 26px); }
  to { opacity: 1; translate: none; }
}

/* =========================================================
   WHY — 6 카드
   대표 요청 2건:
     ① 6개 카드에 서로 다른 색 적용 (아이콘 배경 + 아이콘 선)
     ② 카드 내용을 가운데 정렬
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
  /* 카드가 3열로 딱 떨어지지 않는 폭에서도 항상 블록이 가운데 오도록 명시.
     (grid 자체는 부모 폭을 꽉 채우므로 실질 영향은 없지만 의도를 남긴다) */
  justify-content: center;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  /* ② 카드 안의 아이콘·제목·본문을 모두 가운데로.
     이전에는 아이콘 왼쪽 여백 27px / 오른쪽 여백 298px 로 한쪽만 비어 있었다. */
  text-align: center;
}
.why-card:hover {
  transform: translateY(-3px);
  border-color: #d8cdea;
  box-shadow: var(--shadow);
}
.wc-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  /* 가운데 정렬이므로 좌우 auto. (text-align 은 grid 아이템 정렬에 영향 없음) */
  margin: 0 auto 20px;
  background: var(--violet-soft);
  color: var(--violet);
}
.wc-ico svg { width: 22px; height: 22px; }

/* ① 카드별 색 — 6개가 서로 구분되면서 브랜드 톤(퍼플/아이보리)에서 벗어나지 않게
   채도를 낮춘 파스텔 배경 + 같은 계열의 진한 아이콘 색으로 짝을 맞췄다.
   아이콘은 그래픽 요소라 WCAG 3:1 이상이면 충분하고, 6종 모두 3.3:1 이상이다. */
.wc-ico.violet { background: #f1ecf9; color: #6946a0; }  /* 원화 확정 단가 */
.wc-ico.blue   { background: #e8f0fd; color: #2f6bd6; }  /* 기관 명의 가입 */
.wc-ico.teal   { background: #e4f6f3; color: #0e9384; }  /* 검수·정산 자동화 */
.wc-ico.amber  { background: #fdf1e0; color: #b9701a; }  /* 안전한 인증 전달 */
.wc-ico.rose   { background: #fcebf1; color: #be4a72; }  /* 계정 회수·이관 */
.wc-ico.ink    { background: #ece9f2; color: #302442; }  /* 200여 기관 현장 경험 */

.why-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.why-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
  /* 가운데 정렬된 여러 줄이 너무 길게 늘어지지 않도록 폭을 제한 */
  max-width: 32em;
  margin-inline: auto;
}
.why-card p strong { color: var(--ink-2); font-weight: 700; }

/* =========================================================
   서비스
   ========================================================= */
.service-title-accent { color: #9a3c65; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--lavender);
  color: var(--violet);
}
.svc h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.38;
}
.svc > p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}
.svc ul {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 9px;
}
.svc li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.svc li svg {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--accent-mint);
}

/* 도입 가능한 AI 서비스 */
.chips-wrap { margin-top: 44px; }
.chips-title {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 18px;
}
.chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  letter-spacing: -0.01em;
}
.chip-logo {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.chip-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.chip-name small {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.chips-note {
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  /* 소제목과 같은 이유로 --muted. --muted-2 는 흰/아이보리 배경 2.9:1 로 AA 미달. */
  color: var(--muted);
}

/* =========================================================
   도입 절차 — 4 스텝
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}
/* 연결선 */
.steps::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--line), #d9cdec, var(--line));
}
.step {
  position: relative;
  text-align: center;
  padding: 0 14px;
}
.step-no {
  position: relative;
  width: 68px; height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--violet);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  z-index: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.step:hover .step-no {
  background: var(--violet);
  color: #fff;
  transform: translateY(-2px);
}
.step h3 {
  margin-top: 22px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.step p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 230px;
  margin-inline: auto;
}
.step-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.step-time svg { width: 12px; height: 12px; color: var(--muted-2); flex: 0 0 auto; }
.step-time-highlight {
  background: #fff0f3;
  border-color: #ebbdc8;
  color: #9f273f;
  font-size: .875rem;
  font-weight: 800;
}
.step-time-highlight svg { color: inherit; }

/* =========================================================
   방문 지원 범위
   ========================================================= */
.visit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.visit-copy h2 {
  color: var(--violet);
  font-size: clamp(23px, 2.7vw, 32px);
  line-height: 1.34;
  letter-spacing: -0.04em;
  font-weight: 800;
  /* 키커(On-site)를 지웠으므로 키커 자리를 메우던 위 여백 보정값(12px)을 없앴다.
     제목이 "전라·충청권은 방문합니다" 한 줄로 짧아져 keep-all 로 단어 중간 잘림을 막는다. */
  margin-top: 0;
  word-break: keep-all;
}
.visit-copy > p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-2);
  word-break: keep-all;
}
/* 첫 문단 = 리드 (대표 요청: 문단구분).
   "Near Support AI는 계정만 발급하고 끝내지 않습니다." 를 별도 문단으로 떼어내
   조금 크고 진하게 세워, 뒤따르는 설명 두 문장과 층을 만든다.
   ▸ 클래스 선택자(2개)라 아래 `.visit-copy > p`(클래스1+요소1)보다 우선한다. */
.visit-copy > .visit-lead {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.62;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.visit-copy p strong { color: var(--ink); font-weight: 700; }
/* =========================================================
   방문 지원 — 목록 (대표 요청: 레이아웃 시안 4안 적용)
   ▸ 이전: 흰 카드 4장(테두리·그림자·아이콘 타일)을 12px 간격으로 세로 배치.
     카드 폭 603px 중 텍스트가 213px 만 쓰고 오른쪽 315~333px 가 비어 허전했다.
   ▸ 현재: 카드와 아이콘을 모두 걷어내고 **01~04 번호 + 헤어라인 구분선**만 남긴다.
     목록이 '표'처럼 정돈되고, 위 카드 그리드와 시각적 무게가 겹치지 않는다.
   ▸ border-top 을 각 항목에, border-bottom 을 마지막 항목에만 줘서
     위아래가 모두 1px 선으로 닫히고 중간에 선이 겹치지 않는다. */
.visit-list {
  display: grid;
}
.visit-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 22px 2px;
  border-top: 1px solid var(--line);
}
.visit-item:last-child { border-bottom: 1px solid var(--line); }

/* 01~04 번호 — 사이트의 기존 모티프(#service 의 `01 · 도입 설계`, #process 단계 번호)와 같은 결.
   ▸ tabular-nums: 01/02/03/04 의 숫자 폭을 고정해 좌측 정렬이 흔들리지 않게 한다. */
.vi-no {
  padding-top: 2px;
  font-size: .9375rem;
  font-weight: 800;
  color: var(--violet);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.visit-item b {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.visit-item > div > span {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   FAQ
   ========================================================= */
#faq {
  --faq-pad: 4px;
}
.faq {
  max-width: 880px;
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px var(--faq-pad);
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.55;
  color: var(--ink);
  transition: color .16s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--violet); }
.faq-q-mark {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--lavender);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
/* 대표 요청: 질문 텍스트를 **왼쪽 정렬로 복구**.
   ▸ 한 번 `text-align: center` 로 바꿨다가 되돌렸다. 짧은 질문 8개가 가운데로 모이면
     행마다 텍스트 시작점이 달라져, 목록을 훑어 내려갈 때 시선이 좌우로 튄다.
   ▸ 목록 안의 질문은 왼쪽으로 정렬한다.
   ▸ Q 배지·토글은 좌우 끝에 그대로 두어 클릭 위치는 이전과 동일하다. */
.faq-item summary .q-text {
  flex: 1 1 auto;
  text-align: left;
}
.faq-toggle {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
  color: var(--muted-2);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform .22s ease, opacity .22s ease;
}
.faq-toggle::before {
  width: 13px; height: 1.8px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 1.8px; height: 13px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item[open] summary { color: var(--violet); }
.faq-item[open] .faq-q-mark { background: var(--violet); color: #fff; }

.faq-a {
  /* 들여쓰기는 Q 배지(24px) + gap(16px) + 좌우 패딩만큼 — 즉 질문 텍스트와 같은 x.
     답변 첫 줄이 질문 첫 글자 아래에서 시작해야 접었을 때/펼쳤을 때 시선이 흔들리지 않는다. */
  padding: 0 var(--faq-pad) 24px calc(var(--faq-pad) + 40px);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}
.faq-a strong { color: var(--ink-2); font-weight: 700; }
.faq-a a { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.faq-foot {
  margin-top: 34px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.faq-foot a {
  color: var(--violet);
  font-weight: 700;
  border-bottom: 1px solid rgba(105, 70, 160, .35);
  padding-bottom: 1px;
}

/* =========================================================
   마지막 초대(CTA) — 도트 그리드 위 한 문장 + 문의 버튼
   ---------------------------------------------------------
   대표 요청: "기관 도입 견적 요청을 이렇게 하지 말고 사진 2 처럼 만든 다음에 문의하게 하자"
   ▸ 이 자리에 있던 7항목 견적 폼·2단 레이아웃을 걷어냈다. 폼은 quote.html 로 옮겼다.
   ▸ 페이지를 닫는 자리는 정보를 더 넣는 곳이 아니라 **행동 하나만** 남기는 곳이다.
     스크롤을 끝까지 내린 사람에게 다시 7개 입력란을 보여주면 이탈만 늘어난다.
   ▸ 시각 언어: 옅은 보라 도트 그리드 + 가운데로 모이는 빛 + 알약형 버튼.
   ========================================================= */
.cta-sec {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 118px 0 126px;
  text-align: center;
}

/* 도트 그리드 — 점 1.15px / 간격 10px.
   간격이 12px 을 넘으면 장식이 본문보다 먼저 눈에 들어와 산만해진다.
   가장자리로 갈수록 mask 로 사라져 섹션 경계에 딱딱한 선이 생기지 않는다. */
.cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(105, 70, 160, .26) 1.15px, transparent 1.16px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse 58% 66% at 50% 50%, #000 24%, rgba(0, 0, 0, .5) 58%, transparent 82%);
  mask-image: radial-gradient(ellipse 58% 66% at 50% 50%, #000 24%, rgba(0, 0, 0, .5) 58%, transparent 82%);
  pointer-events: none;
}

/* 글자 뒤 은은한 빛 — 도트가 획에 겹쳐도 판독이 떨어지지 않도록
   가운데에 밝은 타원을 한 겹 덮는다(사진 2 의 흰 발광과 같은 역할). */
.cta-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(820px, 118%);
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, .97) 0%,
    rgba(244, 239, 251, .82) 40%,
    rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.cta-sec .container { position: relative; z-index: 1; }

.cta-inner {
  max-width: 620px;
  margin: 0 auto;
}
.cta-title-accent { color: var(--violet); }

.cta-inner h2 {
  font-size: clamp(23px, 3.1vw, 34px);
  line-height: 1.44;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  /* 한국어 제목이 어절 중간에서 끊기지 않게 */
  word-break: keep-all;
}

/* 알약형 버튼 — 사진 2 처럼 완전 라운드 + 보랏빛 발광.
   브랜드 바이올렛(#6946a0)을 축으로 밝은 쪽(#7150b8)에서 깊은 쪽(#553785)으로 흐른다. */
.cta-btn {
  margin-top: 32px;
  height: 54px;
  padding: 0 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7150b8 0%, #553785 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 32px -16px rgba(85, 55, 133, .9);
}
.cta-btn:hover {
  background: linear-gradient(135deg, #7c5bc4 0%, #61419b 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(85, 55, 133, .95);
}
.cta-btn:focus-visible {
  outline: 3px solid rgba(105, 70, 160, .42);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   폼 카드 — quote.html 전용
   --------------------------------------------------------- */
/* 문의 페이지 상단 — 랜딩의 마지막 초대와 이어지도록 같은 도트·발광을 쓴다.
   링크를 눌러 넘어왔을 때 "같은 곳에서 이어지는 화면"으로 느껴져야 이탈이 없다. */
.quote-page {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 76px 0 88px;
}
.quote-page .cta-dots {
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 78% at 50% 0%, #000 20%, transparent 78%);
}
/* 문의 페이지는 상단에 붙인다. translateY(-50%) 를 그대로 두면 발광의 절반이
   섹션 위로 잘려 나가 경계에 어두운 띠가 생기므로, Y 이동을 0 으로 되돌린다. */
.quote-page .cta-glow {
  top: 0;
  height: 340px;
  transform: translate(-50%, 0);
}
.quote-page .container { position: relative; z-index: 1; }

.quote-head {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.quote-head h1 {
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.36;
  letter-spacing: -0.04em;
  font-weight: 800;
  word-break: keep-all;
}
.quote-head p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  word-break: keep-all;
}
.quote-head p strong { color: var(--ink-2); font-weight: 700; }

/* 랜딩의 왼쪽 열에 있던 셀링 포인트 3개를 이 페이지로 옮겼다(요청 화면에서 사라지지 않게).
   제목 아래에 한 줄로 눕혀 두면 폼보다 먼저 읽혀 "맡겨도 되는 곳" 인지를 먼저 확인시킨다. */
.quote-perks {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.quote-perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.quote-perks svg {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  color: var(--violet);
}

/* 폼 카드는 한 열로 좁게 — 입력란이 넓으면 시선 이동이 길어 오타가 늘어난다. */
.quote-page .form-card {
  max-width: 680px;
  margin: 40px auto 0;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(48, 36, 66, .38);
}

/* 하단 대안 연락처 — 폼 작성을 원하지 않는 방문자를 붙잡는다. */
.quote-alt {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.quote-alt a {
  color: var(--violet);
  font-weight: 700;
  border-bottom: 1px solid rgba(105, 70, 160, .35);
}
.quote-alt .sep { color: var(--line); margin: 0 8px; }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
/* 폼 카드 제목 — quote.html 에서는 h1(페이지 제목) 다음이라 h2 로 쓴다.
   클래스(.form-title)와 요소 선택자(h3)를 함께 둠으로써
   예전 마크업(h3)도 그대로 동작한다. */
.form-card h3,
.form-card .form-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.form-card > p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted-2);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.col-2 { grid-column: span 2; }
.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.field label .req { color: #d1467a; margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23756781' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.65; }

.field input::placeholder,
.field textarea::placeholder { color: #a99db4; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(105, 70, 160, .12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d1467a;
  background: #fdf5f8;
}
.field-error {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  color: #c22f66;
}
.field.has-error .field-error { display: block; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--violet);
  cursor: pointer;
}
.check strong { color: var(--ink-2); font-weight: 700; }
.check.has-error { color: #c22f66; }

.form-actions { margin-top: 22px; }
.form-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  text-align: center;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}
.form-status.is-error {
  display: block;
  background: #fdf2f6;
  border: 1px solid #f5cadb;
  color: #b02658;
}
.form-status.is-success {
  display: block;
  background: #e9f8f2;
  border: 1px solid #bfe8d9;
  color: #0c7a53;
}

.btn[disabled] { opacity: .62; cursor: not-allowed; transform: none; }

/* 완료 화면 */
.form-done {
  display: none;
  text-align: center;
  padding: 26px 8px 12px;
}
.form-done.is-visible { display: block; }
.form-done .done-ico {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e9f8f2;
  color: #0c9c6b;
  display: grid;
  place-items: center;
}
.form-done .done-ico svg { width: 28px; height: 28px; }
.form-done h3,
.form-done .done-title { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.form-done p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.form-done .btn { margin-top: 22px; }

/* =========================================================
   푸터
   ========================================================= */
.site-footer {
  background: #241b33;
  color: #a79bb5;
  padding: 56px 0 40px;
  font-size: 13px;
  line-height: 1.8;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* 슬로건 — 히어로에서 푸터 최상단으로 이동 (대표 요청).
   히어로에서는 주 메시지였으므로 작은 각주로 두지 않고,
   구분선 위에 한 줄짜리 큰 문장으로 놓아 페이지를 닫는 문장 역할을 하게 한다. */
.footer-closing {
  margin: 0 0 34px;
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  word-break: keep-all;
}

.footer-brand .brand { margin-bottom: 0; }
.footer-brand .brand-mark { background: #fff; color: var(--ink); }
.footer-brand .brand-mark span { color: var(--violet); }
.footer-brand .brand-name b { color: #fff; }
.footer-brand .brand-name small { color: #8d80a0; }

/* 슬로건(작은 크기) — index.html 에서는 `.footer-closing` 으로 대체되었지만
   privacy.html / terms.html 푸터는 이 클래스를 그대로 쓴다. 두 문서는 페이지 톤이
   달라(법적 문서) 슬로건을 크게 올리지 않고 작은 각주로 두는 편이 맞다. */
.footer-slogan {
  font-size: 13.5px;
  color: #bfb3cc;
  max-width: 340px;
  line-height: 1.7;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.footer-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: #bfb3cc;
  transition: color .16s ease;
}
.footer-nav a:hover { color: #fff; }

.footer-info {
  margin-top: 28px;
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: #8d80a0;
  line-height: 1.85;
}
.footer-info b { color: #a79bb5; font-weight: 600; }
.footer-info .dot { color: #5b4d6e; margin: 0 7px; }
.footer-legal {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6e6180;
}
.footer-legal .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #bfb3cc; }

/* 맨 위로 */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* =========================================================
   반응형 — 1024
   ========================================================= */
@media (max-width: 1024px) {
  .why-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .visit { grid-template-columns: 1fr; gap: 32px; }
  .header-cta .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
}

/* =========================================================
   반응형 — 860 (스텝 세로)
   ========================================================= */
@media (max-width: 860px) {
  .chips { grid-template-columns: 1fr; gap: 0; }
  .chip + .chip { border-top: 1px solid var(--line); }
  .sec { padding: 68px 0; }
  /* 히어로 세로 여백을 base 와 같은 방향으로 키운다.
     base 만 키우고 여기서 60px 로 덮으면 태블릿에서 오히려 낮아진다. */
  .hero { padding-top: 92px; }
  .cta-sec { padding: 90px 0 98px; }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }
  .steps::before {
    top: 34px;
    bottom: 34px;
    left: 33px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--line), #d9cdec, var(--line));
  }
  .step {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 20px;
    text-align: left;
    padding: 0 0 28px;
    align-items: start;
  }
  .step:last-child { padding-bottom: 0; }
  .step-no { margin: 0; }
  .step-body { padding-top: 4px; }
  .step h3 { margin-top: 0; }
  .step p { margin-inline: 0; max-width: none; }
  .step-time { margin-top: 10px; }

  .trust {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius);
    margin-top: 40px;
    padding: 8px;
  }
  .trust-item { padding: 14px 12px; gap: 10px; }
  .trust-item + .trust-item::before { display: none; }
  .trust-item:nth-child(even)::before {
    display: block;
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 26px;
    background: var(--line);
  }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }

  .cred-list {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .cred-list li { justify-content: flex-start; padding: 15px 0; }
  .cred-list li + li {
    border-top: 1px solid #ded3ef;
    border-left: 0;
  }
}

/* =========================================================
   반응형 — 640
   ========================================================= */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .header-cta { display: none; }
  .header-menu .btn { display: inline-flex; margin-top: 6px; }
  html { scroll-padding-top: 76px; }

  .hero { padding-top: 72px; }

  /* 배경 장식: 작은 화면에서는 개수·크기를 줄여 페인트 비용과 산만함 최소화 */
  .orb-1 { top: -140px; right: -120px; width: 340px; height: 340px; }
  .orb-2 { width: 260px; height: 260px; left: -130px; }
  .orb-3, .orb-4 { display: none; }
  .ring-1, .ring-2 { width: 240px; height: 240px; top: 3%; right: 4%; }
  .hero-bg .dots { background-size: 22px 22px; }
  @keyframes dotDrift {
    from { background-position: 0 0; }
    to   { background-position: 22px 22px; }
  }

  /* 히어로 h1 — base 의 clamp(20px, 2.5vw, 32px) 는 이 구간에서 하한 20px 에 붙는다.
     (640px 에서 2.5vw = 16px 이므로 하한값이 쓰인다. 데스크톱 42px → 모바일 23px 이던
      기존 값도 같은 이유로 하한을 덮어쓰고 있었고, 이번 축소에 맞춰 20px 로 내렸다.)
     줄바꿈은 <br> 로 고정되어 있어 폰에서도 "위한" 뒤에서 두 줄로 떨어진다. */
  .hero h1 { font-size: 20px; line-height: 1.44; }
  .hero-lead { margin-top: 14px; font-size: 13.5px; line-height: 1.72; }
  .hero-actions { margin-top: 24px; gap: 9px; }
  .hero-actions .btn { width: 100%; height: 50px; font-size: 14.5px; }
  .hero-note { margin-top: 14px; font-size: 12px; }

  .trust { margin-top: 26px; padding: 6px; }
  .trust-item { padding: 13px 10px; gap: 9px; align-items: flex-start; }
  .ti-ico { width: 30px; height: 30px; border-radius: 8px; }
  .ti-ico svg { width: 15px; height: 15px; }
  .ti-text b { font-size: 12.5px; line-height: 1.35; }
  .ti-text small { font-size: 10.5px; line-height: 1.35; }

  .cred-band { padding: 28px 0 34px; }
  .stat-card { padding: 6px 8px; }

  .clients { padding: 26px 0 28px; }
  .client-logo {
    min-height: 44px;
    min-width: 112px;
    margin-right: 28px;
    --logo-k: .78;
  }
  .marquee-track { animation-duration: 14s; }

  .sec { padding: 56px 0; }
  .sec-head h2 { font-size: 24px; }
  .sec-head .desc { font-size: 14px; margin-top: 12px; }

  .why-grid, .svc-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .why-card { padding: 22px 20px; }
  .wc-ico { width: 40px; height: 40px; margin-bottom: 16px; }
  .wc-ico svg { width: 19px; height: 19px; }
  .why-card h3 { font-size: 15.5px; }
  .why-card p { font-size: 13.5px; }

  .svc { padding: 24px 20px; }
  .svc h3 { font-size: 17.5px; }

  .chips-wrap { margin-top: 34px; }
  .chips-title { font-size: 1.5rem; margin-bottom: 14px; }
  .chip { padding: 16px 0; gap: 14px; }
  .chip-logo { width: 32px; height: 32px; }

  .steps::before { left: 27px; }
  .steps { margin-top: 32px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; padding-bottom: 24px; }
  .step-no { width: 56px; height: 56px; font-size: 15.5px; }
  .steps::before { top: 28px; bottom: 28px; }
  .step h3 { font-size: 15.5px; }
  .step p { font-size: 13px; }

  /* FAQ 안쪽 패딩 기준값을 좁은 화면에 맞춰 2px 로. 제목·질문·답변이 이 변수를
     함께 쓰므로 폰에서도 왼쪽 시작선이 자동으로 일치한다.
     ▸ 미디어쿼리에서도 `.faq` 가 아니라 **#faq** 에 다시 선언해야 한다(형제인
       제목 블록까지 전달되어야 하므로). */
  #faq { --faq-pad: 2px; }
  .faq { margin-top: 32px; }
  .faq-item summary { padding: 18px var(--faq-pad); font-size: 14px; gap: 11px; }
  .faq-q-mark { width: 21px; height: 21px; border-radius: 6px; font-size: 11px; }
  .faq-toggle { width: 18px; height: 18px; }
  /* Q 배지 21px + gap 11px + 패딩 2px = 34px — 질문 첫 글자와 같은 x. */
  .faq-a { padding: 0 var(--faq-pad) 20px calc(var(--faq-pad) + 32px); font-size: 13.5px; }

  /* 4안(번호 리스트)은 카드가 없으므로 좌우 패딩을 주지 않는다.
     좌우 패딩을 주면 헤어라인 구분선만 안쪽으로 들여져 위 문단과 끝선이 어긋난다. */
  .visit-item { padding: 16px 0; gap: 12px; }
  .visit-item b { font-size: 1.0625rem; }
  .visit-item > div > span { font-size: .9375rem; }
  .vi-no { font-size: .875rem; }

  .cta-sec { padding: 72px 0 80px; }
  .cta-glow { height: 300px; }
  .cta-btn { width: 100%; max-width: 260px; height: 52px; padding: 0 24px; }

  .form-card { padding: 22px 18px; border-radius: var(--radius); }
  .form-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .field.col-2 { grid-column: span 1; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 12px; }
  .form-actions .btn { height: 50px; }

  .site-footer { padding: 40px 0 32px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { gap: 8px 18px; }
  .footer-legal { flex-direction: column; gap: 8px; }

  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  /* 마쿼지 정지: 첫 목록만 줄바꿈해 보여주고 복제본은 숨긴다 (이름 중복 방지) */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; width: 100%; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* 미확정 값 표시 (배포 전 반드시 교체) */
.fill {
  display: inline-block;
  padding: 0 5px;
  border-radius: 4px;
  background: #fff4d6;
  color: #8a5a00;
  font-weight: 700;
  font-size: .95em;
  border: 1px dashed #e5b955;
}

/* 인쇄 */
@media print {
  .site-header, .to-top, .hero-actions, .cta-sec, .form-actions, .hero-bg, .clients, .cred-band { display: none !important; }
  /* 문의 페이지는 본문이 곧 내용이므로 숨기지 않고, 장식(도트·발광)만 빼서 잉크를 아낀다. */
  .quote-page .cta-dots, .quote-page .cta-glow { display: none !important; }
  body { background: #fff; }
  .sec { padding: 24px 0; }
}
