/* js2math 첫 화면 (templates/landing.html)
   어두운 남색 머리(빛 번짐) 위에 소개와 로그인, 그 아래로 제품 화면이 걸쳐 내려오고, 흰 바탕의 기능 소개가 이어진다.
   글꼴은 Pretendard 하나. 강조색은 파랑, 민트는 마크의 '2'와 '담김' 표시에만. */
:root {
    --navy: #070b24; --navy-2: #0e1540;
    --ink: #0f1734; --mute: #5f6a8a; --faint: #98a1bb;
    --line: #e4e8f1; --bg: #f4f6fb; --white: #fff;
    --blue: #3461ff; --blue-d: #2048e6; --blue-soft: #eaf0ff;
    --mint: #45e3b8; --red: #e5484d; --green: #0e9f6e;
    --font: 'Pretendard Variable', 'Pretendard', -apple-system, 'Segoe UI', 'Malgun Gothic', sans-serif;
    --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -.015em; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; letter-spacing: inherit; }

/* ── 마크: js² ── */
.js2-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 3px 3px 0 0; border-radius: 11px; background: linear-gradient(145deg, #4a74ff, #2445e0); color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.06em; line-height: 1; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.js2-mark sup { position: relative; top: -.42em; margin-left: .04em; font-size: .62em; font-weight: 800; color: var(--mint); vertical-align: baseline; }
.lp-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.lp-word { font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.lp-logo.dark { color: var(--ink); }
.lp-logo.dark .js2-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.lp-logo.dark .lp-word { font-size: 17px; }

/* ── 머리 ── */
.lp-hero { position: relative; background: var(--navy); color: #fff; padding: 0 24px; }
.lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 230px; background: var(--white); }
.lp-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lp-glow::before, .lp-glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); }
.lp-glow::before { width: 720px; height: 720px; left: -180px; top: -260px; background: #2b4dff; opacity: .5; }
.lp-glow::after { width: 620px; height: 620px; right: -120px; top: 120px; background: #16b8a0; opacity: .22; }
.lp-hero > :not(.lp-glow) { position: relative; z-index: 1; }

.lp-top { display: flex; align-items: center; gap: 36px; max-width: var(--wrap); margin: 0 auto; height: 84px; }
.lp-nav { display: flex; gap: 28px; margin-right: auto; }
.lp-nav a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 15px; font-weight: 500; }
.lp-nav a:hover { color: #fff; }
.lp-top-act { display: flex; gap: 8px; }

.lp-btn { height: 44px; padding: 0 20px; border: 0; border-radius: 11px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .12s, transform .12s; }
.lp-btn.ghost { background: transparent; color: #fff; }
.lp-btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.lp-btn.white { background: #fff; color: var(--ink); }
.lp-btn.white:hover { background: #e9edfa; }
.lp-btn.white.big { height: 56px; padding: 0 34px; border-radius: 14px; font-size: 17px; }
.lp-btn.primary { background: var(--blue); color: #fff; }
.lp-btn.primary:hover { background: var(--blue-d); }
.lp-btn.block { width: 100%; height: 52px; border-radius: 12px; font-size: 16px; }
.lp-btn.line { height: 50px; padding: 0 16px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.lp-btn.line:hover { background: var(--bg); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn:disabled { opacity: .55; cursor: default; }
.lp-btn:focus-visible, .lp-link:focus-visible, .lp-nav a:focus-visible, .lp-logo:focus-visible { outline: 3px solid rgba(110, 146, 255, .7); outline-offset: 3px; }

.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 56px 0 72px; }
.lp-pitch h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; line-height: 1.16; letter-spacing: -.05em; }
.lp-pitch p { margin-top: 24px; max-width: 29em; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; color: rgba(255, 255, 255, .7); }
.lp-stats { display: flex; gap: 0; margin-top: 44px; }
.lp-stats > div { padding-right: 36px; }
.lp-stats > div + div { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .16); }
.lp-stats dd { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.lp-stats dt { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .58); }

/* 로그인 카드 */
.lp-auth { background: var(--white); color: var(--ink); border-radius: 22px; padding: 34px 32px 30px; box-shadow: 0 40px 90px rgba(3, 6, 30, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.lp-form { display: flex; flex-direction: column; gap: 14px; }
.lp-form[hidden] { display: none; }
.lp-form h2 { margin-bottom: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.lp-form label, .lp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lp-form label > span, .lp-field > span { font-size: 13px; font-weight: 600; color: var(--mute); }
.lp-form input[type=text], .lp-form input[type=password], .lp-form input[type=tel] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15.5px; transition: border-color .12s, box-shadow .12s, background .12s; }
.lp-form input::placeholder { color: var(--faint); }
.lp-form input:hover { border-color: #cdd5e8; }
.lp-form input:focus { outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52, 97, 255, .15); }
.lp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-hint { font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.lp-hint.good { color: var(--green); font-weight: 600; }
.lp-hint.bad { color: var(--red); font-weight: 600; }
.lp-form .lp-check { flex-direction: row; align-items: center; gap: 9px; cursor: pointer; }
.lp-form .lp-check span { font-size: 14px; font-weight: 500; color: var(--mute); }
.lp-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.lp-msg { padding: 10px 12px; border-radius: 10px; background: #fff1f1; color: #c2292e; font-size: 14px; font-weight: 600; line-height: 1.5; }
.lp-msg:empty { display: none; }
.lp-switch { margin-top: 2px; text-align: center; font-size: 14.5px; color: var(--mute); }
.lp-link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; }
.lp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp-note { padding: 13px 15px; border-radius: 12px; background: var(--bg); color: var(--mute); font-size: 13.5px; line-height: 1.6; }
.lp-note b { color: var(--ink); font-weight: 700; }

/* ── 제품 화면 ── */
.lp-shot { max-width: var(--wrap); margin: 0 auto; padding-bottom: 8px; }
.lp-win { background: var(--white); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 110px rgba(8, 14, 48, .38), 0 0 0 1px rgba(15, 23, 52, .08); font-size: 13.5px; }
.lp-win-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; background: #f1f3f9; border-bottom: 1px solid var(--line); }
.lp-win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d9e8; }
.lp-win-bar span { margin-left: 12px; font-size: 13px; font-weight: 600; color: var(--mute); }
.lp-win-body { display: grid; grid-template-columns: 232px minmax(0, 1fr) 236px; min-height: 420px; }
.lp-tree { padding: 16px 12px; background: #fafbfe; border-right: 1px solid var(--line); }
.lp-select { margin-bottom: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font-weight: 700; }
.lp-tree li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.lp-tree li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tree li.sub { padding-left: 22px; color: var(--mute); font-weight: 500; }
.lp-tree li i { font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 500; }
.lp-tree li.on { background: var(--blue-soft); color: var(--blue-d); font-weight: 700; }
.lp-tree li.on i { color: var(--blue-d); }
.lp-list { padding: 16px; min-width: 0; }
.lp-list-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.lp-list-bar b { margin-right: auto; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-pill { padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lp-pill.on { background: var(--ink); color: #fff; }
.lp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-prob { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; min-width: 0; }
.lp-prob header { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.lp-tag { padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--mute); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lp-tag.blue { background: var(--blue-soft); color: var(--blue-d); }
.lp-add { margin-left: auto; height: 26px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 12px; font-weight: 700; pointer-events: none; }
.lp-add.done { border-color: transparent; background: #dcf9ef; color: #07785a; }
.lp-prob p { font-size: 13.5px; line-height: 1.75; }
.lp-prob .m { font-family: 'Cambria Math', 'Latin Modern Math', 'Times New Roman', serif; font-style: italic; font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.lp-prob .m sup { font-size: .68em; }
.lp-prob ol { display: flex; margin-top: 8px; counter-reset: c; }
.lp-prob ol li { flex: 1; counter-increment: c; font-size: 13px; }
.lp-prob ol li::before { content: counter(c); display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border: 1px solid var(--faint); border-radius: 50%; font-size: 10px; color: var(--mute); }
.lp-basket { display: flex; flex-direction: column; padding: 16px 14px; background: #fafbfe; border-left: 1px solid var(--line); }
.lp-basket-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.lp-basket-head b { font-size: 15px; }
.lp-basket-head span { font-size: 12.5px; font-weight: 700; color: var(--blue-d); }
.lp-basket ol { counter-reset: n; display: flex; flex-direction: column; gap: 6px; }
.lp-basket ol li { counter-increment: n; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-basket ol li::before { content: counter(n); font-weight: 800; color: var(--faint); width: 12px; flex: none; }
.lp-basket ol li.new { border-color: #b9c9ff; background: var(--blue-soft); }
.lp-basket ol li.new::before { color: var(--blue-d); }
.lp-basket-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 14px; }
.lp-basket-foot span { padding: 9px 0; border-radius: 9px; text-align: center; font-size: 12.5px; font-weight: 700; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.lp-basket-foot span.dark { background: var(--ink); color: #fff; box-shadow: none; }

/* ── 기능 ── */
.lp-main { background: var(--white); }
.lp-sec { max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 0; }
.lp-sec > h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 800; letter-spacing: -.045em; line-height: 1.24; }
.lp-bento { margin-top: 52px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lp-tile { display: flex; flex-direction: column; padding: 32px 32px 30px; border-radius: 24px; background: var(--bg); min-width: 0; overflow: hidden; }
.lp-tile h3 { font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.lp-tile p { margin-top: 10px; max-width: 34em; color: var(--mute); font-size: 15.5px; line-height: 1.7; }
.t-a { grid-column: span 7; } .t-b { grid-column: span 5; }
.t-c { grid-column: span 5; } .t-d { grid-column: span 7; }
.t-e { grid-column: span 5; } .t-f { grid-column: span 7; }
.t-b { background: var(--navy); color: #fff; }
.t-b p { color: rgba(255, 255, 255, .68); }
.t-e { background: var(--blue); color: #fff; justify-content: flex-end; min-height: 220px; }
.t-e p { color: rgba(255, 255, 255, .82); }

.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.lp-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(15, 23, 52, .06); }
.lp-chips i { font-style: normal; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lp-chips span.on { background: var(--blue); color: #fff; }
.lp-chips span.on i { color: rgba(255, 255, 255, .75); }

.lp-mini { margin-top: 28px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 14px; }
.lp-mini-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .7); }
.lp-mini-row b { font-size: 22px; font-weight: 800; color: #fff; }
.lp-levels { display: flex; gap: 5px; }
.lp-levels i { width: 30px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.lp-levels i.on { background: var(--mint); }
.lp-mini-btn { padding: 12px 0; border-radius: 11px; background: var(--blue); text-align: center; font-size: 14.5px; font-weight: 700; }

.lp-match, .lp-files, .lp-roster { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.lp-match li, .lp-files li, .lp-roster li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--white); font-size: 14px; box-shadow: 0 1px 2px rgba(15, 23, 52, .06); min-width: 0; }
.lp-match b { width: 36px; flex: none; font-weight: 800; }
.lp-match span, .lp-files span, .lp-roster span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.lp-match em, .lp-roster em { font-style: normal; flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.lp-match em.same { background: #dcf9ef; color: #07785a; }
.lp-match em.var { background: #fff0d9; color: #a35a00; }
.lp-files i { font-style: normal; flex: none; width: 44px; padding: 4px 0; border-radius: 7px; text-align: center; font-size: 11.5px; font-weight: 800; color: #fff; }
.lp-files i.pdf { background: #e5484d; } .lp-files i.hwp { background: #2f7cf6; } .lp-files i.img { background: #8a63ff; }
.lp-files b { flex: none; font-size: 13px; font-weight: 700; color: var(--mute); }
.lp-roster i { font-style: normal; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-d); font-size: 13px; font-weight: 800; }
.lp-roster em { background: var(--bg); color: var(--mute); }

.lp-steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-steps li { padding: 30px 30px 32px; border-radius: 24px; border: 1px solid var(--line); }
.lp-steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-d); font-size: 16px; font-weight: 800; }
.lp-steps h3 { margin-top: 20px; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.lp-steps p { margin-top: 8px; color: var(--mute); font-size: 15.5px; }

.lp-cta { position: relative; overflow: hidden; max-width: calc(var(--wrap) - 48px); margin: 120px auto 0; padding: 76px 32px; border-radius: 32px; background: var(--navy); color: #fff; text-align: center; }
.lp-cta > :not(.lp-glow) { position: relative; }
.lp-cta h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.25; }
.lp-cta .lp-btn { margin-top: 30px; }
.lp-glow.small::before { width: 520px; height: 520px; left: -140px; top: -300px; opacity: .55; }
.lp-glow.small::after { width: 420px; height: 420px; right: -100px; top: 60px; opacity: .25; }

.lp-footer { display: flex; align-items: center; gap: 14px; max-width: var(--wrap); margin: 88px auto 0; padding: 28px 24px 48px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }

/* ── 좁은 화면 ── */
@media (max-width: 1080px) {
    .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; }
    .lp-auth { max-width: 460px; width: 100%; }
    .lp-win-body { grid-template-columns: 200px minmax(0, 1fr); }
    .lp-basket { display: none; }
    .t-a, .t-b, .t-c, .t-d, .t-e, .t-f { grid-column: span 6; }
}
@media (max-width: 760px) {
    .lp-nav { display: none; }
    .lp-top { height: 68px; }
    .lp-top-act { margin-left: auto; }
    .lp-top-act .ghost { display: none; }
    .lp-hero { padding: 0 18px; }
    .lp-hero::after { height: 120px; }
    .lp-stats > div { padding-right: 18px; }
    .lp-stats > div + div { padding-left: 18px; }
    .lp-win-body { grid-template-columns: 1fr; min-height: 0; }
    .lp-tree { display: none; }
    .lp-cards { grid-template-columns: 1fr; }
    .lp-cards .lp-prob:nth-child(n+3) { display: none; }
    .lp-list-bar .lp-pill:not(.on) { display: none; }
    .lp-bento { grid-template-columns: 1fr; }
    .t-a, .t-b, .t-c, .t-d, .t-e, .t-f { grid-column: auto; }
    .lp-tile { padding: 26px 22px; border-radius: 20px; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-sec { padding-top: 84px; }
    .lp-cta { margin: 84px 18px 0; padding: 56px 22px; border-radius: 24px; }
    .lp-auth { padding: 28px 22px 24px; border-radius: 20px; }
    .lp-two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-form input, .lp-btn { transition: none; }
}
