/* 바로쌤 — 공통 스타일 (밝고 부드러운 톤) */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --soft: #eef2f7;
  --soft-2: #f9fafc;
  --ink: #2b2f36;
  --muted: #687486;
  --hint: #9aa4b2;
  --line: #e6ebf1;
  --line-2: #d6dde6;

  --blue: #3f8fd6;
  --blue-bg: #e8f2fc;
  --blue-deep: #1f6bb0;
  --teal: #1fa385;
  --teal-bg: #e1f5ef;
  --purple: #6a61cf;
  --purple-bg: #eeecfb;
  --purple-deep: #4e44b0;
  --amber: #d8901f;
  --amber-bg: #fbf0d9;
  --coral: #ef8a6a;
  --coral-bg: #fdeee7;
  --green: #4f9d2f;
  --red: #d9534f;

  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow: 0 1px 2px rgba(28,50,90,0.04), 0 6px 20px rgba(28,50,90,0.05);
  --shadow-sm: 0 1px 3px rgba(28,50,90,0.06);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
strong { font-weight: 600; }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 1.5rem; }
.sec { padding: 3.5rem 0; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,251,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 620px; margin: 0 auto; padding: 12px 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { background: var(--soft); color: var(--ink); }
.nav-links a.active { color: var(--blue-deep); background: var(--blue-bg); }

/* ---- type ---- */
h1 { font-size: 36px; font-weight: 700; line-height: 1.28; margin: 0 0 1rem; letter-spacing: -0.025em; }
h2 { font-size: 23px; font-weight: 700; line-height: 1.35; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.accent { color: var(--blue); }
.lead { font-size: 16.5px; color: var(--muted); line-height: 1.7; max-width: 470px; margin: 0 auto; }
.sub { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0 auto 2rem; max-width: 460px; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 500; padding: 6px 14px; background: var(--blue-bg); color: var(--blue-deep); border-radius: 999px; margin-bottom: 1.25rem; }
.eyebrow-hero { font-size: 16px; font-weight: 700; padding: 9px 20px; letter-spacing: -0.01em; box-shadow: 0 2px 8px rgba(43,108,176,0.12); }
.signup-hint { display: flex; flex-direction: column; gap: 8px; align-items: center; margin: 0 auto 1.3rem; font-size: 13px; color: var(--muted); }
.signup-hint span { display: inline-flex; align-items: center; gap: 7px; }
.signup-hint i { color: var(--blue); font-size: 15px; }

/* ---- hero ---- */
.hero { text-align: center; padding: 4rem 0 3rem; }

/* ---- pain rows ---- */
.pain { display: flex; flex-direction: column; gap: 8px; margin-top: 1.5rem; }
.pain-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; box-shadow: var(--shadow-sm); }
.pain-time { font-size: 12px; color: var(--hint); font-variant-numeric: tabular-nums; min-width: 42px; }
.pain-txt { font-size: 14px; flex: 1; line-height: 1.4; }
.tag { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.tag-miss { background: #fbe3e2; color: #b23b37; }
.tag-far { background: #fbeccd; color: #97650d; }

/* ---- feature rows ---- */
.feat { display: flex; gap: 15px; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.feat:first-of-type { border-top: none; }
.feat-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 23px; flex-shrink: 0; }
.feat-t { font-size: 16.5px; font-weight: 600; margin: 0 0 4px; }
.feat-d { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---- school flip block ---- */
.flip { background: var(--purple-bg); border-radius: var(--r-xl); padding: 2.25rem 1.5rem; }
.flip-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 5px 12px; background: var(--surface); color: var(--purple-deep); border-radius: 999px; margin-bottom: 12px; }
.ba { display: flex; align-items: stretch; gap: 10px; margin: 1.4rem 0; }
.ba-card { flex: 1; background: var(--surface); border-radius: var(--r); padding: 16px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.ba-lab { font-size: 11.5px; color: var(--hint); margin-bottom: 6px; }
.ba-big { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ba-arrow { display: flex; align-items: center; color: var(--purple); font-size: 22px; }

/* ---- mini report ---- */
.report { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.rep-head { background: var(--purple); padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; }
.rep-title { font-size: 14px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 6px; }
.rep-meta { font-size: 11px; color: #e7e4fb; }
.rep-job { font-size: 12px; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--soft-2); }
.cand { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cand-top { background: var(--amber-bg); }
.cand-rank { width: 23px; height: 23px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; background: var(--soft); color: var(--muted); }
.cand-rank-1 { background: var(--amber); color: #fff; }
.cand-name { font-size: 13px; font-weight: 600; min-width: 50px; }
.cand-chips { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.chip { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); }
.cand-score { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
.rep-foot { padding: 12px 16px; font-size: 12.5px; color: var(--blue-deep); text-align: center; font-weight: 500; }
.rep-foot a { text-decoration: none; }

/* ---- perks ---- */
.perk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; margin-bottom: 12px; display: flex; gap: 15px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.perk-ico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.perk-t { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.perk-d { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
.counter { text-align: center; background: var(--blue-bg); border-radius: var(--r-lg); padding: 1.4rem; margin-top: 1.5rem; }
.counter-num { font-size: 30px; font-weight: 700; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.counter-bar { height: 9px; background: rgba(255,255,255,0.7); border-radius: 999px; margin: 12px auto 7px; max-width: 340px; overflow: hidden; }
.counter-fill { height: 100%; background: var(--blue); border-radius: 999px; transition: width 1s ease; }
.counter-cap { font-size: 12.5px; color: var(--blue-deep); }

/* ---- forms ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.field { margin-bottom: 13px; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input { height: 44px; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63,143,214,0.16); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 13px 18px; border-radius: var(--r); border: 1px solid transparent; transition: transform .08s, background .15s;
}
.btn:active { transform: scale(0.99); }
.btn-primary { background: var(--blue); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); }
.form-note { font-size: 12px; color: var(--hint); text-align: center; margin: 11px 0 0; }

/* ---- board ---- */
.board-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 9px; box-shadow: var(--shadow-sm); }
.board-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.board-av { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-bg); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.board-name { font-size: 13px; font-weight: 600; }
.board-date { font-size: 11px; color: var(--hint); margin-left: auto; }
.board-pin { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); }
.board-txt { font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---- demo: teacher scoring ---- */
.demo-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.ctrl { margin-bottom: 1.1rem; }
.ctrl:last-child { margin-bottom: 0; }
.ctrl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ctrl-label { font-size: 13.5px; font-weight: 600; }
.ctrl-val { font-size: 13px; font-weight: 600; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: var(--soft); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); cursor: pointer; box-shadow: 0 1px 4px rgba(28,50,90,0.25); border: 2px solid #fff; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 2px solid #fff; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { font-family: inherit; font-size: 13px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .12s; }
.seg button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.rank-list { position: relative; }
.rank-card {
  position: absolute; left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; display: flex; align-items: center; gap: 13px;
  box-shadow: var(--shadow-sm); transition: top .45s cubic-bezier(.4,0,.2,1), border-color .3s, box-shadow .3s;
}
.rank-card.is-top { border-color: var(--teal); box-shadow: 0 2px 8px rgba(31,163,133,0.18); }
.rank-num { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--soft); color: var(--muted); }
.rank-card.is-top .rank-num { background: var(--teal); color: #fff; }
.rank-body { flex: 1; min-width: 0; }
.rank-name { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.rank-meta { font-size: 12px; color: var(--muted); margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.rank-meta .ok { color: var(--teal); font-weight: 600; }
.rank-meta .no { color: var(--hint); }
.rank-score { text-align: right; flex-shrink: 0; }
.rank-score .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.rank-score .l { font-size: 10.5px; color: var(--hint); }

/* ---- demo: principal report ---- */
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 1.3rem; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 15px; box-shadow: var(--shadow-sm); }
.metric .l { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.metric .n { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric .n small { font-size: 13px; font-weight: 500; color: var(--hint); }

.dist { display: flex; flex-direction: column; gap: 9px; }
.dist-row { display: flex; align-items: center; gap: 10px; }
.dist-lab { font-size: 12px; color: var(--muted); min-width: 64px; }
.dist-track { flex: 1; height: 22px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.dist-bar { height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 9px; color: #fff; font-size: 11px; font-weight: 600; transition: width .8s ease; white-space: nowrap; }
.dist-cnt { font-size: 12px; color: var(--muted); min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }

.insight { display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.insight:first-child { border-top: none; }
.insight-ico { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.insight-t { font-size: 14px; line-height: 1.55; margin: 0; }

.more-list { display: none; margin-top: 10px; }
.more-list.open { display: block; }
.more-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.more-row .r { color: var(--hint); min-width: 26px; }
.more-row .nm { font-weight: 600; min-width: 50px; }
.more-row .mt { color: var(--muted); flex: 1; }
.more-row .sc { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- cross-office (교육청 분산) ---- */
.cross { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.cross-home { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 8px 15px; background: var(--soft); border-radius: 999px; margin-bottom: 1.1rem; }
.cross-lines { display: flex; flex-direction: column; gap: 9px; }
.cross-line { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: var(--soft-2); border-radius: var(--r); }
.cross-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cross-office { font-size: 14.5px; font-weight: 600; flex: 1; }
.cross-sep { font-size: 12px; color: var(--hint); }
.cross-pain { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 13.5px; color: var(--red); margin: 1.1rem 0 0; }
.cross-fix { text-align: center; margin-top: 1.3rem; }
.cross-fix-t { font-size: 16px; margin: 8px 0 6px; }
.cross-fix-d { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 470px; margin: 0 auto; }

footer { text-align: center; padding: 2.5rem 1.5rem 3rem; font-size: 12.5px; color: var(--hint); line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  .nav-links a { padding: 6px 7px; }
}
