:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e8ee;
  --line-2: #d6dbe4;
  --brand: #2f5bff;
  --brand-ink: #ffffff;
  --brand-soft: #eef2ff;
  --ok: #0f9d6b;
  --ok-soft: #e7f7f0;
  --warn: #b45309;
  --danger: #dc2626;
  --dark: #0b1220;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.14);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: transform .08s, background .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #2449e0; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-light { background: #fff; color: var(--ink); }
.btn-block { width: 100%; height: 50px; font-size: 16px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,247,249,.85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 15px;
}
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 520px; gap: 56px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok);
  font-size: 13px; font-weight: 600;
}
.eyebrow.plain { background: none; padding: 0; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(15,157,107,.18); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.18; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { margin: 20px 0 0; font-size: 17px; color: var(--ink-2); max-width: 30em; }
.hero-stats { list-style: none; display: flex; gap: 0; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hero-stats li { flex: 1; padding: 18px 0 0; }
.hero-stats li + li { padding-left: 20px; border-left: 1px solid var(--line); margin-left: 20px; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* form */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-head h2 { font-size: 20px; }
.form-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .label { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }
.label { margin-bottom: 0; }
.req, .opt { margin-left: 6px; font-size: 12px; font-weight: 500; }
.req { color: var(--brand); }
.opt { color: var(--muted); }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,91,255,.15); }
input::placeholder, textarea::placeholder { color: #9aa4b5; }
.label-row { display: flex; justify-content: flex-start; align-items: center; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--brand); cursor: pointer; }
input:disabled { background: var(--bg); color: #aab3c2; cursor: not-allowed; text-decoration: line-through; }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }
.form-msg { margin: -6px 0 0; min-height: 1em; font-size: 13.5px; text-align: center; color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .12s;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.chips.invalid { border-radius: 12px; outline: 2px solid rgba(220,38,38,.35); outline-offset: 4px; box-shadow: none !important; }

.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button {
  height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer;
}
.quick button:hover, .quick button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* process */
.process { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { display: flex; gap: 14px; padding: 28px 24px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.step-no { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps h3 { font-size: 16px; }
.steps p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* works */
.works { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.section-head p.muted { margin: 8px 0 0; max-width: 36em; }
.summary { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 0; }
.summary div { text-align: right; }
.summary dt { font-size: 12.5px; color: var(--muted); }
.summary dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.sort select { width: auto; padding: 8px 34px 8px 12px; font-size: 14px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }

.table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tr { display: grid; grid-template-columns: minmax(0, 1fr) 140px 90px 130px; gap: 16px; align-items: center; padding: 16px 22px; }
.th { padding: 12px 22px; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
#workRows .tr + .tr { border-top: 1px solid var(--line); }
.tier {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 22px; background: var(--brand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
#workRows .tier-group:first-child .tier { border-top: 0; }
.more:empty:not(.idle) { display: none; }
.more.idle { height: 1px; padding: 0; border: 0; }
#workRows, .more { overflow-anchor: none; }
.more { display: flex; justify-content: center; padding: 12px 22px 16px; border-top: 1px solid var(--line); }
.more-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.more-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.more-btn .count { font-weight: 500; color: var(--muted); font-size: 13px; }
.more-loading { font-size: 13px; color: var(--muted); }
.tier-name { font-weight: 800; font-size: 15px; color: var(--brand); letter-spacing: -0.01em; }
.tier-count { margin-left: 4px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.tier-info { font-size: 12.5px; color: var(--muted); }
#workRows .tr { transition: background .12s; }
#workRows .tr:hover { background: #fafbff; }
.w-title { font-weight: 600; font-size: 15.5px; }
.w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.sep { opacity: .5; }
.w-scope { color: var(--ink-2); font-size: 14px; }
.w-days { font-weight: 600; font-size: 14px; }
.w-days.same { color: var(--ok); }
.w-price { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.w-price .private { font-size: 14px; font-weight: 600; color: var(--muted); }
.onsite { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.w-price small { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 1px; }
.m-label { display: none; }
.empty { padding: 48px; text-align: center; color: var(--muted); }
.table-foot { margin: 12px 4px 0; font-size: 12.5px; }

/* cta */
.cta { background: var(--dark); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 24px; }
.cta h2 { font-size: 24px; font-weight: 800; }
.cta p { margin: 6px 0 0; color: #a3b0c6; }

.footer { background: var(--dark); color: #cbd5e1; border-top: 1px solid #1c2638; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.footer .muted { color: #7a879c; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.4); transition: all .25s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head { flex-direction: column; align-items: start; }
  .summary div { text-align: left; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .topbar-inner .btn { margin-left: auto; }
  .hero { padding: 36px 0 40px; }
  .lead { font-size: 15.5px; }
  .hero-stats strong { font-size: 21px; }
  .hero-stats li + li { padding-left: 14px; margin-left: 14px; }
  .form { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child, .steps li:nth-child(3) { padding: 18px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .works { padding: 56px 0; }
  .summary { grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
  .summary dd { font-size: 17px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips-filter .chip { flex: none; }
  .sort select { width: 100%; }
  .th { display: none; }
  .tier { padding: 10px 16px; }
  .tr { grid-template-columns: 1fr auto; grid-template-areas: "t t" "s s" "d p"; gap: 6px 12px; padding: 16px; }
  .tr > :nth-child(1) { grid-area: t; }
  .tr > :nth-child(2) { grid-area: s; }
  .tr > :nth-child(3) { grid-area: d; text-align: left; }
  .tr > :nth-child(4) { grid-area: p; }
  .m-label { display: inline; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-right: 6px; }
  .cta-inner { flex-direction: column; align-items: start; padding: 40px 16px; }
  .footer-inner { flex-direction: column; padding: 20px 16px; }
}
