/* wellkit.ai — 커머스 AI 자동화 랜딩
   다크 단일 테마. 색은 전부 토큰으로만 쓴다. */

:root {
  --bg:      #0A0C0F;
  --bg-2:    #0D1116;
  --panel:   #121820;
  --panel-2: #161E28;
  --line:    #212B36;
  --line-2:  #2C3948;

  --fg:      #E9EEF4;
  --fg-dim:  #A5B2C0;
  --fg-mute: #6C7C8C;

  --acc:     #4FE0A8;
  --acc-dim: #2BA97B;
  --acc-ink: #062218;
  --acc-2:   #7FA8FF;
  --warn:    #F0B45E;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --shadow: 0 18px 50px -12px rgba(0,0,0,.7);
  --wrap: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --ff: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable",
        Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --ff-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;   /* 어떤 요소도 가로 스크롤을 만들지 않게 */
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.28; letter-spacing: -.028em; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 780px; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--acc); color: var(--acc-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

/* ── 버튼 ───────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--btn-bg); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-bg: var(--acc); color: var(--acc-ink); border-color: transparent;
  box-shadow: 0 6px 22px -8px rgba(79,224,168,.6);
}
.btn-primary:hover { --btn-bg: #62eab5; box-shadow: 0 10px 28px -8px rgba(79,224,168,.75); }
.btn-ghost { color: var(--fg-dim); }
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-mute); background: rgba(255,255,255,.03); }
.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn-block { width: 100%; }

/* ── 내비 ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 13px; }
.logo-img { height: 19px; width: auto; display: block; }
.logo-rule { width: 1px; height: 15px; background: var(--line-2); flex: none; }
.logo-sub {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  color: var(--acc); line-height: 1;
}
.logo-foot { margin-bottom: 14px; }
.logo-foot .logo-img { height: 24px; }
.logo-foot .logo-rule { height: 18px; }
.logo-foot .logo-sub { font-size: .74rem; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; color: var(--fg-dim); }
.nav-links a { transition: color .18s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav .btn { margin-left: 4px; }

/* ── 히어로 ─────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none;
  background:
    radial-gradient(46% 52% at 22% 8%, rgba(79,224,168,.13), transparent 70%),
    radial-gradient(40% 48% at 80% 0%, rgba(127,168,255,.11), transparent 72%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .16;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 78%);
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px; align-items: start;
}
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--fg-dim); letter-spacing: .02em;
  border: 1px solid var(--line); background: var(--panel);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 3px rgba(79,224,168,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title {
  font-size: clamp(1.95rem, 3.5vw, 3.15rem);
  letter-spacing: -.042em; max-width: 18ch;
}
.hero-sub {
  margin-top: 22px; max-width: 42em;
  font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--fg-dim); line-height: 1.75;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note {
  margin-top: 26px; font-size: .84rem; color: var(--fg-mute);
  padding-left: 12px; border-left: 2px solid var(--line-2); max-width: 62ch;
}

/* ── 스탯 ───────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 56px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.stat { background: var(--panel); padding: 24px 22px; }
.stat-num { display: flex; align-items: baseline; gap: 3px; font-family: var(--ff-num); }
.stat-num span { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; color: var(--acc); letter-spacing: -.04em; }
.stat-num em { font-style: normal; font-size: .95rem; color: var(--acc-dim); font-weight: 600; }
.stat-label { margin-top: 8px; font-size: .9rem; font-weight: 600; line-height: 1.45; }
.stat-sub { margin-top: 4px; font-size: .78rem; color: var(--fg-mute); }

/* ── 섹션 공통 ──────────────────────────────────────── */
.sec { padding: 92px 0; }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-tag {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.sec-desc { margin-top: 16px; color: var(--fg-dim); font-size: 1rem; max-width: 58ch; }

/* ── 문제 ───────────────────────────────────────────── */
.prob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.prob {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.prob:hover { border-color: var(--line-2); transform: translateY(-2px); }
.prob-ico { width: 24px; height: 24px; color: var(--warn); margin-bottom: 16px; }
.prob h3 { font-size: 1.04rem; }
.prob p { margin-top: 10px; color: var(--fg-dim); font-size: .92rem; line-height: 1.68; }

/* ── 필터 ───────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--fg-dim); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.is-on { background: var(--acc); color: var(--acc-ink); border-color: transparent; }

/* ── 사례 ───────────────────────────────────────────── */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.case {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.case::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(79,224,168,.08), transparent 60%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.case:hover, .case:focus-visible { border-color: var(--acc-dim); transform: translateY(-3px); box-shadow: var(--shadow); }
.case:hover::before { opacity: 1; }
.case[hidden] { display: none; }
.case-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(79,224,168,.11); color: var(--acc); border: 1px solid rgba(79,224,168,.22);
}
.case-client { font-size: .78rem; color: var(--fg-mute); }
.case-title { font-size: 1.16rem; letter-spacing: -.03em; }
.case-head {
  margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--acc);
  font-feature-settings: "tnum"; letter-spacing: -.02em; line-height: 1.6;
}
.case-teaser {
  margin-top: 12px; font-size: .89rem; color: var(--fg-dim); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.case-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px;
  font-size: .83rem; font-weight: 600; color: var(--fg-mute); transition: color .18s var(--ease), gap .18s var(--ease);
}
.case-more svg { width: 15px; height: 15px; }
.case:hover .case-more { color: var(--acc); gap: 9px; }
.case-empty { color: var(--fg-mute); padding: 40px 0; text-align: center; }

/* ── 모달 ───────────────────────────────────────────── */
.modal {
  /* display:flex 로 덮어쓰면 UA 기본 중앙정렬이 깨진다 — 직접 지정 */
  position: fixed; inset: 0; margin: auto;
  width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 880px);
  padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--panel); color: var(--fg); box-shadow: var(--shadow);
  overflow: hidden;
}
.modal::backdrop { background: rgba(5,7,10,.78); backdrop-filter: blur(4px); }
.modal[open] { display: flex; flex-direction: column; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--fg-dim); cursor: pointer; transition: all .18s var(--ease);
}
.modal-x:hover { color: var(--fg); border-color: var(--line-2); }
.modal-x svg { width: 17px; height: 17px; }
.modal-body { padding: 34px 34px 24px; overflow-y: auto; overscroll-behavior: contain; }

