/* 2차 메인 시안 그대로 */

:root {
  --ink: #0e3340; --ink2: #174655; --teal: #14887e; --mist: #eaf3f1; --line: #cfdedb; --soft: #557079; --paper: #fff;
  --career: #c04457; --study: #1d8b77; --mind: #3971b5; --skill: #c9811f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 Pretendard, "Malgun Gothic", sans-serif; word-break: keep-all; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--skill); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: "Noto Serif KR", serif; font-weight: 800; }
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }

/* 시안 표시 */
.wm { position: absolute; inset: 0; z-index: 9; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='300'%3E%3Ctext x='230' y='150' text-anchor='middle' transform='rotate(-24 230 150)' font-family='sans-serif' font-size='30' font-weight='700' fill='%23808080' fill-opacity='.22'%3Ewaydstudio 시안%3C/text%3E%3C/svg%3E"); }

/* 머리글 */
.head { display: flex; align-items: center; gap: 40px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; }
.mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--ink); color: #fff; font: 800 25px/1 "Noto Serif KR", serif; }
.logo b { display: block; font: 800 21px/1.2 "Noto Serif KR", serif; }
.logo small { display: block; color: var(--soft); font-size: 11px; line-height: 1.3; }
.nav { display: flex; gap: 32px; font-weight: 600; }
.nav a { padding: 8px 0; text-decoration: none; }
.nav a:hover { color: var(--teal); }
.login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 6px; font-weight: 700; text-decoration: none; }
.menu { display: none; }

/* 첫 화면: 실제 결과표가 주인공 */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; min-height: 620px; }
.pitch { align-self: center; padding: 56px 0 120px; }
.hero h1 { font-size: clamp(36px, 3.75vw, 54px); line-height: 1.3; letter-spacing: -.02em; }
.pitch p { max-width: 30em; margin: 24px 0 34px; color: #cfe3e2; font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; text-decoration: none; }
.btn.on { background: #fff; color: var(--ink); }
.btn.off { border-color: #7fa2a8; color: #fff; }
.sheets { position: relative; min-height: 620px; }
.sheets img { position: absolute; width: 112%; max-width: none; border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 18, 26, .5); }
.sheets img:nth-child(1) { left: 0; top: 268px; }
.sheets img:nth-child(2) { left: 16%; top: 150px; }
.sheets img:nth-child(3) { left: 32%; top: 36px; }

/* 검사 코드 */
.code { position: relative; z-index: 2; margin-top: -72px; }
.codeBox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 28px; padding: 26px 32px; border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: 6px; background: #fff; }
.codeBox h2 { font-size: 25px; line-height: 1.3; }
.codeBox p { margin: 2px 0 0; color: var(--soft); font-size: 15px; }
.codeForm { display: flex; gap: 8px; }
.codeForm input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 1px solid #9db6b3; border-radius: 6px; color: var(--ink); font: 500 18px Pretendard, sans-serif; }
.codeForm button { height: 56px; padding: 0 28px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font: 700 17px Pretendard, sans-serif; cursor: pointer; }
.result { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }

/* 바로 가기 */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-bottom: 1px solid var(--line); }
.route { padding: 4px 32px 40px; border-left: 1px solid var(--line); }
.route:first-child { padding-left: 0; border-left: 0; }
.route h3 { margin-bottom: 12px; font-size: 22px; }
.route a { display: flex; justify-content: space-between; align-items: center; min-height: 46px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--mist); }
.route a::after { content: "›"; color: var(--teal); font-size: 24px; line-height: 1; }
.route a:hover { color: var(--teal); }

