/* 학생 첫 화면(응시표) + 학부모 안내 — index.html 전용. 교사 화면(teacher.html)은 이 파일을 읽지 않음 */

/* ---------- 학생 화면 토큰 맞춤 (시험 진행 화면 디자인은 그대로, 색·글꼴만) ---------- */
body.student {
  --navy: #14213d; --blue: #1f3a85; --mark: #ffd966; --peach: #ffd966;
  --paper: #fbfcff; --text: #1f2937; --line: #d8dfec; --muted: #5b6578; --bg: #f3f6fb;
  --serif: "Gowun Batang", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", serif;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--text);
}
body.student .bigmsg, body.student .centerbox h1 { font-family: var(--serif); font-weight: 700; }
body.student .brand { gap: 12px; padding: 12px 16px; }
body.student .brand b { font-family: var(--serif); font-size: 1.08rem; letter-spacing: 0; }
body.student .brand span { color: var(--mark); }
body.student .brand .brand-logo { height: 28px; width: auto; display: block; }
body.student .passage { border-left-color: var(--mark); }
body.student :focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

/* ---------- 첫 화면이 아닐 때는 안내를 숨김 ---------- */
#landing { display: none; }
body.lp-on #landing { display: block; }
body.lp-on { background: var(--paper); }
body.lp-on #app { max-width: none; padding: 0; }
body.lp-on .brand { padding: 14px 20px 0; }

/* ---------- 공통 ---------- */
.lp-in, .lp-wide { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.lp-in > * { max-width: 640px; }
.lp h2 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.72rem; line-height: 1.38; letter-spacing: -.01em; margin: 0 0 18px; word-break: keep-all; }
.lp h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.2rem; line-height: 1.45; margin: 0 0 6px; word-break: keep-all; }
.lp p { line-height: 1.78; word-break: keep-all; }
.lp-sec { padding: 72px 0; border-top: 1px solid var(--line); }
.lp-sec:first-child { border-top: 0; }
.lp-lead { font-size: 1.06rem; color: var(--text); }
.lp-note { font-size: .9rem; color: var(--muted); }
.lp a { color: var(--blue); text-underline-offset: 3px; }

