/* ===========================================================
   인비트윈 · AI 세팅 서비스 (in-between.kr)
   =========================================================== */

:root {
  --navy: #0b2545;
  --navy-2: #123262;
  --ink: #16181d;
  --ink-soft: #4a4f59;
  --muted: #7a8093;
  --line: #e6e4de;
  --paper: #faf9f6;
  --paper-2: #f1efe9;
  --white: #ffffff;
  --orange: #ea5b21;
  --orange-dark: #c8481a;
  --orange-tint: #fdece2;

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Segoe UI", system-ui, sans-serif;

  --container: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -25px rgba(11, 37, 69, 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(--orange-dark);
  background: var(--orange-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: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }

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(--orange);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(234, 91, 33, 0.65);
}
.btn-primary:hover { background: var(--orange-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(11, 37, 69, 0.25);
  color: var(--navy);
}
.btn-outline-navy:hover { background: rgba(11, 37, 69, 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;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand .brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  letter-spacing: -0.02em;
}
.brand .brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand .brand-tag { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 84px;
  background:
    radial-gradient(1200px 620px at 78% -18%, rgba(234, 91, 33, 0.22), transparent 60%),
    radial-gradient(900px 640px at -8% 30%, rgba(11, 37, 69, 0.20), transparent 58%),
    linear-gradient(180deg, #fdf6ee 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(234, 91, 33, 0.30), rgba(234, 91, 33, 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(11, 37, 69, 0.16), rgba(11, 37, 69, 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: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  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(--orange-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 .num {
  font-size: 12px; font-weight: 800; color: var(--orange-dark);
  letter-spacing: 0.04em; margin-bottom: 8px; display: block;
}
.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-top: 40px; 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(--orange);
  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;
}
.feature-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(11, 37, 69, 0.25);
}
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffefe4 0%, #ffd9bd 100%);
  color: var(--orange-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(234, 91, 33, 0.45);
}
.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;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.plan-card.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-card.featured::before {
  content: "프리미엄";
  position: absolute; top: -13px; left: 28px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan-price .amount { font-size: 30px; font-weight: 800; color: var(--navy); }
.plan-price .unit { font-size: 13px; color: var(--muted); }
.plan-upkeep { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.plan-upkeep b { color: var(--ink); }
.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-foot { margin-top: 22px; font-size: 13px; color: var(--muted); }
.pricing-foot p + p { margin-top: 4px; }

/* ---------- 왜 아무나 안 받나 (섹션 4) ---------- */
.limit-block {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.limit-block .stat { font-size: clamp(42px, 6vw, 64px); font-weight: 800; line-height: 1; }
.limit-block .stat span { 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: 800; 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(--navy);
  color: #fff;
  font-size: 13px; font-weight: 800;
  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(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 76px 0;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; 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(--orange); flex: none;
}
.cta-actions {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
}
.cta-actions .btn { width: 100%; margin-bottom: 12px; }
.cta-actions .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(--orange-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: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.legal-page .updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-page h2 {
  font-size: 18px; font-weight: 800; 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(--navy);
  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(--orange); color: #fff; border: none;
  box-shadow: 0 14px 30px -12px rgba(234, 91, 33, 0.6);
  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(11, 37, 69, 0.45);
  border: 1px solid var(--line);
  flex-direction: column;
}
.chat-root[data-open="true"] .chat-panel { display: flex; }
.chat-head {
  background: var(--navy); color: #fff; padding: 16px 18px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.chat-head__title { font-size: 15px; font-weight: 800; margin: 0 0 2px; }
.chat-head__sub { font-size: 12px; margin: 0; color: rgba(255,255,255,0.7); }
.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(--navy); 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(--orange); }
.chat-send {
  background: var(--orange); 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(--navy);
  color: var(--navy); font-weight: 700; font-size: 13px;
  padding: 9px; border-radius: 999px; cursor: pointer; margin-bottom: 8px;
}
.chat-leadcta:hover { background: rgba(11,37,69,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(--orange); }
.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(--orange-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; }
}
