/* ══════════════════════════════════════════════════════════════
   인택스세무회계 자산관리센터 · 경리아웃소싱 랜딩
   톤 : 뉴트럴 그레이 + 딥네이비 + 인택스 레드 (상속 랜딩과 같은 뼈대, 액센트만 교체)
        B2B 화면이라 표·수치가 많아 밝은 배경을 쓴다.`r`n        액센트가 곧 브랜드 레드다.
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg2: #f6f7f9;        /* 섹션 교차 배경 */
  --bg3: #eef1f5;        /* 도구 박스 */
  --ink: #17233c;        /* 제목 딥네이비 */
  --ink2: #24365c;       /* 호버 */
  --body: #40495a;       /* 본문 */
  --mute: #737d8d;       /* 흐림 */
  --line: #e2e6ec;       /* 헤어라인 */
  --line2: #c9cbd2;      /* 입력칸 테두리 */
  --accent: #d42020;     /* 인택스 레드 */
  --accent-bg: #fdeded;
  --brand: #d42020;      /* 인택스 레드 : 기한 경고·푸터 마크에만 */
  --warn: #b03a2e;
  --radius: 12px;
  --pad: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system,
               "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: -0.01em;
  -webkit-text-size-adjust: 100%;
  padding-bottom: 72px;   /* 모바일 하단 고정바에 본문이 가리지 않게 */
}

/* 본문 문단 : 양쪽정렬 + 한글 어절 단위 줄바꿈 (전역 표준) */
p, li, .lead, blockquote { text-align: justify; word-break: keep-all; overflow-wrap: anywhere; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.34;
  letter-spacing: -0.032em;
  word-break: keep-all;
  margin: 0 0 12px;
}

a { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }

/* ── 등장 애니메이션 ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 상단 고정바 ─────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; }
.brand b { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.brand span { color: var(--mute); font-size: 12px; }
.topbar-cta { display: flex; gap: 8px; }
.topbar-cta a {
  font-size: 13px; font-weight: 600; padding: 9px 14px;
  border-radius: 7px; text-decoration: none; white-space: nowrap;
}
.topbar-cta .tel { border: 1px solid var(--line2); color: var(--ink); }
.topbar-cta .go { background: var(--ink); color: #fff; }
.topbar-cta .go:hover { background: var(--ink2); }

/* 카카오톡 : 브랜드 색 고정 */
.kko { background: #fee500; color: #191600; }
.kko:hover { background: #f2da00; color: #191600; }

/* 좁은 화면에서 상단 버튼 3개가 넘치지 않게 */
@media (max-width: 400px) {
  .topbar-cta { gap: 6px; }
  .topbar-cta a { padding: 8px 10px; font-size: 12.5px; }
  .brand b { font-size: 13.5px; }
}

/* ── 섹션 공통 ───────────────────────────────────── */
section { padding: 58px 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg2); }
section:first-of-type { border-top: 0; }

.label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 10px;
}
.label .n { color: var(--ink); opacity: .35; margin-right: 8px; }
h2 { font-size: 26px; margin-bottom: 18px; }
h3 { font-size: 18px; }
.lead { font-size: 17px; color: var(--body); margin: 0 0 24px; }
.small { font-size: 14px; color: var(--mute); }
.note {
  font-size: 14px; color: var(--mute); background: var(--bg3);
  border-left: 3px solid var(--line2); border-radius: 0 8px 8px 0;
  padding: 12px 15px; margin-top: 18px;
}

/* ── 진입 갈림길 ─────────────────────────────────── */
.gate { padding: 46px 0 54px; }
.gate h1 { font-size: 31px; margin-bottom: 14px; }
.gate .sub { font-size: 17px; margin-bottom: 28px; }
.gate-cards { display: grid; gap: 12px; }
.gate-card {
  display: block; width: 100%; text-align: left;
  background: #fff; color: var(--body);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px;
  cursor: pointer; font-size: 15px; line-height: 1.65;
  font-family: inherit;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gate-card:hover { background: var(--bg2); box-shadow: 0 6px 18px rgba(23, 35, 60, .07); transform: translateY(-2px); }
.gate-card b {
  display: block; color: var(--ink); font-size: 19px; font-weight: 700;
  margin-bottom: 6px; letter-spacing: -0.03em;
}
.gate-card span { display: block; word-break: keep-all; }

/* 신뢰 스트립 (갈림길 하단) */
.trust { display: grid; gap: 10px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
/* 배지 옆에서 시작한 글줄이 둘째 줄에서도 같은 지점에 맞도록 flex로 묶는다 */
.trust div { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--body); }
.trust .t { word-break: keep-all; }
.trust b { color: var(--ink); font-weight: 700; }
.trust .k {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); background: var(--accent-bg);
  border-radius: 4px; padding: 2px 7px;
}