/* ---------- 첫 화면: 약속 + 응시표 ---------- */
.hero { background: var(--navy); color: #fff; padding: 22px 0 56px; position: relative; }
.hero::after { /* 남색 띠 아래를 종이로 부드럽게 잇는 선 하나 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.08); }
.hero-in { max-width: 1040px; margin: 0 auto; padding: 0 20px; display: grid; gap: 26px; }
.hero-place { color: #c9d2e8; font-size: .92rem; margin: 0 0 10px; }
.hero-title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 2.05rem; line-height: 1.32; letter-spacing: -.015em; margin: 0 0 14px; word-break: keep-all; }
.hero-sub { color: #dfe5f3; font-size: 1.02rem; line-height: 1.75; margin: 0 0 18px; max-width: 30em; word-break: keep-all; }
.hero-parent { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-copy-tail { display: none; }

/* 응시표 */
.ticket { position: relative; background: #fff; color: var(--text); border-radius: 6px; max-width: 460px; width: 100%;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
.tk-main { padding: 20px 20px 22px; }
.tk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 16px; }
.tk-org { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 2px; }
.tk-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.42rem; color: var(--navy); line-height: 1.25; }
.tk-check { flex: none; width: 66px; height: 66px; border: 1px dashed #a9b4cc; display: grid; place-items: center; position: relative; }
.tk-check small { font-size: .7rem; color: #8a94ab; text-align: center; line-height: 1.3; }
.tk-stamp { position: absolute; inset: 5px; border: 2.5px solid var(--blue); border-radius: 50%; display: grid; place-items: center;
  color: var(--blue); font-family: var(--serif); font-weight: 700; font-size: .92rem; background: #fff; transform: rotate(-12deg) scale(.4); opacity: 0;
  transition: transform .28s cubic-bezier(.2,1.6,.4,1), opacity .18s; }
.tk-stamp::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid var(--blue); opacity: .45; }
.ticket.ready .tk-stamp { transform: rotate(-12deg) scale(1); opacity: 1; }
.ticket.ready .tk-check small { visibility: hidden; }
.tk-label { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 8px; }
.tk-cells { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); border: 1.5px solid var(--navy); }
.tk-cells span { height: 64px; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line); position: relative; }
.tk-cells span:first-child { border-left: 0; }
.tk-cells span.cur::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9px; height: 4px; background: var(--mark); }
.tk-cells span:empty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c8d0e0; }
.tk-cells input#codeIn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; text-align: left; outline: none; cursor: text; }
.tk-cells input#codeIn::selection { background: transparent; }
.tk-cells:focus-within { outline: 3px solid var(--mark); outline-offset: 2px; }
.tk-help { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.ticket .err { margin: 12px 0 0; border-radius: 4px; }
.tk-go { width: 100%; margin-top: 16px; min-height: 54px; font-size: 1.08rem; border-radius: 6px; background: var(--navy); border-color: var(--navy); }
.tk-go:hover { background: var(--blue); }
.tk-perf { position: relative; height: 0; border-top: 2px dashed #c3cbdc; margin: 0 14px; }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); }
.tk-perf::before { left: -26px; } .tk-perf::after { right: -26px; }
.tk-stub { padding: 14px 20px 16px; font-size: .92rem; color: var(--muted); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
.tk-stub a { color: var(--blue); font-weight: 700; display: inline-flex; min-height: 40px; align-items: center; }

/* ---------- 공감: 부모의 말 ---------- */
.voices { list-style: none; margin: 0 0 26px; padding: 0; }
.voices li { font-family: var(--serif); font-size: 1.14rem; line-height: 1.6; color: var(--navy); padding: 14px 0 14px 18px; border-left: 3px solid var(--line); word-break: keep-all; }
.voices li + li { margin-top: 4px; }

/* ---------- 관점 전환: 같은 ③, 다른 이유 ---------- */
.slips { display: grid; gap: 14px; margin: 26px 0 10px; }
.slip { border: 1px solid var(--line); background: #fff; padding: 16px 18px; display: grid; align-content: start; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.slip-who { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); font-weight: 700; }
.omr { display: flex; gap: 6px; }
.omr i { width: 26px; height: 34px; border: 1.5px solid #a9b4cc; border-radius: 13px; display: grid; place-items: center; font-style: normal; font-size: .8rem; color: #7a849b; }
.omr i.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.slip-ok { justify-self: end; font-family: var(--serif); font-weight: 700; color: var(--blue); font-size: 1.05rem; }
.slip-why { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }
.slip-why b { color: var(--navy); margin-right: 6px; }
.slip.b .slip-why span { color: #7b2a3f; }
.slips-cap { font-size: .88rem; color: var(--muted); margin: 0 0 24px; }

/* ---------- 진단이 보는 것 ---------- */
.views { margin: 8px 0 34px; }
.views > div { padding: 18px 0; border-top: 1px solid var(--line); }
.views > div:last-child { border-bottom: 1px solid var(--line); }
.views dt { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--navy); margin-bottom: 4px; }
.views dd { margin: 0; line-height: 1.75; word-break: keep-all; }
.ladder { display: grid; grid-template-columns: 108px 1fr; gap: 18px; align-items: center; margin: 26px 0 0; }
.rungs { display: grid; gap: 6px; }
.rungs i { display: block; height: 22px; border: 1.5px solid #b9c3d8; border-radius: 3px; position: relative; }
.rungs i.start { background: var(--navy); border-color: var(--navy); }
.rungs i.start::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--mark); }
.rungs i.up, .rungs i.down { border-style: dashed; }
.ladder-txt p { margin: 0 0 6px; }
.ladder-txt .u { color: var(--blue); font-weight: 700; }
.ladder-txt .d { color: var(--muted); font-weight: 700; }

/* ---------- 부모에게 보이는 것 ---------- */
.shots { display: grid; gap: 30px; margin-top: 30px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; line-height: 1.6; word-break: keep-all; }
.shot figcaption b { color: var(--navy); font-weight: 700; margin-right: 6px; }
.shot.report img { max-height: 760px; object-fit: cover; object-position: top; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phones img { border-radius: 14px; border: 6px solid var(--navy); max-height: 520px; object-fit: cover; object-position: top; }

/* ---------- 약속(남색 띠) ---------- */
.promise { background: var(--navy); color: #fff; padding: 76px 0; }
.promise h2 { color: #fff; }
.promise ol { list-style: none; margin: 26px 0 0; padding: 0; }
.promise li { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); }
.promise li strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: #fff; margin-bottom: 6px; word-break: keep-all; }
.promise li span { color: #cdd5e8; line-height: 1.75; display: block; word-break: keep-all; }

/* ---------- 진행 4단계 (번호는 여기에만) ---------- */
.steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 26px 58px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--navy);
  display: grid; place-items: center; font-weight: 800; color: var(--navy); background: var(--paper); z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--navy); color: var(--mark); }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; }

/* ---------- 묻고 답하기 ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.55; word-break: keep-all; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; }

/* ---------- 상담 예약 ---------- */
.book { background: #fff; }
.tel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 76px; padding: 12px 20px; margin: 24px 0 26px;
  background: var(--navy); color: #fff !important; text-decoration: none; border-radius: 6px; }
.tel small { color: #cdd5e8; font-size: .9rem; }
.tel b { font-size: 1.6rem; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.tel:hover { background: var(--blue); }
.qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qr { display: block; text-align: center; text-decoration: none; color: var(--text) !important; border: 1px solid var(--line); padding: 14px 10px 12px; border-radius: 6px; background: var(--paper); }
.qr img { width: 100%; max-width: 150px; height: auto; display: block; margin: 0 auto 8px; image-rendering: pixelated; }
.qr b { display: block; color: var(--navy); }
.qr small { color: var(--muted); font-size: .82rem; }
.b-qr { margin-top: 4px; }
.where { margin: 30px 0 0; display: grid; gap: 14px; }
.where div { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; }
.where dt { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.where dd { margin: 0; line-height: 1.6; word-break: keep-all; }
.lp-foot { padding: 30px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.lp-foot a { display: inline-flex; min-height: 40px; align-items: center; }

/* ---------- 태블릿·데스크톱 ---------- */
@media (min-width: 720px) {
  .lp h2 { font-size: 2.05rem; }
  .lp-sec { padding: 104px 0; }
  .slips { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 34px; }
  .shot.reco { grid-column: 1 / -1; }
  .phones { grid-column: 2; grid-row: 1; }
  .promise { padding: 104px 0; }
  .promise li strong { font-size: 1.7rem; }
  .qrs { grid-template-columns: 1fr 1fr; max-width: 420px; }
}
@media (min-width: 960px) {
  body.lp-on .brand { padding: 20px max(32px, calc((100vw - 1040px) / 2 + 32px)) 0; }
  .hero { padding: 44px 0 88px; }
  .hero-in { grid-template-columns: 1fr 440px; gap: 56px; align-items: center; padding: 0 32px; }
  .hero-title { font-size: 3rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero-copy-tail { display: block; color: #9fb0d4; font-size: .92rem; margin: 26px 0 0; }
  /* 넓은 화면: 제목은 왼쪽 단, 내용은 오른쪽 단 (모든 섹션이 같은 왼쪽 축) */
  .lp-in, .lp-wide { padding: 0 32px; }
  .lp-in { display: grid; grid-template-columns: 410px minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .lp-in > h2 { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 28px; font-size: 2rem; }
  .lp-in > *:not(h2) { grid-column: 2; }
  .lp-in > :nth-child(2) { margin-top: 6px; }
  .shots { grid-template-columns: 1.2fr 1fr; }
  .book-grid { display: grid; grid-template-columns: 410px minmax(0, 1fr); column-gap: 56px; align-items: start;
    grid-template-areas: "main qr" "main where"; }
  .b-main { grid-area: main; } .b-qr { grid-area: qr; } .where { grid-area: where; grid-template-columns: 1fr 1fr; max-width: 520px; }
  .b-main h2 { font-size: 2rem; }
  .b-qr .lp-note { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-stamp, .faq summary::after { transition: none; }
  html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }

.zoom { display: block; cursor: zoom-in; }
.zoom:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }

/* 로그인 우선: 휴대폰에서는 제목 바로 아래 응시표, 설명은 그 아래 */
.hero-in { grid-template-areas: "head" "ticket" "copy"; }
.hero-head { grid-area: head; } .hero-head .hero-title { margin-bottom: 0; }
.ticket { grid-area: ticket; } .hero-copy { grid-area: copy; }
@media (max-width: 719px) {
  .hero { padding: 16px 0 40px; }
  .hero-in { gap: 18px; }
  .hero-place { margin-bottom: 6px; }
  .hero-title { font-size: 1.62rem; }
  .hero-sub { font-size: .98rem; margin-bottom: 8px; }
}
@media (min-width: 960px) {
  .hero-in { grid-template-areas: "head ticket" "copy ticket"; grid-template-rows: auto 1fr; row-gap: 18px; }
  .hero-head { align-self: end; }
  .hero-copy { align-self: start; }
}
