/* 로그인 전 화면(가입·로그인·약관·채널 연결) 공통 — 메인페이지와 같은 색·글꼴 */
body.pub {
    --pub-ink: #15213b;
    --pub-ink-2: #46526a;
    --pub-ink-3: #6a7489;
    --pub-brand: #2449c4;
    --pub-brand-deep: #1a3596;
    --pub-brand-soft: #eaf0ff;
    --pub-mica: #f2f5fa;
    --pub-line: #dce3ee;
    --pub-ok: #0d7a46;
    --pub-night: #13234a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
    background: var(--pub-mica);
    color: var(--pub-ink);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    word-break: keep-all;
}
body.pub.app-onboarding { font-size: 14px; }
.pub :where(a) { color: var(--pub-brand); }
.pub :focus-visible { outline: 3px solid rgba(36, 73, 196, .45); outline-offset: 2px; }
.pub-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--pub-brand); color: #fff; font-weight: 700; }
.pub-skip:focus { top: 12px; color: #fff; }
.pub-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.pub-glyph { display: inline-flex; width: 20px; height: 20px; flex: none; }
.pub-glyph svg, .pub-help-icon svg { width: 100%; height: 100%; display: block; }

/* 머리글 */
.pub-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--pub-line); }
.pub-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.pub .pub-brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; color: var(--pub-ink); text-decoration: none; font-size: 16px; }
.pub .pub-brand .brand-logo { width: 40px; height: 40px; padding: 0; border-radius: 0; background: none; }
.pub-brand-name { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.pub-brand-desc { padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--pub-line); color: var(--pub-ink-3); font-size: 14px; font-weight: 500; }
.pub-header-actions { display: flex; align-items: center; gap: 20px; }
.pub .pub-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--pub-ink); font-size: 19px; font-weight: 800; text-decoration: none; letter-spacing: 0.01em; }
.pub-phone .pub-glyph { color: var(--pub-brand); }
.pub .pub-link { color: var(--pub-ink-2); font-size: 16px; font-weight: 600; text-decoration: none; }
.pub .pub-link:hover { color: var(--pub-brand); }
.pub .pub-cta { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 10px; background: var(--pub-brand); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.pub .pub-cta:hover { background: var(--pub-brand-deep); color: #fff; }

/* 본문 */
.pub-body { flex: 1 0 auto; padding: 48px 0 72px; background: linear-gradient(180deg, #f7f9fd 0%, var(--pub-mica) 320px); }
.pub-grid { display: flex; justify-content: center; }
.pub .pub-main { width: 100%; max-width: 560px; margin: 0; padding: 40px; border: 1px solid var(--pub-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(21, 33, 59, .04), 0 12px 32px rgba(21, 33, 59, .06); box-sizing: border-box; }
.pub .pub-main > a { display: inline-block; margin-top: 8px; font-size: 16px; font-weight: 600; text-align: left; }
.pub .pub-main .notice { font-size: 16px; }

/* 가입·로그인 */
.pub-body-auth .pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: start; }
.pub-body-auth .pub-main { max-width: none; }
.pub .auth-head h1 { margin: 0 0 8px; color: var(--pub-ink); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.pub .auth-head p { margin: 0 0 8px; color: var(--pub-ink-2); font-size: 17px; }
.pub .auth-form { margin-top: 24px; }
.pub .auth-form .field { max-width: none; margin: 0 0 20px; color: var(--pub-ink); font-size: 16px; font-weight: 700; }
.pub .auth-form .input { height: 54px; margin-top: 8px; padding: 0 16px; border: 1px solid #c6cfdd; border-radius: 10px; color: var(--pub-ink); font-size: 18px; font-weight: 500; box-sizing: border-box; }
.pub .auth-form .input:hover { border-color: #9fabbf; }
.pub .auth-form .input:focus { border-color: var(--pub-brand); outline: 3px solid rgba(36, 73, 196, .18); outline-offset: 0; }
.pub .auth-form .input::placeholder { color: #9aa3b5; font-weight: 400; }
.pub .field-help { display: block; margin-top: 6px; color: var(--pub-ink-3); font-size: 14px; font-weight: 500; }
.pub .auth-consent { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--pub-line); border-radius: 12px; background: #f8fafd; }
.pub .auth-consent legend { padding: 0 6px; margin-left: -6px; color: var(--pub-ink); font-size: 16px; font-weight: 700; }
.pub .auth-check { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--pub-ink); font-size: 17px; font-weight: 600; cursor: pointer; }
.pub .auth-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--pub-brand); cursor: pointer; }
.pub .auth-check em { color: var(--pub-brand); font-style: normal; font-weight: 700; }
.pub .auth-fine { margin: 10px 0 0; color: var(--pub-ink-3); font-size: 14px; line-height: 1.6; }
.pub .auth-form .auth-submit { width: 100%; height: 58px; margin: 28px 0 0; border-radius: 12px; background: var(--pub-brand); color: #fff; font-size: 19px; font-weight: 800; }
.pub .auth-form .auth-submit:hover { background: var(--pub-brand-deep); }
.pub .auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--pub-line); color: var(--pub-ink-2); font-size: 16px; }
.pub .auth-alt p { margin: 6px 0; }
.pub .auth-alt a { font-weight: 700; }

/* 왼쪽 안내 */
.pub-aside { position: sticky; top: 104px; padding: 40px; border-radius: 18px; background: var(--pub-night); color: #dfe6f3; }
.pub-aside h2 { margin: 0 0 28px; color: #fff; font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.pub-steps { margin: 0 0 28px; padding: 0; list-style: none; }
.pub-steps li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.pub-steps li:first-child { border-top: 0; padding-top: 0; }
.pub-step-num { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); color: #fff; font-size: 17px; font-weight: 800; box-sizing: border-box; }
.pub-steps li.is-current .pub-step-num { border-color: #fff; background: #fff; color: var(--pub-night); }
.pub-steps strong { display: block; color: #fff; font-size: 18px; font-weight: 700; }
.pub-steps span:not(.pub-step-num) { display: block; margin-top: 2px; font-size: 15px; line-height: 1.55; color: #c3cde0; }
.pub-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; list-style: none; color: #fff; font-size: 16px; font-weight: 600; }
.pub-checks li { display: inline-flex; align-items: center; gap: 8px; }
.pub-checks .pub-glyph { color: #5fd3a4; width: 22px; height: 22px; }
.pub-checks-lg { flex-direction: column; gap: 16px; font-size: 18px; }
.pub-help { margin-top: 32px; padding: 22px 24px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.pub-help p { margin: 0 0 6px; color: #c3cde0; font-size: 16px; }
.pub .pub-help-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 32px; font-weight: 800; letter-spacing: 0.01em; text-decoration: none; }
.pub-help-icon { display: inline-flex; width: 34px; height: 34px; }

/* 약관 */
.app-legal .pub-main { max-width: 860px; padding: 48px 56px; }
.app-legal .pub-main article { font-size: 17px; line-height: 1.8; color: var(--pub-ink-2); }
.app-legal .pub-main h1 { margin: 0 0 6px; color: var(--pub-ink); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.app-legal .pub-main h2 { margin: 40px 0 12px; color: var(--pub-ink); font-size: 21px; font-weight: 800; }
.app-legal .pub-main p { margin: 0 0 14px; }
.app-legal .pub-main .text-muted { color: var(--pub-ink-3); font-size: 15px; }
.app-legal .pub-main section.card { margin: 40px 0 0; padding: 24px 28px; border: 1px solid var(--pub-line); border-radius: 14px; background: #f8fafd; }
.app-legal .pub-main section.card h2 { margin-top: 0; }

/* 채널 연결(가입 직후) */
.app-onboarding .pub-main { max-width: 1040px; }

/* 바닥글 */
.pub-footer { padding: 32px 0 40px; background: #fff; border-top: 1px solid var(--pub-line); color: var(--pub-ink-3); font-size: 14px; }
.pub-footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; }
.pub-footer-brand { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--pub-ink); font-size: 17px; font-weight: 800; }
.pub-footer-info { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; }
.pub-footer-info span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 10px; background: #c6cfdd; vertical-align: -1px; }
.pub-footer-info a { color: inherit; }
.pub-footer .toolbar { margin: 0; gap: 16px; }
.pub-footer .toolbar a { color: var(--pub-ink-2); font-weight: 700; }

@media (max-width: 960px) {
    .pub-body-auth .pub-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 600px; margin: 0 auto; }
    .pub-body-auth .pub-main { order: -1; }
    .pub-aside { position: static; padding: 28px; }
    .pub-aside h2 { font-size: 24px; margin-bottom: 20px; }
    .pub-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .pub-wrap { padding: 0 16px; }
    .pub-header-inner { min-height: 60px; }
    .pub .pub-brand .brand-logo { width: 34px; height: 34px; }
    .pub-brand-name { font-size: 20px; }
    .pub-brand-desc, .pub .pub-link { display: none; }
    .pub-header-actions { gap: 12px; }
    .pub .pub-phone { font-size: 0; }
    .pub .pub-phone .pub-glyph { width: 24px; height: 24px; }
    .pub .pub-cta { height: 42px; padding: 0 14px; font-size: 15px; }
    .pub-body { padding: 20px 0 40px; }
    .pub .pub-main { padding: 26px 20px; border-radius: 14px; }
    .pub .auth-head h1 { font-size: 27px; }
    .app-legal .pub-main { padding: 28px 20px; }
    .app-legal .pub-main h1 { font-size: 27px; }
    .app-legal .pub-main article { font-size: 16px; }
    .pub .pub-help-phone { font-size: 28px; }
    .pub-footer-info { flex-direction: column; gap: 2px; }
    .pub-footer-info span + span::before { display: none; }
}