/* 심리검사 */
.tests { padding: 88px 0; }
.testHead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; margin-bottom: 32px; }
.sec h2 { font-size: 40px; line-height: 1.25; letter-spacing: -.015em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 28px; height: 10px; }
.testHead .more { margin-left: auto; }
.more { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 700; text-underline-offset: 4px; }
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.row { display: block; padding: 22px 0 26px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bar { display: flex; gap: 3px; width: 96px; height: 11px; margin-bottom: 14px; }
.bar i { flex: 1; }
.row h3 { font-size: 24px; line-height: 1.35; }
.row small { display: block; margin-top: 2px; color: var(--soft); font-size: 14px; font-weight: 600; }
.row p { margin: 8px 0 12px; }
.row span { color: var(--teal); font-weight: 700; font-size: 15px; }
.row:hover h3 { color: var(--teal); }

/* 특수직무군 */
.special { background: var(--ink2); color: #fff; }
.special .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding-block: 52px; }
.special h2 { font-size: 34px; line-height: 1.3; }
.special p { margin: 10px 0 0; color: #d3e4e4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: #bfe6dd; font-size: 15px; font-weight: 600; }

/* 교육프로그램 */
.programs { padding: 88px 0; background: var(--mist); }
.progHead { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.progHead p { max-width: 24em; margin: 0; color: var(--soft); }
.progGrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; }
.prog { color: var(--ink); text-decoration: none; }
.prog img { display: block; width: 100%; height: 210px; object-fit: cover; border-radius: 4px; }
.prog small { display: block; margin-top: 16px; color: var(--teal); font-size: 14px; font-weight: 700; }
.prog h3 { font-size: 22px; line-height: 1.38; }
.prog p { margin: 6px 0 0; font-size: 16px; color: var(--soft); }
.prog:hover h3 { color: var(--teal); }
.progMore { margin-top: 34px; text-align: center; }
.outline { border-color: var(--ink); color: var(--ink); }

/* 바닥글 */
.foot { padding: 48px 0; background: var(--ink); color: #d3e4e4; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot .logo { margin: 0; color: #fff; }
.foot .logo small { color: #a8c4c6; }
.foot .mark { background: #fff; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot .btn { border-color: #7fa2a8; color: #fff; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: 700 15px Pretendard, sans-serif; }
  .head { gap: 8px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .head { height: 72px; }
  .logo b { font-size: 18px; }
  .logo small { display: none; }
  .mark { width: 40px; height: 40px; font-size: 22px; }
  .login { padding: 0 14px; font-size: 15px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .pitch { padding: 44px 0 30px; }
  .hero h1 { font-size: clamp(31px, 8.6vw, 44px); }
  .pitch p { margin: 18px 0 26px; font-size: 16px; }
  .cta .btn { flex: 1 1 140px; padding: 0 12px; }
  .sheets { min-height: 0; height: 78vw; }
  .sheets img { width: 88%; }
  .sheets img:nth-child(1) { left: 0; top: 40vw; }
  .sheets img:nth-child(2) { left: 12%; top: 20vw; }
  .sheets img:nth-child(3) { left: 24%; top: 0; }
  .code { margin-top: 0; padding-top: 24px; }
  .codeBox { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 20px; }
  .codeForm button { padding: 0 18px; }
  .result { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
  .routes { grid-template-columns: 1fr; margin-top: 36px; border-bottom: 0; }
  .route, .route:first-child { padding: 0 0 28px; border-left: 0; }
  .tests { padding: 40px 0 56px; }
  .testHead { display: block; margin-bottom: 24px; }
  .sec h2 { font-size: 31px; }
  .legend { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 6px; font-size: 15px; }
  .rows { grid-template-columns: 1fr; }
  .special .wrap { grid-template-columns: 1fr; gap: 22px; padding-block: 40px; }
  .special h2 { font-size: 28px; }
  .special .btn { width: 100%; }
  .programs { padding: 56px 0; }
  .progHead { display: block; margin-bottom: 26px; }
  .progHead p { margin-top: 10px; }
  .progGrid { grid-template-columns: 1fr; gap: 30px; }
  .prog img { height: 52vw; }
  .progMore .btn { width: 100%; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}

/* 글씨체: 제목·버튼·이름표는 주아, 본문은 고운돋움. 로고 한자 知는 그대로 */
:root { --cute: Jua, "Malgun Gothic", sans-serif; --soft-text: "Gowun Dodum", "Malgun Gothic", sans-serif; }
body, .codeForm input { font-family: var(--soft-text); }
h1, h2, h3, .logo b, .nav a, .login, .menu, .btn, .codeForm button, .result, .route a, .legend, .more, .row small, .row span, .chips, .prog small, .foot nav a { font-family: var(--cute); font-weight: 400; }
.hero h1 { letter-spacing: 0; line-height: 1.32; }
.sec h2 { letter-spacing: 0; }

/* 시연본 1차 화면 그대로 */
/* 시연본 화면: 2차 메인 시안의 색·글씨를 그대로 쓴다 */
:root { --emotion: #7d63a8; }
[hidden] { display: none !important; }
.demoNote { padding: 7px 16px; background: #fff5dc; color: #6d4b0d; font-size: 14px; text-align: center; }
.page { padding-block: 40px 88px; }
.narrow { width: min(760px, 100% - 64px); }
.pageTitle { font-size: 36px; line-height: 1.3; }
.pageLead { margin: 6px 0 24px; color: var(--soft); }
.steps { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: s; color: var(--soft); font: 400 16px var(--cute); }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--mist); font-size: 14px; }
.steps .now { color: var(--ink); }
.steps .now::before { background: var(--teal); color: #fff; }
.steps .did::before { background: var(--ink); color: #fff; content: "✓"; }
.levels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.levels button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 400 16px var(--cute); cursor: pointer; }
.levels .on { border-color: var(--ink); background: var(--ink); color: #fff; }
.buyGrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.filters input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #9db6b3; border-radius: 6px; color: var(--ink); font: 400 17px var(--soft-text); }
.areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.areas button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 400 16px var(--cute); cursor: pointer; }
.areas i { width: 12px; height: 12px; }
.areas button[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.areaHead { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; padding-bottom: 8px; font: 400 20px var(--cute); border-bottom: 3px solid var(--c); color: var(--c); }
.test { display: grid; grid-template-columns: minmax(0, 1fr) 118px 92px 84px; gap: 10px 12px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--line); }
.test.picked { background: linear-gradient(90deg, var(--mist), transparent 70%); box-shadow: -12px 0 0 var(--mist); }
.testInfo { align-self: center; }
.testInfo a { font: 400 19px var(--cute); text-underline-offset: 3px; }
.testInfo b { margin-left: 8px; color: var(--teal); font: 400 16px var(--cute); white-space: nowrap; }
.testInfo p { margin: 2px 0 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
.test label { display: block; color: var(--soft); font-size: 13px; }
.test select, .test input { display: block; width: 100%; height: 44px; margin-top: 2px; padding: 0 8px; border: 1px solid #9db6b3; border-radius: 6px; background: #fff; color: var(--ink); font: 400 16px var(--soft-text); }
.empty { padding: 28px 0; color: var(--soft); }
.cart { position: sticky; top: 16px; padding: 22px; border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: 6px; background: #fff; }
.cart h2 { display: flex; justify-content: space-between; align-items: center; font: 400 22px var(--cute); }
.cart h2 span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 15px; background: var(--ink); color: #fff; font-size: 16px; }
.cartEmpty { margin: 10px 0; color: var(--soft); font-size: 15px; }
.cartItem { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 10px 0; border-bottom: 1px solid var(--mist); font-size: 15px; }
.cartItem b { font: 400 17px var(--cute); }
.cartItem button { grid-row: span 2; align-self: center; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--soft); font-size: 22px; cursor: pointer; }
.cartItem small { color: var(--soft); font-size: 14px; }
.sum { margin: 14px 0; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum dd { margin: 0; }
.sum .total dd { font: 400 26px var(--cute); color: var(--ink); }
.btn.solid { background: var(--teal); color: #fff; border: 1px solid var(--teal); cursor: pointer; }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--ink); cursor: pointer; }
button.btn { font: 400 17px var(--cute); }
.cart .btn { width: 100%; }
.cartBar { display: none; }
.err { margin: 12px 0; padding: 10px 14px; border-radius: 6px; background: #fbe9ec; color: #8e2f40; font-size: 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { font: 400 16px var(--cute); }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { display: block; width: 100%; min-height: 50px; margin-top: 4px; padding: 10px 14px; border: 1px solid #9db6b3; border-radius: 6px; background: #fff; color: var(--ink); font: 400 17px var(--soft-text); }
.fields .bad { border-color: var(--career); box-shadow: inset 0 0 0 1px var(--career); }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.actions.center { justify-content: center; }
.review { width: 100%; border-collapse: collapse; font-size: 16px; }
.review th, .review td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.review th { font: 400 15px var(--cute); color: var(--soft); white-space: nowrap; }
.review .num { text-align: right; white-space: nowrap; }
.reviewSum { display: flex; justify-content: flex-end; gap: 14px; align-items: baseline; margin: 12px 0 22px; }
.reviewSum b { font: 400 28px var(--cute); }
.info { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0 0 18px; }
.info dt { color: var(--soft); }
.info dd { margin: 0; word-break: break-all; }
.agree { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.agree input { width: 22px; height: 22px; accent-color: var(--teal); }
.doneBox { padding: 40px 24px; border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: 6px; text-align: center; }
.doneBox strong { display: block; margin: 2px 0 12px; font: 400 34px var(--cute); color: var(--teal); }
.hint { margin: 10px 0; color: var(--soft); font-size: 15px; }
.adminGrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tableWrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
#appTable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
#appTable th { padding: 12px; background: var(--mist); font: 400 15px var(--cute); text-align: left; white-space: nowrap; }
#appTable td { padding: 13px 12px; border-top: 1px solid var(--line); }
#appTable tbody tr { cursor: pointer; }
#appTable tbody tr:hover { background: #f5faf9; }
#appTable tr.sel { background: var(--mist); }
#appTable tr.fresh td:first-child { box-shadow: inset 4px 0 0 var(--skill); }
.tag { display: inline-block; padding: 1px 9px; border-radius: 11px; background: var(--mist); font-size: 14px; white-space: nowrap; }
.tag.ok { background: #d9f1ea; color: #126657; }
.tag.wait { background: #fff0d6; color: #7a4f0e; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.panel h2 { margin-bottom: 10px; font: 400 21px var(--cute); }
.panel select { width: 100%; height: 46px; margin: 4px 0 12px; padding: 0 10px; border: 1px solid #9db6b3; border-radius: 6px; font: 400 16px var(--soft-text); color: var(--ink); background: #fff; }
.panel .btn { width: 100%; }
.codeShow { margin: 10px 0 0; padding: 12px; border-radius: 6px; background: var(--mist); text-align: center; font: 400 22px var(--cute); }
.linkBtn { min-height: 44px; margin-top: 12px; border: 0; background: none; color: var(--soft); font: 400 15px var(--soft-text); text-decoration: underline; cursor: pointer; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: start; }
.detail img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; }
.detailBack { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; color: var(--teal); font: 400 16px var(--cute); }
.noSheet { padding: 60px 20px; border: 1px dashed #9db6b3; border-radius: 6px; color: var(--soft); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 15px; }
@media (max-width: 1080px) {
  .head { position: relative; }
  .head.open .nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; display: grid; gap: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .head.open .nav a { display: flex; align-items: center; min-height: 46px; }
}
@media (max-width: 960px) {
  .buyGrid, .adminGrid, .detail { grid-template-columns: minmax(0, 1fr); }
  .buyGrid .cart { display: none; }
  .cartBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(14, 51, 64, .1); }
  .cartBar b { font: 400 22px var(--cute); display: block; line-height: 1.2; }
  .cartBar small { color: var(--soft); }
  .cartBar .btn { flex: none; min-height: 50px; }
  section[data-route=buy] .page { padding-bottom: 110px; }
}
@media (max-width: 860px) {
  .narrow { width: calc(100% - 40px); }
  .page { padding-block: 28px 56px; }
  .pageTitle { font-size: 28px; }
  .test { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testInfo { grid-column: 1 / -1; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 140px; }
  .demoNote { font-size: 13px; }
  .toast { bottom: 96px; }
}