/* 트랙 : 고른 쪽만 보인다 */
.track { display: none; }
.track.on { display: block; }
.back {
  display: inline-block; font-size: 14px; color: var(--mute);
  text-decoration: none; margin-bottom: 16px;
}
.back::before { content: "\2039\00a0"; }
.back:hover { color: var(--ink); }

/* ── 히어로 ──────────────────────────────────────── */
.hero { padding: 44px 0 54px; }
.hero h1 { font-size: 32px; margin-bottom: 16px; }
.hero .sub { font-size: 17px; color: var(--body); margin-bottom: 30px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-bg);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 16px;
}

/* ── 도구 박스 (기한 계산 / 자가진단) ────────────── */
.tool {
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.tool h3 { font-size: 17px; margin-bottom: 6px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.field input { flex: 1 1 190px; width: auto; }

input[type="date"], input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line2);
  border-radius: 8px; padding: 12px 13px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }

button, .btn {
  font-family: inherit; font-size: 16px; font-weight: 700;
  color: #fff; background: var(--ink); border: 0; border-radius: 8px;
  padding: 13px 22px; cursor: pointer; text-decoration: none;
  display: inline-block; text-align: center; transition: background .18s ease;
}
button:hover, .btn:hover { background: var(--ink2); }
button:disabled { background: var(--mute); cursor: default; }

/* 체크박스 한 줄 (비거주자 등) */
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-top: 12px; color: var(--body); }
.chk input { margin-top: 5px; flex: none; }

/* 결과 박스 */
.result {
  display: none; margin-top: 18px; padding: 20px;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 8px;
}
.result.on { display: block; }
.result .row { margin: 2px 0; }
.result .row b { color: var(--ink); }
.result .big {
  font-size: 31px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.045em; white-space: nowrap;
}
.result .big.over { color: var(--brand); }

/* 남은 기간 진행바 */
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 14px 0 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.bar.hot i { background: var(--brand); }

/* ── 자가진단 문항 ───────────────────────────────── */
.q { border: 0; padding: 0; margin: 0 0 20px; }
.q legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 9px; word-break: keep-all; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opts label {
  flex: 1 1 auto; border: 1px solid var(--line2); background: #fff;
  border-radius: 8px; padding: 11px 14px; font-size: 15px;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts input:checked + span { color: var(--ink); font-weight: 700; }
.opts label:has(input:checked) { border-color: var(--ink); background: var(--accent-bg); }
.opts label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 타임라인 ────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative; padding: 0 0 26px 34px;
  border-left: 2px solid var(--line); margin-left: 9px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: attr(data-n); position: absolute; left: -11px; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--line2); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.steps li.ours::before { background: var(--accent); }
