/* 일꾼 해외 사전 등록 페이지 (ilggun.com/tw/ · ilggun.com/ja/) 공용.
   한 줄 기둥: 히어로 → 사실 카드 → 할 일 목록 → 신청 → 질문 → 사업자 정보. 토큰은 free.css 와 같다.
   색은 파란 하나(--blue). 이모지 없음, 인라인 스타일 없음(CSP), 부드러운 스크롤 없음(owner 10-06). */

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --soft: #f4f5f7;
  --line: #e3e6eb;
  --line-soft: #eef0f3;
  --ink: #0e1116;
  --ink-2: #353b45;
  --muted: #6a717d;
  --blue: #0066ff;
  --blue-deep: #0047d1;
  --blue-soft: #eef4ff;
  --blue-line: #cfe0ff;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-ja: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
    "Yu Gothic", Meiryo, "Pretendard Variable", sans-serif;

  --font-zh: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
    "Heiti TC", "Pretendard Variable", sans-serif;

  --col: 640px;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html[lang="ja"] body { font-family: var(--font-ja); word-break: normal; line-break: strict; }
html[lang^="zh"] body { font-family: var(--font-zh); word-break: normal; line-break: strict; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--canvas);
}
@media (min-width: 680px) {
  .page { box-shadow: 0 0 0 1px var(--line-soft), 0 20px 60px rgba(14, 17, 22, .06); }
}

/* ---------- 히어로 ---------- */
.hero { padding: 28px var(--pad) 32px; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.eyebrow { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--blue); }
.hero h1 { margin-top: 8px; font-size: 30px; line-height: 1.3; letter-spacing: -0.02em; }
.hero .lead { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.status {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
  color: var(--ink-2);
}
.status b { color: var(--ink); }

/* ---------- 섹션 ---------- */
.sec { padding: 32px var(--pad); border-bottom: 1px solid var(--line-soft); }
.sec h2 { font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; }
.sec .sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.sec p + p { margin-top: 12px; }
.sec .body { margin-top: 14px; color: var(--ink-2); }

.list { margin-top: 18px; display: grid; gap: 10px; }
.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.list li .icon { margin-top: 4px; color: var(--blue); }
.list li b { display: block; color: var(--ink); }
.list li span { display: block; color: var(--muted); font-size: 14px; }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  vertical-align: 2px;
}

.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th { background: var(--soft); color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.src { margin-top: 12px; font-size: 13px; color: var(--muted); }
.src a { color: var(--muted); }

/* ---------- 신청 ---------- */
.apply { background: var(--blue-soft); border-bottom: 1px solid var(--blue-line); }
.steps { margin-top: 16px; display: grid; gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink-2); }
.steps li::before {
  content: counter(step);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.cta:hover { background: var(--blue-deep); }
.cta-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 질문 ---------- */
.faq { margin-top: 16px; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq details p { padding: 12px 0 16px; color: var(--ink-2); font-size: 15px; }

/* ---------- 바닥 ---------- */
.foot { padding: 28px var(--pad) 40px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot p + p { margin-top: 6px; }

/* ---------- 계산 도구 (/ja/genka/ · /tw/cost/, landed-cost.js) ---------- */
.calc { margin-top: 16px; display: grid; gap: 16px; }
.calc fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 12px; min-width: 0; }
.calc legend { padding: 0 6px; font-weight: 700; color: var(--ink); }
.field { display: grid; gap: 4px; }
.field span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.field input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field small { font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--blue); }
.result[hidden], [data-sale][hidden], .rows div[hidden] { display: none; }
.rows { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--ink-2); font-size: 14px; }
.rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.rows .total { background: var(--soft); }
.rows .total dt, .rows .total dd { color: var(--ink); font-weight: 700; }
.rows .total dd { color: var(--blue); }
.formula { margin-top: 14px; display: grid; gap: 8px; padding-left: 20px; list-style: decimal; color: var(--ink-2); font-size: 15px; }