.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-body h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
.detail-headline {
  margin-top: 10px; padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(79,224,168,.08); border: 1px solid rgba(79,224,168,.2);
  color: var(--acc); font-weight: 600; font-feature-settings: "tnum";
  font-size: .97rem; letter-spacing: -.02em; line-height: 1.6;
}
.detail-body { margin-top: 26px; display: grid; gap: 20px; }
.detail-body dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 7px;
}
.detail-body dd { color: var(--fg-dim); font-size: .95rem; line-height: 1.75; }
.detail-result { display: grid; gap: 8px; }
.detail-result li { position: relative; padding-left: 20px; }
.detail-result li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--acc);
}
.detail-lesson {
  margin-top: 26px; padding: 16px 18px; border-radius: var(--r-sm);
  background: var(--bg-2); border-left: 3px solid var(--acc-2);
  font-size: .92rem; color: var(--fg-dim); line-height: 1.7;
}
.detail-lesson strong { display: block; color: var(--acc-2); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 34px; border-top: 1px solid var(--line); background: var(--bg-2);
}
.modal-foot p { font-size: .9rem; color: var(--fg-dim); }
.modal-acts { display: flex; gap: 8px; }

/* ── 서비스 ─────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.svc {
  display: flex; flex-direction: column;
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); transition: border-color .2s var(--ease);
}
.svc:hover { border-color: var(--line-2); }
.svc h3 { font-size: 1.1rem; }
.svc-lead { margin-top: 8px; font-size: .88rem; color: var(--acc); font-weight: 600; }
.svc-list { margin-top: 18px; display: grid; gap: 9px; flex: 1; }
.svc-list li { position: relative; padding-left: 19px; font-size: .9rem; color: var(--fg-dim); line-height: 1.6; }
.svc-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 2px;
  background: var(--acc-dim); border-radius: 2px;
}
.svc-fit {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2);
  font-size: .85rem; color: var(--fg-dim);
}
.svc-fit span {
  display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 5px; font-weight: 700;
}

/* ── 프로세스 ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 26px 22px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
}
.step-num {
  font-family: var(--ff-num); font-size: 1.5rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--acc-dim); letter-spacing: -.03em;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; }
.step p { margin-top: 10px; font-size: .89rem; color: var(--fg-dim); line-height: 1.65; }
.step-dur {
  display: inline-block; margin-top: 16px; font-size: .75rem; font-family: var(--ff-num);
  color: var(--fg-mute); border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 999px;
}

/* ── 문의 ───────────────────────────────────────────── */
.contact-in { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.contact-facts { margin-top: 28px; display: grid; gap: 12px; }
.contact-facts li {
  display: flex; gap: 12px; font-size: .92rem; color: var(--fg-dim);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.contact-facts strong { flex: none; width: 68px; color: var(--fg); font-weight: 600; }
.contact-facts a { color: var(--acc); }

.form {
  padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); display: grid; gap: 16px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .84rem; font-weight: 600; color: var(--fg-dim); }
.field em { color: var(--acc); font-style: normal; }
.field-hint { font-style: normal; font-size: .74rem; color: var(--fg-mute); line-height: 1.5; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--fg);
  font-size: .94rem; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder { color: #4E5C6A; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--acc-dim); background: var(--bg-2);
}
.field [aria-invalid="true"], .field input.err, .field textarea.err { border-color: #E06666; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--fg-mute); line-height: 1.6; cursor: pointer; }
.agree input { margin-top: 3px; accent-color: var(--acc); width: 16px; height: 16px; flex: none; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }
.form-note { font-size: .78rem; color: var(--fg-mute); text-align: center; line-height: 1.55; }
.form-msg { font-size: .88rem; min-height: 1.4em; }
.form-msg.ok { color: var(--acc); }
.form-msg.bad { color: #FF8E8E; }
.fallback-link {
  display: inline-block; margin-top: 6px; color: var(--acc); font-weight: 700;
  border-bottom: 1px solid rgba(79,224,168,.45);
}
.fallback-link:hover { border-bottom-color: var(--acc); }


/* ── 문의 폼: 필요 사항 선택 ─────────────────────────── */
.needs { border: none; margin: 0; padding: 0; min-width: 0; }
.needs legend { padding: 0; margin-bottom: 12px; font-size: .84rem; font-weight: 600; color: var(--fg-dim); }
.needs legend i {
  display: block; margin-top: 3px; font-style: normal;
  font-size: .76rem; font-weight: 400; color: var(--fg-mute);
}
.need-row {
  display: grid; grid-template-columns: 62px 1fr; gap: 10px;
  align-items: start; padding: 7px 0;
}
.need-row + .need-row { border-top: 1px solid rgba(33,43,54,.6); }
.need-cat { font-size: .74rem; color: var(--fg-mute); padding-top: 7px; line-height: 1.3; }
.need-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.need { cursor: pointer; }
.need input { position: absolute; opacity: 0; width: 0; height: 0; }
.need span {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg);
  font-size: .81rem; color: var(--fg-dim); transition: all .16s var(--ease);
}
.need span:hover { color: var(--fg); border-color: var(--fg-mute); }
.need input:checked + span {
  background: rgba(79,224,168,.13); border-color: var(--acc-dim); color: var(--acc); font-weight: 600;
}
.need input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: .98rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; flex: none; color: var(--fg-mute); transition: transform .22s var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--acc); }
.faq-a { padding: 0 22px 20px; color: var(--fg-dim); font-size: .93rem; line-height: 1.75; }