.steps b { display: block; color: var(--ink); font-size: 17px; }
.steps p { margin: 5px 0 0; font-size: 15px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  border-radius: 4px; padding: 2px 8px; margin-left: 6px;
  vertical-align: 2px; white-space: nowrap;
}
.tag.me { background: #ecedef; color: var(--mute); }
.tag.us { background: var(--accent-bg); color: var(--accent); }

/* ── 카드 ────────────────────────────────────────── */
.cards { display: grid; gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card .no { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.09em; }
.card h3 { margin: 6px 0 8px; }
.card p { margin: 0; font-size: 15px; }

/* 강조 패널 (회사를 갖고 계신 분) */
.panel {
  background: var(--ink); color: #d5dae4;
  border-radius: var(--radius); padding: 26px 24px; margin-top: 6px;
}
.panel h3 { color: #fff; }
.panel p { font-size: 15px; }
.panel ul { margin: 14px 0 0; padding-left: 18px; }
.panel li { font-size: 15px; margin-bottom: 7px; }
.panel li::marker { color: var(--accent); }
.panel b { color: #fff; }

/* ── 표 (네이비 헤더, 전역 표준) ─────────────────── */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; min-width: 460px; }
th, td { border: 1px solid var(--line); padding: 12px; text-align: center; vertical-align: middle; word-break: keep-all; }
thead th { background: var(--ink); color: #fff; font-weight: 700; }
td.txt { text-align: justify; }

/* ── FAQ (네이티브 details) ──────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 34px 17px 0;
  position: relative; font-weight: 700; color: var(--ink);
  word-break: keep-all; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 15px;
  font-size: 20px; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; font-size: 15px; padding-right: 8px; }

/* ── 담당 전문가 ─────────────────────────────────── */
.pros { display: grid; gap: 16px; }
.pro {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; display: grid; gap: 16px;
}
.pro .photo {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--line) center/cover no-repeat; flex: none;
}
.pro h3 { margin: 0 0 2px; font-size: 19px; }
.pro .role { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; }
.pro ul { list-style: none; margin: 0; padding: 0; }
.pro li { font-size: 14px; color: var(--body); padding-left: 13px; position: relative; margin-bottom: 3px; text-align: left; }
.pro li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 1px; background: var(--accent); }

/* 실적 지표 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 30px; }
.stat { padding: 24px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.045em; white-space: nowrap; }
.stat-num .unit { font-size: .46em; color: var(--accent); margin-left: 3px; letter-spacing: 0; }
.stat-label { font-size: 13px; color: var(--mute); word-break: keep-all; line-height: 1.6; margin-top: 4px; }

/* ── 폼 ──────────────────────────────────────────── */
form label.f { display: block; margin-bottom: 15px; }
form label.f > span {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
form label.f .opt { color: var(--mute); font-weight: 400; }
.agree { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.65; color: var(--mute); }
.agree input { margin-top: 5px; flex: none; }
.agree b { color: var(--ink); }
form button[type="submit"] { width: 100%; margin-top: 14px; padding: 17px; font-size: 17px; }
.formmsg {
  margin: 14px 0 0; padding: 14px 16px; font-size: 15px;
  background: var(--accent-bg); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; color: var(--ink);
}
.or { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.or a { flex: 1 1 180px; }
.or .tel { background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.or .tel:hover { background: var(--bg2); }
/* .btn 뒤에 와야 카카오 노랑이 네이비를 이긴다 */
.or .kko, .mbar a.kko { background: #fee500; color: #191600; }
.or .kko:hover { background: #f2da00; }

/* ── 푸터 ────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--mute); background: var(--bg2); }
footer .fmark { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
footer .fmark i { color: var(--brand); font-style: normal; }
footer b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 15px; }
footer a { color: var(--ink); }
footer .disc { margin-top: 14px; font-size: 13px; line-height: 1.7; }

/* ── 모바일 하단 고정 CTA ────────────────────────── */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(23, 35, 61, 0.09);
  padding-bottom: env(safe-area-inset-bottom);
}
.mbar a {
  flex: 1; padding: 17px 4px; font-size: 15px; font-weight: 700;
  text-align: center; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line);
}
.mbar a:last-child { border-right: 0; background: var(--ink); color: #fff; }

/* ── 데스크톱 ────────────────────────────────────── */
@media (min-width: 720px) {
  body { padding-bottom: 0; font-size: 17px; }
  .mbar { display: none; }
  section { padding: 76px 0; }
  .gate { padding: 76px 0 84px; }
  .gate h1 { font-size: 39px; }
  .gate-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .trust { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hero { padding: 72px 0 78px; }
  .hero h1 { font-size: 43px; }
  h2 { font-size: 31px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .tool { padding: 28px; }
  .pros { grid-template-columns: 1fr 1fr; }
  .pro { grid-template-columns: 92px 1fr; align-items: start; }
  .panel { padding: 34px 32px; }
  .stat-num { font-size: 34px; }
}

/* ══ 경리 랜딩 전용 ═══════════════════════════════════════════ */

/* 히어로 버튼 묶음 */
.hbtns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.hbtns .ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.hbtns .ghost:hover { background: var(--bg2); }

/* 실비용 계산 명세 */
.crow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px; text-align: left;
}
.crow:last-of-type { border-bottom: 0; }
.crow .k { color: var(--body); word-break: keep-all; }
.crow .k small { display: block; font-size: 12px; color: var(--mute); }
.crow .v { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.crow.sum {
  border-top: 2px solid var(--ink); border-bottom: 0;
  margin-top: 10px; padding-top: 14px; align-items: center;
}
.crow.sum .k { font-weight: 700; color: var(--ink); font-size: 16px; }
.crow.sum .v { font-size: 27px; letter-spacing: -0.04em; }
.crow.sum .v em { font-size: 15px; font-style: normal; color: var(--mute); margin-left: 3px; }

/* 계산에 넣지 않은 항목 */
.excl { margin-top: 16px; padding: 14px 16px; background: var(--accent-bg); border-radius: 8px; }
.excl b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.excl ul { margin: 0; padding-left: 17px; }
.excl li { font-size: 13.5px; color: var(--body); margin-bottom: 3px; }
.excl li::marker { color: var(--accent); }

/* 하는 것 / 하지 않는 것 */
.yn { display: grid; gap: 14px; }
.yn > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.yn h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.yn h3::before {
  content: "\2713"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; line-height: 22px; text-align: center;
}
.yn .no h3::before { content: "\00d7"; background: var(--mute); }
.yn ul { list-style: none; margin: 0; padding: 0; }
.yn li { font-size: 15px; padding-left: 14px; position: relative; margin-bottom: 7px; text-align: left; word-break: keep-all; }
.yn li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 1px; background: var(--accent); }
.yn .no li::before { background: var(--line2); }

@media (min-width: 720px) {
  .yn { grid-template-columns: 1fr 1fr; gap: 16px; }
}
