/* ===========================================================
   겨를(gyeoreul) · AI 에이전트 자동화 셋업 서비스 (in-between.kr)
   브랜드 가이드 v1 (2026-08-08) 기준 — §5 컬러, §10 서체
   =========================================================== */

:root {
  --ink: #2b3038;        /* Ink Graphite — 주색. 본문 텍스트 & 다크 UI */
  --ink-deep: #1e2228;   /* Deep Ink — 다크 표면 바탕 */
  --ink-soft: #545b63;   /* 완화된 본문 텍스트 */
  --muted: #8b939c;      /* Dim — 브랜드 가이드 §5.1 모노 보조 */
  --line: #e3e2de;
  --paper: #f5f5f3;      /* Neutral Light — 브랜드 가이드 §5.1 */
  --paper-2: #ececea;
  --white: #ffffff;

  --accent: #17795a;       /* Gyeoreul Green — 액센트. 라이트 표면 전용 */
  --accent-dark: #125f47;  /* 호버용 진한 그린 */
  --accent-tint: #e3f1ec;  /* 배지·아이콘 타일용 옅은 그린 */
  --accent-light: #3aa37d; /* 다크 표면 전용 그린(§5.3) — 라이트 표면에 쓰지 않음 */

  --font: "IBM Plex Sans KR", "IBM Plex Sans", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -25px rgba(43, 48, 56, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, table { margin: 0; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 공통 텍스트 유틸 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }
.section-head--nowrap { max-width: none; }
@media (min-width: 860px) {
  .section-head--nowrap h2,
  .section-head--nowrap p { white-space: nowrap; }
}

section { padding: 88px 0; }
section.alt { background: var(--paper); }
section.tight { padding: 64px 0; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(23, 121, 90, 0.55);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline-navy {
  background: transparent;
  border-color: rgba(43, 48, 56, 0.25);
  color: var(--ink);
}
.btn-outline-navy:hover { background: rgba(43, 48, 56, 0.06); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* 워드마크 — 소문자 전용, gyeo|reul 음절 틈, reul만 그린 액센트(§2) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-word {
  display: flex;
  align-items: baseline;
  font-family: var(--font);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  flex: none;
}
.brand-word .gyeo { color: var(--ink); }
.brand-word .reul { color: var(--accent); margin-left: 0.22em; }
.brand > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.brand .brand-sep { color: var(--line); font-weight: 400; flex: none; }
.brand .brand-tag {
  font-size: 13px; color: var(--muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .brand .brand-sep, .brand .brand-tag { display: none; }
}

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.social-links { display: flex; align-items: center; gap: 6px; }
.social-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-icon:hover { background: var(--accent-tint); color: var(--accent-dark); border-color: transparent; }
.social-icon svg { width: 15px; height: 15px; }

.cta-desktop svg { width: 14px; height: 14px; }
.cta-mobile {
  display: none;
  width: 38px; height: 38px; padding: 0;
  border-radius: 50%;
  flex: none;
}
.cta-mobile svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .social-links { display: none; }
  .cta-desktop { display: none; }
  .cta-mobile { display: flex; align-items: center; justify-content: center; }
  .header-actions { gap: 10px; }
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 84px;
  background:
    radial-gradient(1200px 620px at 78% -18%, rgba(23, 121, 90, 0.14), transparent 60%),
    radial-gradient(900px 640px at -8% 30%, rgba(43, 48, 56, 0.14), transparent 58%),
    linear-gradient(180deg, #f8f8f6 0%, var(--white) 55%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 121, 90, 0.20), rgba(23, 121, 90, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 48, 56, 0.12), rgba(43, 48, 56, 0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero .lead {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 620px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 신뢰 브릿지 (섹션 1) ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.bio-grid > * { min-width: 0; }
.bio-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.bio-copy .lead-line { font-size: 18px; color: var(--ink); font-weight: 600; margin-bottom: 18px; }
.bio-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-dark); font-weight: 700; text-decoration: none;
  margin-top: 8px; font-size: 15px;
}
.bio-link:hover { text-decoration: underline; }

.auto-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.auto-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.auto-card-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #e3f1ec 0%, #c3e4d6 100%);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 14px -8px rgba(23, 121, 90, 0.35);
}
.auto-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.auto-card p { font-size: 13.5px; color: var(--ink-soft); }

.dashboard-shot {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 100%;
}
.dashboard-shot img { display: block; width: 100%; height: auto; }
.dashboard-shot--full { margin: 40px 0 0; width: 100%; }
.dashboard-shot figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.bio-closer {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

/* ---------- 무엇을 만들어주나 (섹션 2) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(43, 48, 56, 0.22);
}
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e3f1ec 0%, #c3e4d6 100%);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 16px -10px rgba(23, 121, 90, 0.35);
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); }
.section-foot-note {
  margin-top: 28px; font-size: 14px; color: var(--muted);
}

/* ---------- 패키지 표 (섹션 3) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pricing-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  min-width: 0;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pricing-grid--3 .plan-card { padding: 26px 22px; }

/* 기본 선택 표시(스타트) + 마우스 올린 카드도 동일하게 강조 */
.plan-card.featured,
.pricing-grid--3 .plan-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.plan-card.featured::before,
.pricing-grid--3 .plan-card:hover::before {
  content: "선택";
  position: absolute; top: -13px; left: 28px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
/* 다른 카드에 마우스를 올리면 기본 선택(스타트) 강조는 잠시 해제 */
.pricing-grid--3:has(.plan-card:hover) .plan-card.featured:not(:hover) {
  border-color: var(--line);
  box-shadow: none;
}
.pricing-grid--3:has(.plan-card:hover) .plan-card.featured:not(:hover)::before {
  content: none;
}
.plan-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan-price .amount { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--ink); }
.plan-price .unit { font-size: 13px; color: var(--muted); }
.plan-upkeep { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.plan-upkeep b { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.plan-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.plan-list li {
  display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft);
  padding-top: 12px; border-top: 1px dashed var(--line);
}
.plan-list li:first-child { border-top: none; padding-top: 0; }
.plan-list li b { color: var(--ink); font-weight: 600; }
.plan-list .label { min-width: 128px; color: var(--muted); font-weight: 600; }
.pricing-grid--3 .plan-list { gap: 10px; }
.pricing-grid--3 .plan-list li {
  flex-direction: column; gap: 3px;
  font-size: 13.5px; padding-top: 10px;
}
.pricing-grid--3 .plan-list .label { min-width: 0; font-size: 12px; }
.plan-card__cta { width: 100%; margin-top: 22px; }
.pricing-foot { margin-top: 22px; font-size: 13px; color: var(--muted); }
.pricing-foot p + p { margin-top: 4px; }
.pricing-foot a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.pricing-foot a:hover { color: var(--accent); }

/* ---------- 왜 아무나 안 받나 (섹션 4) ---------- */
.limit-block {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.limit-block-illust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
}
.limit-block > div { position: relative; z-index: 1; }
.limit-block .stat { font-family: var(--font-mono); font-size: clamp(40px, 5.6vw, 60px); font-weight: 600; line-height: 1; }
.limit-block .stat span { font-family: var(--font); font-size: 18px; font-weight: 600; margin-left: 8px; opacity: 0.8; }
.limit-block .stat-label { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.7); }
.limit-block h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-bottom: 14px; }
.limit-block p { color: rgba(255,255,255,0.82); margin-bottom: 10px; font-size: 15px; }

/* ---------- 진행 방식 (섹션 5) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step {
  position: relative;
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.step .step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-soft); }
.steps-foot { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ---------- CTA 밴드 (섹션 6) ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: #fff;
  padding: 76px 0;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin-bottom: 14px; line-height: 1.35; }
.cta-band .lead { color: rgba(255,255,255,0.78); font-size: 16px; margin-bottom: 4px; }
.cta-fields {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 8px;
}
.cta-fields li {
  font-size: 14px; color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 10px;
}
.cta-fields li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-light); flex: none;
}
.cta-altcontact {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
.cta-altcontact .btn { flex: none; }
.cta-altcontact .btn svg { width: 15px; height: 15px; }

.cta-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px;
}
.cta-form__title { font-size: 15px; font-weight: 800; margin: 0 0 18px; }
.cta-form__field { display: block; margin-bottom: 14px; }
.cta-form__field span {
  display: block; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 6px;
}
.cta-form__field em { color: var(--accent-light); font-style: normal; }
.cta-form__field em.optional { color: rgba(255,255,255,0.5); font-weight: 400; font-size: 12px; }
.cta-form__field input,
.cta-form__field select,
.cta-form__field textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: #fff;
  outline: none;
  resize: vertical;
}
.cta-form__field input::placeholder, .cta-form__field textarea::placeholder { color: rgba(255,255,255,0.4); }
.cta-form__field input:focus, .cta-form__field select:focus, .cta-form__field textarea:focus { border-color: var(--accent-light); }
.cta-form__field select option { color: #111; }
.cta-form__consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,0.75);
  margin: 4px 0 10px; cursor: pointer;
}
.cta-form__consent input { margin-top: 3px; flex: none; }
.cta-form__consent a { color: var(--accent-light); font-weight: 700; text-decoration: underline; margin-left: 4px; }
.cta-form__consent-detail {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 14px;
}
.cta-form__consent-detail.open { display: block; }
.cta-form__consent-detail b { color: rgba(255,255,255,0.85); }
.cta-form__consent-detail a { color: var(--accent-light); }
.cta-form__submit { width: 100%; }
.cta-form__status { min-height: 18px; margin: 10px 0 0; font-size: 13px; }
.cta-form__status--ok { color: #8fe3c0; }
.cta-form__status--error { color: #ffb4a8; }
.cta-form .disclaimer {
  font-size: 12.5px; color: rgba(255,255,255,0.6);
  margin-top: 14px; line-height: 1.6;
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.legal-line {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
}
.legal-line b { color: var(--ink-soft); font-weight: 600; }
.legal-line a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.legal-line a:hover { color: var(--accent-dark); }
.legal-tbd {
  color: var(--muted);
  font-style: normal;
  border-bottom: 1px dashed var(--muted);
}
.copyright { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- 반응형 ---------- */
@media (max-width: 880px) {
  section { padding: 64px 0; }
  .bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .auto-cards { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .limit-block { grid-template-columns: 1fr; padding: 32px; text-align: left; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 76px 0 56px; }
  .auto-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ===========================================================
   법정 문서 페이지 (이용약관 / 개인정보처리방침)
   =========================================================== */
.legal-page {
  padding: 64px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-page .updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-page h2 {
  font-size: 18px; font-weight: 700; margin: 40px 0 12px;
  padding-top: 4px;
}
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 14px; }
.legal-page table {
  width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 13.5px;
}
.legal-page th, .legal-page td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
.legal-page th { background: var(--paper); font-weight: 700; }
.legal-page .biz-info {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.9;
}
.legal-page .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  text-decoration: none; margin-bottom: 32px;
}
.legal-page .back-link:hover { text-decoration: underline; }

/* ===========================================================
   챗봇 위젯
   =========================================================== */
.chat-root { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font); }
.chat-launcher {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  box-shadow: 0 14px 30px -12px rgba(23, 121, 90, 0.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s ease;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-root[data-open="true"] .chat-launcher { display: none; }
.chat-panel {
  display: none;
  position: fixed; right: 20px; bottom: 20px;
  width: min(360px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 100px));
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(43, 48, 56, 0.4);
  border: 1px solid var(--line);
  flex-direction: column;
}
.chat-root[data-open="true"] .chat-panel { display: flex; }
.chat-head {
  background: var(--ink); color: #fff; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.chat-head__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  flex: none;
  border: 2px solid rgba(255,255,255,0.25);
}
.chat-head > div { flex: 1; min-width: 0; }
.chat-head__title { font-size: 14.5px; font-weight: 700; margin: 0; }
.chat-close {
  background: transparent; border: none; color: #fff; cursor: pointer;
  padding: 2px; opacity: 0.8; margin-top: -2px;
}
.chat-close:hover { opacity: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.chat-msg--bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-typing { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; font-size: 13.5px; font-family: var(--font); outline: none;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-send {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 0 18px; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.chat-send:disabled, .chat-input input:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-foot { padding: 10px 14px 14px; background: #fff; }
.chat-leadcta {
  width: 100%; background: transparent; border: 1px solid var(--ink);
  color: var(--ink); font-weight: 700; font-size: 13px;
  padding: 9px; border-radius: 999px; cursor: pointer; margin-bottom: 8px;
}
.chat-leadcta:hover { background: rgba(43,48,56,0.05); }
.chat-disclaimer { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.5; }

.chat-lead {
  position: absolute; inset: 0; top: 68px;
  background: #fff; display: flex; flex-direction: column;
}
.chat-lead__body { flex: 1; overflow-y: auto; padding: 16px; }
.chat-lead__title { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.chat-lead__intro { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.chat-lead__field { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.chat-lead__field span { display: block; margin-bottom: 5px; }
.chat-lead__field input, .chat-lead__field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; font-size: 13.5px; font-family: var(--font); outline: none; resize: vertical;
}
.chat-lead__field input:focus, .chat-lead__field textarea:focus { border-color: var(--accent); }
.chat-lead__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
.chat-lead__consent { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.chat-lead__consent a { color: var(--accent-dark); }
.chat-lead__row { display: flex; gap: 8px; }
.chat-lead__submit { flex: 1; }
.chat-lead__row .btn-ghost { border-color: var(--line); color: var(--ink-soft); flex: none; }
.chat-lead__row .btn-ghost:hover { background: var(--paper); }

@media (max-width: 420px) {
  .chat-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .chat-root { right: 10px; bottom: 10px; }
}