/* ── 푸터 ───────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--bg); }
.foot-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap; padding-bottom: 28px;
}
.logo-foot { margin-bottom: 14px; }
.logo-foot .logo-img { height: 24px; }
.logo-foot .logo-rule { height: 18px; }
.logo-foot .logo-sub { font-size: .74rem; }
.foot-desc { color: var(--fg-dim); font-size: .92rem; }

.foot-contact { text-align: right; }
.foot-mail {
  display: block; font-size: 1.15rem; font-weight: 700; color: var(--acc);
  letter-spacing: -.02em; word-break: break-all;
}
.foot-fax { font-size: .8rem; color: var(--fg-mute); font-feature-settings: "tnum"; }
.foot-hours { margin-top: 4px; font-size: .8rem; color: var(--fg-mute); }
.foot-contact p a { font-size: .88rem; color: var(--fg-dim); }
.foot-contact p a:hover { color: var(--acc); }

/* 법정 사업자 표기 */
.biz {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.biz > div { display: flex; gap: 8px; align-items: baseline; font-size: .8rem; }
.biz-wide { flex-basis: 100%; }
.biz dt { color: var(--fg-mute); flex: none; }
.biz dd { color: var(--fg-dim); font-feature-settings: "tnum"; }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; padding-top: 22px;
}
.foot-fine { max-width: 56ch; font-size: .78rem; line-height: 1.6; color: var(--fg-mute); }
.foot-copy { font-size: .78rem; color: var(--fg-mute); white-space: nowrap; }

