/* ilpro.kr 공통 스타일. 첫 화면과 상세페이지가 함께 쓴다. */
:root {
  --navy: #00315d;
  --navy-soft: #27496d;
  --ink: #111827;
  --text: #374151;
  --muted: #64748b;
  --line: #e5e8ee;
  --soft: #f6f8fa;
  --dark: #101826;
  --font: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: #1f2937;
  background: #fff;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: #334155; text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.nw { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid #5b8fc7; outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* 머리글 */
.site-header { border-bottom: 1px solid #e8eaee; background: #fff; }
.site-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { height: 48px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 500; align-items: center; }
.main-nav a { padding: 6px 0; }
.main-nav .nav-campus { font-weight: 700; }
.header-spacer { flex-grow: 1; }
.btn-contact {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.btn-contact:hover { color: #fff; background: #0b4a8f; }

/* 머리 띠 */
.hero { background: var(--navy); color: #fff; padding: 46px 20px; text-align: center; }
.hero h1 { font-size: clamp(23px, 5.6vw, 30px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.hero p { margin-top: 10px; font-size: 15px; color: #cdd9e6; text-wrap: balance; }

/* 상품 목록 */
.catalog { padding-top: 36px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #d8dee6;
  background: #fff; color: #334155; font: 600 14px/1 var(--font); cursor: pointer;
}
.tab:hover { border-color: var(--navy); }
.tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.vat-note { font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { display: flex; }
.card[hidden] { display: none; }
.card-link {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.card-link:hover { border-color: #b8c4d4; box-shadow: 0 4px 14px rgba(16, 24, 38, .08); color: inherit; }
.thumb { height: 132px; position: relative; display: flex; align-items: center; justify-content: center; }
.tint-optimize { background: #e9f0f8; }
.tint-channel  { background: #e9f5f0; }
.tint-ads      { background: #fbf1e6; }
.tint-homepage { background: #f2effa; }
.badge {
  position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92);
  border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; color: #334155;
}
.ext-tag {
  position: absolute; top: 10px; right: 10px; background: var(--navy); color: #fff;
  border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.thumb-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; }
.tile {
  width: 52px; height: 52px; background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(16, 24, 38, .1);
}
.tile svg { width: 26px; height: 26px; }
.thumb-label { font-size: 14px; font-weight: 800; color: #2b3f55; padding: 0 12px; text-align: center; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.price { margin-top: 2px; }
.price-fixed { font-size: 15px; font-weight: 800; color: var(--navy); }
.price-consult { font-size: 14px; font-weight: 700; color: #475569; }
.vat { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* 일하는 방식 */
.method { background: var(--soft); padding: 40px 0; }
.method-inner { display: flex; flex-direction: column; gap: 20px; }
.method h2 { font-size: 20px; font-weight: 900; color: var(--ink); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.method-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.method-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.method-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 바닥글 */
.site-footer { background: var(--dark); color: #a8b4c4; padding: 36px 0; font-size: 13px; line-height: 1.8; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; }
.footer-links a { color: #c7d2de; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.biz { font-style: normal; }
.biz { display: flex; flex-direction: column; gap: 10px; }
.biz-list { display: flex; flex-direction: column; gap: 0; }
.biz-list a { color: #c7d2de; }
.biz-list a:hover { color: #fff; }

/* 상세페이지 */
.product, .contact { padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.product-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cat-badge { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.tint-optimize-badge { background: #e9f0f8; color: #1f3f66; }
.tint-channel-badge  { background: #e9f5f0; color: #14532d; }
.tint-ads-badge      { background: #fbf1e6; color: #7c4a12; }
.tint-homepage-badge { background: #f2effa; color: #4c2f8a; }
.product-head h1 { font-size: clamp(24px, 5.2vw, 29px); font-weight: 900; color: var(--ink); line-height: 1.35; }
.lead { font-size: 15px; color: #475569; line-height: 1.6; }
.product-price .price { font-size: 17px; font-weight: 800; color: var(--navy); margin: 0; }
.product-price .price-consult { font-size: 17px; font-weight: 800; color: var(--navy); }
.product-price .price-consult::after { content: ' VAT 별도'; font-size: 13px; font-weight: 500; color: var(--muted); }
.price-note { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.jump-apply {
  display: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 800;
}
.jump-apply:hover { color: #fff; background: #0b4a8f; }
.body-text { font-size: 14px; color: var(--text); line-height: 1.8; }
.body-text a { color: #0b4a8f; font-weight: 700; }

.product-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.product-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.product-main h2 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.scope { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.scope h3 { font-size: 14px; font-weight: 800; }
.scope-in { color: #14532d; }
.scope-out { color: #7c2d12; }
.scope ul { display: flex; flex-direction: column; gap: 4px; }
.scope li { font-size: 13px; color: var(--text); line-height: 1.7; padding-left: 14px; position: relative; }
.scope li::before { content: ''; position: absolute; left: 2px; top: 0.75em; width: 4px; height: 4px; border-radius: 50%; background: #94a3b8; }
.scope li.todo { color: #b45309; font-weight: 600; }
.related { background: var(--soft); border-radius: 12px; padding: 16px 18px; font-size: 13px; color: var(--text); line-height: 1.7; }
.related a { font-weight: 700; color: #0b4a8f; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.faq-item h3 { font-size: 14px; font-weight: 700; color: var(--ink); }
.faq-item p { font-size: 13px; color: #475569; line-height: 1.7; }

.apply { flex: 1 1 320px; max-width: 420px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.apply-solo { flex: none; width: 100%; max-width: 560px; }
.apply-form { display: flex; flex-direction: column; gap: 14px; }
.apply-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.apply-hint, .apply-after { font-size: 12px; color: var(--muted); line-height: 1.5; }
.apply-after { text-align: center; }
.apply-text { font-size: 14px; color: var(--text); line-height: 1.7; }
.apply-sep { width: 100%; border: 0; border-top: 1px solid #e8eaee; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: #334155; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1px solid #d6dde6; border-radius: 8px; padding: 10px 12px;
  font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid #5b8fc7; outline-offset: 0; }
.field-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; flex-direction: column; gap: 8px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; }
.consent-row input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.consent-row label { font-size: 13px; color: var(--text); line-height: 1.5; }
.consent-detail { font-size: 12px; color: var(--muted); }
.consent-detail summary { cursor: pointer; padding: 4px 0; }
.consent-detail ul { margin-top: 6px; padding: 10px 12px; background: var(--soft); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
.form-status { font-size: 13px; font-weight: 600; color: #b91c1c; line-height: 1.5; }
.form-status[hidden], .form-done[hidden], .apply-form[hidden] { display: none; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 0; border-radius: 10px;
  background: var(--navy); color: #fff; font: 800 15px/1 var(--font); cursor: pointer;
}
.btn-submit:hover { background: #0b4a8f; color: #fff; }
.btn-submit:disabled { background: #6b7f95; cursor: default; }
.btn-external { text-decoration: none; }
.form-done { padding: 28px 8px; text-align: center; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.7; }

/* 약관 */
.doc { max-width: 820px; padding-top: 24px; padding-bottom: 56px; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.doc-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #d8dee6; border-radius: 999px; font-size: 13px; font-weight: 600; }
.doc-tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc h1 { font-size: clamp(22px, 5vw, 26px); font-weight: 900; color: var(--ink); margin-bottom: 14px; }
.draft-note { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 10px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.doc-body h2 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 26px 0 8px; }
.doc-body p, .doc-body li { font-size: 14px; color: var(--text); line-height: 1.8; }
.doc-body p + p { margin-top: 8px; }
.doc-body ul { padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 2px; }
.doc-body a { color: #0b4a8f; text-decoration: underline; overflow-wrap: anywhere; }
.doc-table { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.doc-table th { background: var(--soft); text-align: left; padding: 10px 12px; color: #334155; white-space: nowrap; }
.doc-table td { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--text); vertical-align: top; min-width: 96px; }
mark.todo { background: #ffedd5; color: #9a3412; font-weight: 700; padding: 0 2px; border-radius: 3px; }

/* 접수 완료 뒤 가입 권유 */
.signup-invite { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.signup-invite[hidden] { display: none; }
.signup-invite p { font-size: 14px; font-weight: 600; color: var(--text); }
.signup-invite .btn-submit { max-width: 260px; }
.invite-login { font-size: 13px; font-weight: 600; color: #0b4a8f; text-decoration: underline; }

/* 내 서비스 · 관리 화면 */
.mypage, .manage { padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.my-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mypage h1, .manage h1 { font-size: clamp(22px, 5vw, 26px); font-weight: 900; color: var(--ink); }
.mypage h2, .manage h2 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.muted { font-size: 13px; color: var(--muted); }
.empty { font-size: 14px; color: var(--text); background: var(--soft); border-radius: 12px; padding: 16px 18px; line-height: 1.7; }
.empty a, .my-foot a { color: #0b4a8f; font-weight: 700; text-decoration: underline; }
.my-foot { font-size: 13px; color: var(--muted); line-height: 1.7; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--navy); border-radius: 10px; color: var(--navy); font-size: 14px; font-weight: 700; }
.btn-line:hover { background: var(--navy); color: #fff; }
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-link { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: inherit; }
.svc-link:hover { border-color: #b8c4d4; color: inherit; }
.svc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.svc-head b { font-size: 15px; color: var(--ink); }
.svc-last { font-size: 13px; color: var(--text); line-height: 1.6; }
.svc-last time { color: var(--muted); margin-right: 6px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--soft); color: #334155; white-space: nowrap; }
.pill.st-received { background: #fff7ed; color: #9a3412; }
.pill.st-consulting, .pill.st-paid, .pill.st-working { background: #e9f0f8; color: #1f3f66; }
.pill.st-done { background: #e9f5f0; color: #14532d; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; counter-reset: step; }
.steps li { position: relative; padding-top: 22px; font-size: 12px; text-align: center; color: var(--muted); line-height: 1.4; }
.steps li::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 4px; border-radius: 2px; background: #e2e8f0; }
.steps li.done::before { background: #94b3d4; }
.steps li.current::before { background: var(--navy); }
.steps li.current { color: var(--navy); font-weight: 800; }
.steps li.done { color: #334155; }
.log-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.log-list li { display: grid; grid-template-columns: 92px 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--text); }
.log-list time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.log-link a { color: #0b4a8f; text-decoration: underline; overflow-wrap: anywhere; }
.manage .item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.manage .head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 8px; }
.manage .head b { font-size: 15px; }
.manage dl, .info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.manage dt, .info dt { color: var(--muted); }
.manage dd, .info dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.manage .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.manage .row input, .manage .row select { min-height: 40px; font: 400 15px var(--font); padding: 0 10px; border: 1px solid #d6dde6; border-radius: 8px; background: #fff; max-width: 100%; }
.manage .row button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: 700 14px var(--font); cursor: pointer; }
.member-row { margin-top: 6px; font-size: 13px; }
.member-row a { color: #0b4a8f; font-weight: 700; }
.st-new { color: #b45309; font-weight: 700; } .st-contacting { color: #0b4a8f; font-weight: 700; } .st-closed { color: var(--muted); }
.mail-failed, .mail-not_configured { color: #b91c1c; font-weight: 700; }
.plain { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.plain a { color: #0b4a8f; font-weight: 700; }
.log-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.inline { display: inline; }
.btn-text { border: 0; background: none; color: #b91c1c; font: 600 13px var(--font); cursor: pointer; padding: 4px; }

@media (max-width: 899px) {
  .jump-apply { display: inline-flex; }
}
@media (max-width: 640px) {
  .product, .contact { padding-top: 16px; }
  .apply { max-width: none; flex-basis: 100%; padding: 18px; }
  .log-list li { grid-template-columns: 1fr auto; }
  /* 키워드 표는 폰에서 키워드마다 한 칸짜리 카드로 */
  .kw-table { overflow: visible; }
  .kw-table thead { display: none; }
  .kw-table table, .kw-table tbody { display: block; }
  .kw-table tr { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 12px; border-top: 1px solid var(--line); }
  .kw-table tr:first-child { border-top: 0; }
  .kw-table td { border: 0; padding: 0; min-width: 0; }
  .kw-table .kw-no { grid-row: span 3; color: var(--muted); }
  .kw-table .kw-name { font-weight: 700; color: var(--ink); }
  .log-list li > div { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .biz { gap: 0; }
  .biz-list { flex-direction: row; flex-wrap: wrap; }
  .biz-list li + li::before { content: '|'; margin: 0 14px; color: #4a5a70; }
}

@media (max-width: 640px) {
  .site-header-inner { padding: 10px 16px; gap: 6px 14px; }
  .brand img { height: 42px; }
  .btn-contact { margin-left: auto; padding: 0 14px; }
  .header-spacer { display: none; }
  .main-nav { order: 3; flex-basis: 100%; display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; gap: 0 12px; }
  .tab { flex: 1 1 auto; padding: 0 14px; }
  .tabs { gap: 8px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 36px 16px; }
  .catalog { padding-top: 24px; }
  .grid { gap: 16px; }
}
