/* 공개 페이지(home/pricing/terms)와 관리자 페이지 공통. 값은 design/itemgate-screens.html 그대로 */
:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --surface-2: #F8F9FB; --border: #E6E8EC; --border-2: #EEF0F3;
  --text: #101828; --text-2: #344054; --text-3: #667085; --text-4: #98A2B3;
  --brand: #2F5BFF; --brand-dark: #1E3FD6; --brand-soft: #EEF2FF;
  --ok: #12B76A; --warn: #F79009; --danger: #F04438;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin: 0; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.3px; font-size: 16px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand i { width: 22px; height: 22px; border-radius: 7px; background: var(--brand); display: inline-block; position: relative; flex: none; }
.brand i::after { content: ""; position: absolute; inset: 6px; border: 2px solid #fff; border-radius: 3px; }

.btn { white-space: nowrap; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; }
.btn:hover { border-color: #CFD4DC; }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.pri:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-2); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lbl { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-bottom: 6px; display: block; }
.field { height: 44px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; font-size: 14.5px; background: var(--surface); min-width: 0; }
.field::placeholder { color: var(--text-4); }
.rows { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; color: var(--text-3); }
.seg button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.bk { padding: 28px 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; padding: 12px 20px; background: var(--surface-2); }
.tbl td { padding: 14px 20px; border-top: 1px solid var(--border-2); }
.msg { max-width: 78%; padding: 10px 13px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; }

/* 공개 페이지 */
.pub { min-height: 100vh; display: flex; flex-direction: column; }
.pub-top { height: 64px; display: flex; align-items: center; gap: 32px; padding: 0 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 72px 64px 40px; align-items: center; }
.hero-h { font-size: 44px; line-height: 1.2; letter-spacing: -1.4px; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
.hero-p { font-size: 17px; color: var(--text-3); margin: 0 0 28px; line-height: 1.6; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-cta .btn { height: 44px; padding: 0 20px; }
.hero-shot { height: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: 0 24px 48px rgba(16,24,40,.08); }
.hero-shot .rows { height: 100%; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 10px; display: block; }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 64px 48px; }
.feat div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.feat span { color: var(--text-3); font-size: 13.5px; }
.biz { margin-top: auto; padding: 18px 40px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; line-height: 1.8; background: var(--surface); }
.biz a { color: var(--text-2); }
.plans { display: grid; grid-template-columns: repeat(3, 280px); gap: 20px 16px; }
.plan { position: relative; }
.plan-tag { position: absolute; top: -11px; left: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan-yr { margin: -8px 0 0; font-size: 13px; }
.plan-notes { margin: 8px 0 0; padding-left: 18px; max-width: 872px; width: 100%; font-size: 14px; line-height: 1.8; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.hl { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan .price { display: flex; align-items: baseline; gap: 4px; }
.plan .price .num { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.set-wrap { display: flex; gap: 32px; padding: 28px 40px 48px; align-items: flex-start; }
.subnav { width: 180px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.subnav a { padding: 9px 12px; border-radius: 10px; color: var(--text-3); text-decoration: none; font-weight: 500; }
.subnav a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.legal { flex: 1; max-width: 720px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; }
.legal > p.muted { margin: 0; }
.legal h4 { margin: 20px 0 6px; }
.legal p { margin: 0; color: var(--text-2); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 32px; gap: 32px; }
  .hero-shot { height: 260px; }
  .feat { grid-template-columns: repeat(2, 1fr); padding: 0 24px 40px; }
  .plans { grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); justify-content: center; }
}
@media (max-width: 600px) {
  .pub-top { padding: 0 16px; gap: 12px; }
  .top-right { gap: 8px; }
  .hero { padding: 36px 16px 24px; }
  .hero-h { font-size: 32px; letter-spacing: -1px; }
  .hero-p { font-size: 15.5px; }
  .feat { grid-template-columns: 1fr; padding: 0 16px 32px; }
  .bk { padding: 24px 16px 40px; }
  .plans { grid-template-columns: 1fr; width: 100%; }
  .set-wrap { flex-direction: column; gap: 16px; padding: 20px 16px 40px; }
  .subnav { width: 100%; flex-direction: row; overflow-x: auto; }
  .subnav a { white-space: nowrap; }
  .legal { width: 100%; padding: 22px 20px; }
  .biz { padding: 16px; }
}
.plan .price { flex-wrap: nowrap; white-space: nowrap; }
.plans.yr .plan .price .num { font-size: 26px; }
.seg-badge { margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 1px 6px; border-radius: 999px; }