/* ── 챗 위젯 ────────────────────────────────────────── */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: 999px; border: none;
  background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: .92rem;
  cursor: pointer; box-shadow: 0 14px 34px -10px rgba(79,224,168,.6);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(79,224,168,.75); }
.chat-fab svg { width: 19px; height: 19px; }
.chat-fab .fab-close { display: none; }
.chat-fab.is-open .fab-open, .chat-fab.is-open .fab-label { display: none; }
.chat-fab.is-open .fab-close { display: block; }
.chat-fab.is-open { padding: 15px; }

.chat {
  position: fixed; right: 22px; bottom: 84px; z-index: 79;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
  animation: rise .24s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.chat[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.chat-head strong { display: block; font-size: .96rem; }
.chat-status { font-size: .76rem; color: var(--fg-mute); }
.chat-x {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--fg-mute); cursor: pointer;
}
.chat-x:hover { color: var(--fg); }
.chat-x svg { width: 15px; height: 15px; }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: grid; gap: 12px; align-content: start; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.65; white-space: pre-wrap; }
.msg.bot { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; justify-self: start; }
.msg.me { background: var(--acc); color: var(--acc-ink); border-bottom-right-radius: 5px; justify-self: end; font-weight: 500; }
.msg.sys { justify-self: center; background: transparent; color: var(--fg-mute); font-size: .8rem; text-align: center; max-width: 100%; }
.msg.err { background: rgba(255,120,120,.1); border: 1px solid rgba(255,120,120,.3); color: #FFB3B3; justify-self: start; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-mute); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

.chat-sugs { display: flex; gap: 7px; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; }
.chat-sugs::-webkit-scrollbar { display: none; }
.chat-sugs[hidden] { display: none; }
.sug {
  flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--fg-dim); font-size: .8rem; cursor: pointer;
  white-space: nowrap; transition: all .18s var(--ease);
}
.sug:hover { color: var(--acc); border-color: var(--acc-dim); }

.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-form textarea {
  flex: 1; resize: none; max-height: 120px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg); font-size: .9rem; line-height: 1.5;
}
.chat-form textarea:focus { outline: none; border-color: var(--acc-dim); }
.chat-form button {
  flex: none; width: 42px; border-radius: 12px; border: none; background: var(--acc);
  color: var(--acc-ink); cursor: pointer; display: grid; place-items: center;
  transition: opacity .18s var(--ease);
}
.chat-form button svg { width: 18px; height: 18px; }
.chat-form button:disabled { opacity: .4; cursor: default; }
.chat-fine { padding: 0 16px 12px; font-size: .71rem; color: var(--fg-mute); line-height: 1.5; background: var(--bg-2); }



/* ── 히어로 우측: 오늘 도는 것들 ─────────────────────── */
.runcard {
  position: relative; margin-top: 8px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow); overflow: hidden;
}
.runcard::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .55;
}
.runcard-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.runcard-head strong { display: block; font-size: .98rem; letter-spacing: -.02em; }
.runcard-head span { display: block; margin-top: 4px; font-size: .78rem; color: var(--fg-mute); }
.run-list { padding: 8px 0; }
.run-row {
  display: grid; grid-template-columns: 16px 46px 1fr; align-items: center; gap: 12px;
  padding: 9px 22px; font-size: .855rem; color: var(--fg-dim);
}
.run-row + .run-row { border-top: 1px solid rgba(33,43,54,.55); }
.run-t { font-family: var(--ff-num); font-size: .78rem; color: var(--fg-mute); letter-spacing: -.02em; }
.run-l { min-width: 0; }
.run-tick {
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(79,224,168,.12); border: 1px solid rgba(79,224,168,.34);
  position: relative;
}
.run-tick::after {
  content: ""; position: absolute; left: 4px; top: 3.5px;
  width: 4px; height: 7px; border: solid var(--acc); border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg);
}
.run-live {
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(127,168,255,.14); border: 1px solid rgba(127,168,255,.4);
}
.run-live::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc-2);
  animation: pulse 1.8s ease-in-out infinite;
}
.run-row.is-live .run-t, .run-row.is-live .run-l { color: var(--fg); }
.runcard-foot {
  padding: 14px 22px 18px; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--fg-mute); line-height: 1.6; background: rgba(0,0,0,.16);
}

/* ── 히어로: 부담 낮추는 약속 ───────────────────────── */
.assure {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px;
}
.assure li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .86rem; color: var(--fg-dim);
}
.assure svg { width: 14px; height: 14px; color: var(--acc); flex: none; }

/* ── 할 수 있는 것 ──────────────────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.cap {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); transition: border-color .2s var(--ease);
}
.cap:hover { border-color: var(--acc-dim); }
.cap h3 {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--acc); padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cap ul { display: grid; gap: 11px; }
.cap li {
  position: relative; padding-left: 20px;
  font-size: .91rem; color: var(--fg-dim); line-height: 1.6;
}
.cap li::before {
  content: ""; position: absolute; left: 3px; top: .58em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--acc-dim); opacity: .75;
}
.cap-extra {
  margin-top: 18px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 40px; align-items: center;
  padding: 30px 32px; border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(127,168,255,.09), transparent 62%),
    var(--panel);
}
.cap-extra-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--acc-2); margin-bottom: 10px;
}
.cap-extra h3 { font-size: 1.22rem; letter-spacing: -.03em; }
.cap-extra p { margin-top: 10px; color: var(--fg-dim); font-size: .92rem; line-height: 1.7; }
.cap-extra .link-btn { margin-top: 16px; }
.cap-extra-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.cap-extra-list li {
  position: relative; padding-left: 20px; font-size: .89rem;
  color: var(--fg-dim); line-height: 1.55;
}
.cap-extra-list li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--acc-2); opacity: .8;
}
.link-btn {
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--acc); font-weight: 700; font-size: .93rem;
  border-bottom: 1px solid rgba(79,224,168,.4); line-height: 1.4;
  transition: border-color .18s var(--ease);
}
.link-btn:hover { border-bottom-color: var(--acc); }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-in { grid-template-columns: 1fr; gap: 38px; }
  .hero-title { font-size: clamp(1.95rem, 5.2vw, 3rem); }
  .runcard { margin-top: 0; }
  .cap-extra { grid-template-columns: 1fr; gap: 26px; }
  .contact-in { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .sec { padding: 68px 0; }
  .hero { padding: 64px 0 56px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .stats { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .need-row { grid-template-columns: 1fr; gap: 6px; }
  .need-cat { padding-top: 0; }
  .cap-extra-list { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .modal-body { padding: 28px 22px 20px; }
  .modal-foot { padding: 16px 22px; }
  .foot-top { flex-direction: column; gap: 24px; }
  .foot-contact { text-align: left; }
  .biz { gap: 8px 20px; }
  .biz > div { flex-basis: 100%; }
  .chat { right: 12px; left: 12px; width: auto; bottom: 78px; height: min(70vh, 560px); }
  .chat-fab { right: 14px; bottom: 14px; }
  .hero-cta .btn { flex: 1; }
}
