:root {
    --bg: #ffffff;
    --tint: #f5f7fb;
    --surface: #ffffff;
    --line: #e7eaf1;
    --line-strong: #d5dae5;
    --text: #191f28;
    --text-2: #4e5968;
    --text-3: #8b95a1;
    --primary: #3366ff;
    --primary-600: #2251e6;
    --primary-soft: #edf2ff;
    --radius: 18px;
    --shadow-sm: 0 1px 3px rgba(20, 30, 60, 0.06);
    --shadow-md: 0 12px 32px -12px rgba(30, 50, 120, 0.18);
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* 일본어·중국어는 띄어쓰기가 없어 keep-all이면 문장 전체가 한 줄로 이어진다. */
body:lang(ja), body:lang(zh) { word-break: normal; line-break: strict; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
/* Narrow screens: headings split into even lines instead of leaving one word behind; paragraphs avoid a lone last word. */
h1, h2, h3, h4, .hero__lead, .section__lead { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
svg { display: block; }

.container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); }

/* Navigation */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__logo { display: block; width: auto; height: 28px; }
.brand__tag { padding-top: 3px; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; }

.nav__menu { display: flex; gap: 32px; }
.nav__menu a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav__menu a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav__login:hover { color: var(--text); }
.nav__user { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--text); }
.nav__user:hover .nav__user-name { color: var(--primary); }
.nav__user-name { max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav__inquiry { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; background: var(--primary-soft); border-radius: 999px; }
.nav__inquiry i { width: 7px; height: 7px; background: #e5484d; border-radius: 50%; }
.nav__inquiry:hover { text-decoration: underline; }
@media (max-width: 520px) { .nav__inquiry { gap: 0; padding: 7px; font-size: 0; } }
.nav__logout button { padding: 0; font: inherit; font-size: 14px; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.nav__logout button:hover { color: var(--text); }

.lang-pick { position: relative; }
.lang-pick.is-busy { opacity: .6; pointer-events: none; }
.lang-pick svg { flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lang-pick__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 10px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: color .15s, border-color .15s; }
.lang-pick__btn:hover, .lang-pick.is-open .lang-pick__btn { color: var(--text); border-color: var(--line-strong); }
.lang-pick__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-toggle { display: inline-grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav__theme { width: 36px; height: 36px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.nav__theme:hover { color: var(--text); border-color: var(--line-strong); }
.nav__theme svg { width: 17px; height: 17px; }
.lang-pick__btn svg { width: 17px; height: 17px; stroke-width: 1.6; }
.lang-pick__btn .lang-pick__caret { width: 15px; height: 15px; stroke-width: 2; color: var(--text-3); transition: transform .15s; }
.lang-pick.is-open .lang-pick__caret { transform: rotate(180deg); }
.lang-pick__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 100%; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); }
.lang-pick__menu li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; border-radius: 8px; cursor: pointer; outline: none; }
.lang-pick__menu li:hover, .lang-pick__menu li:focus { color: var(--text); background: var(--tint); }
.lang-pick__menu li[aria-selected="true"] { font-weight: 600; color: var(--primary); }
.lang-pick__menu li svg { width: 16px; height: 16px; stroke-width: 2.2; visibility: hidden; }
.lang-pick__menu li[aria-selected="true"] svg { visibility: visible; }

/* 카카오 로그인 버튼: 카카오 디자인 가이드의 노란 바탕(#FEE500)·검은 심볼·85% 검정 글자 */
.kakao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, .85);
    background: #fee500;
    border-radius: 12px;
    transition: filter .15s;
}
.kakao-btn:hover { filter: brightness(.97); }
.kakao-btn__symbol { flex: none; width: 18px; height: 18px; fill: #000; }
.kakao-btn--sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.kakao-btn--sm .kakao-btn__symbol { width: 16px; height: 16px; }

/* Google 로그인 버튼: Google 브랜드 가이드의 흰 바탕·회색 테두리·컬러 G 로고 */
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 16px; font-size: 15px; font-weight: 600; color: #1f1f1f; background: #fff; border: 1px solid #747775; border-radius: 12px; transition: background-color .15s; }
.google-btn:hover { background: #f8f9fa; }
.google-btn__symbol { flex: none; width: 18px; height: 18px; }
.google-btn--sm { height: 36px; padding: 0 12px; gap: 8px; font-size: 14px; border-radius: 10px; }
.google-btn--sm .google-btn__symbol { width: 16px; height: 16px; }
.nav__login { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* Login page: full screen, brand art on the left, the buttons on the right. */
.auth-body { min-height: 100dvh; background: #fff; }
.auth { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: calc(100dvh - var(--notice-h, 0px)); margin-top: var(--notice-h, 0px); }
.auth__art { position: relative; display: flex; flex-direction: column; padding: 40px 56px; overflow: hidden; color: #fff; isolation: isolate;
    background:
        radial-gradient(60% 50% at 85% 18%, rgba(140, 170, 255, 0.55), transparent 70%),
        radial-gradient(55% 45% at 10% 90%, rgba(155, 92, 255, 0.45), transparent 70%),
        radial-gradient(40% 35% at 70% 85%, rgba(0, 200, 255, 0.25), transparent 70%),
        linear-gradient(155deg, #2a5bff 0%, #1d3fd6 38%, #1a2a8f 72%, #121a52 100%); }
.auth__orbits { position: absolute; top: 50%; right: -18%; z-index: -1; width: min(760px, 95%); transform: translateY(-50%); fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; animation: auth-spin 120s linear infinite; }
.auth__orbit-dash { stroke-dasharray: 2 7; stroke: rgba(255, 255, 255, 0.28); }
.auth__orbit-axis { stroke: rgba(255, 255, 255, 0.07); }
.auth__planet { fill: #fff; stroke: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)); }
.auth__planet--soft { fill: #b9c8ff; }
.auth__stars { position: absolute; inset: 0; z-index: -1; opacity: .75; pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 62%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 46% 12%, #fff, transparent), radial-gradient(1px 1px at 64% 44%, #fff, transparent),
        radial-gradient(1.6px 1.6px at 82% 70%, #fff, transparent), radial-gradient(1px 1px at 90% 28%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 20% 84%, #fff, transparent), radial-gradient(1px 1px at 54% 92%, #fff, transparent),
        radial-gradient(1px 1px at 38% 36%, #fff, transparent), radial-gradient(1.4px 1.4px at 72% 8%, #fff, transparent);
    animation: auth-twinkle 6s ease-in-out infinite alternate; }
.auth__brand { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; }
.auth__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.auth__brand span { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.auth__pitch { margin-top: auto; max-width: 540px; }
.auth__mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 18px; box-shadow: 0 12px 32px rgba(8, 16, 70, 0.3); backdrop-filter: blur(8px); }
.auth__mark img { width: 40px; height: 40px; filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)); }
.auth__pitch h2 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 750; line-height: 1.28; letter-spacing: -0.035em; }
.auth__pitch ul { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.auth__pitch li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.auth__pitch li::before { content: ""; position: absolute; top: 5px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.85); }
.auth__copy { margin-top: auto; font-size: 12px; color: rgba(255, 255, 255, 0.55); }

.auth__panel { display: flex; flex-direction: column; padding: 28px 40px; background: #fff; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__home { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text-3); transition: color .15s; }
.auth__home:hover { color: var(--text); }
.auth__home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth__form { display: flex; flex-direction: column; width: min(380px, 100%); margin: auto; padding: 40px 0; }
.auth__form h1 { font-size: 28px; font-weight: 750; line-height: 1.3; letter-spacing: -0.03em; }
.auth__lead { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.auth__perk { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 18px; padding: 6px 12px 6px 10px; font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; }
.auth__perk svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.auth__buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.auth__btn { height: 54px; font-size: 16px; border-radius: 14px; }
.auth__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--text-3); }
.auth__links a:hover { color: var(--text); }
@keyframes auth-spin { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes auth-twinkle { from { opacity: .45; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .auth__orbits, .auth__stars { animation: none; } }
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .auth__art { min-height: 200px; padding: 22px 24px; }
    .auth__orbits { right: -30%; width: 520px; }
    .auth__pitch { margin-top: 28px; }
    .auth__mark, .auth__pitch ul, .auth__copy { display: none; }
    .auth__pitch h2 { font-size: 24px; }
    .auth__panel { padding: 0 24px 24px; }
    .auth__top { position: absolute; top: calc(var(--notice-h, 0px) + 16px); right: 20px; }
    .auth__home { display: none; }
    .auth__form { margin: 0 auto auto; padding: 32px 0 40px; }
    .auth__form h1 { font-size: 24px; }
}

/* Sign-up survey (onboarding.php): the login layout, one question per screen */
.onb__top { justify-content: flex-end; }
.onb__later { padding: 6px 2px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-3); background: none; border: 0; cursor: pointer; transition: color .15s; }
.onb__later:hover { color: var(--text); }
.onb { display: flex; flex-direction: column; width: min(440px, 100%); margin: max(32px, 12vh) auto auto; padding: 32px 0; transition: opacity .15s; }
.onb.is-busy { opacity: .55; pointer-events: none; }
.onb__progress { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 12.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.onb__track { flex: 1; height: 4px; overflow: hidden; background: var(--tint); border-radius: 999px; }
.onb__track span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .3s ease; }
.onb__step { display: flex; flex-direction: column; animation: school-fade .18s ease-out; }
.onb__step[hidden] { display: none; }
.onb__step h1 { font-size: 26px; font-weight: 750; line-height: 1.3; letter-spacing: -0.03em; }
.onb__lead { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.onb__options { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.onb .school__name em.onb__pick { color: var(--primary); background: var(--primary-soft); }
.onb__sources { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.onb__chip { position: relative; padding: 10px 16px; font-size: 14.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.onb__chip:hover { background: #fafbfd; }
.onb__chip input { position: absolute; opacity: 0; pointer-events: none; }
.onb__chip:has(input:checked) { color: var(--primary); background: #f7f9ff; border-color: var(--primary); }
.onb__chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.onb__note { display: none; margin-top: 12px; }
.onb__sources:has(input[value="other"]:checked) + .onb__note { display: block; }
.onb__note input { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.onb__note input:focus { border-color: var(--primary); outline: none; }
.onb__foot { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.onb__back, .onb__skip { padding: 10px 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-3); background: none; border: 0; cursor: pointer; transition: color .15s; }
.onb__back:hover, .onb__skip:hover { color: var(--text); }
.onb__skip { margin-left: auto; }
.onb__next { min-width: 120px; height: 50px; border-radius: 14px; }
@media (max-width: 900px) {
    .onb__later { color: rgba(255, 255, 255, 0.82); }
    .onb__later:hover { color: #fff; }
    .onb { margin: 0 auto auto; padding: 28px 0 40px; }
    .onb__step h1 { font-size: 22px; }
}
.login-terms { align-self: stretch; margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-2); text-align: center; }
.auth .login-terms, .login-modal .login-terms { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.login-terms a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.avatar { flex: none; width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.avatar--initial { display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--primary); background: var(--primary-soft); }
.nav__user .avatar { width: 30px; height: 30px; }

/* Site notice: a full-width bar fixed above everything. --notice-h (set by partials/notice.php) moves the rest down. */
:root { --notice-h: 0px; }
body { padding-top: var(--notice-h); }
.nav { top: var(--notice-h); }
.site-notice {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 48px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(90deg, #2251e6, #3366ff 50%, #5b7cff);
}
.site-notice__inner { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; }
.site-notice__inner > svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.site-notice p { min-width: 0; margin: 0; }
.site-notice a { margin-left: 6px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.site-notice--warn { color: #3d2600; background: linear-gradient(90deg, #f7b733, #fcc94a 50%, #f7b733); }
.site-notice__close { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; color: inherit; background: none; border: 0; border-radius: 8px; opacity: .85; cursor: pointer; transform: translateY(-50%); }
.site-notice__close:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.site-notice--warn .site-notice__close:hover { background: rgba(61, 38, 0, .1); }
.site-notice__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 640px) {
    .site-notice { padding: 8px 44px 8px 14px; font-size: 13px; }
    .site-notice__inner { justify-content: flex-start; text-align: left; }
}

.toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 100;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 500;
    color: #fff;
    background: rgba(25, 31, 45, .92);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 28, 45, .2);
    transform: translateX(-50%);
    animation: toast-in .3s ease both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-600); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: #f1f5ff; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 190px 0 120px;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(55% 45% at 50% 62%, rgba(110, 148, 255, .55) 0%, rgba(150, 178, 255, .25) 45%, transparent 75%),
        linear-gradient(180deg, #f3f6ff 0%, #e3ebff 55%, #ffffff 100%);
}
.lens {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(120% 90% at 25% 20%, rgba(255, 255, 255, .95) 0%, rgba(220, 230, 255, .6) 25%, transparent 50%),
        linear-gradient(155deg, #eef2ff 0%, #a9c0ff 40%, #5b80ff 75%, #3a60f0 100%);
    box-shadow:
        inset -20px -30px 60px rgba(30, 60, 210, .4),
        inset 16px 20px 36px rgba(255, 255, 255, .85),
        0 30px 70px -20px rgba(51, 102, 255, .35);
    opacity: .85;
}
.lens--left { width: 300px; height: 460px; top: -150px; left: -150px; transform: rotate(-32deg); }
.lens--right { width: 240px; height: 360px; top: 300px; right: -150px; transform: rotate(28deg); }

.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero__title {
    font-size: clamp(28px, 7.4vw, 56px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.04em;
}
.hl { color: var(--primary); }

.hero__lead {
    margin-top: 18px;
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.65;
}

/* Composer */
.chatbox {
    width: min(720px, 100%);
    margin-top: 40px;
    padding: 18px 18px 12px 22px;
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 60px -24px rgba(40, 70, 180, .35), 0 2px 6px rgba(20, 30, 60, .04);
    transition: border-color .2s, box-shadow .2s;
}
.chatbox:focus-within { border-color: #9fb6ff; box-shadow: 0 0 0 4px rgba(51, 102, 255, .1), 0 24px 60px -24px rgba(40, 70, 180, .4); }
.chatbox__input {
    display: block;
    width: 100%;
    min-height: 56px;
    max-height: 200px;
    padding: 4px 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: none;
    resize: none;
}
.chatbox__input::placeholder { color: var(--text-3); }
.chatbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.chatbox__tools, .chatbox__right { display: flex; flex: none; align-items: center; gap: 6px; }
.chatbox__count { margin-right: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text-3); white-space: nowrap; }
.chatbox__count.is-full { font-weight: 700; color: #d93a3a; }
.chatbox__bar .tool-btn, .chatbox__bar .model__btn { white-space: nowrap; }
.chatbox__right { gap: 8px; }
.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}
.tool-btn:hover { background: var(--tint); }
.tool-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn--icon { width: 34px; padding: 0; justify-content: center; }
.tool-btn.is-on { color: var(--primary); background: var(--primary-soft); border-color: #c7d5ff; }

.model { position: relative; }
.model__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 8px 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.model__btn:hover { background: var(--tint); }
.model__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.model__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 10;
    width: 260px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}
.model--left .model__menu { right: auto; left: 0; }
.lens-menu { width: 280px; padding: 6px; }
.lens-menu__hint { margin: 6px 10px 4px; font-size: 12px; color: var(--text-3); }
.lens-opt { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.lens-opt:hover { background: var(--tint); }
.lens-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lens-opt__mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; font-size: 16px; line-height: 1; color: var(--text-3); background: var(--tint); border-radius: 9px; transition: color .15s, background .15s; }
.lens-opt__mark svg { width: 16px; height: 16px; }
.lens-opt:hover .lens-opt__mark { background: #fff; }
.lens-opt:has(input:checked) .lens-opt__mark { color: var(--primary); background: var(--primary-soft); }
.lens-opt__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.lens-opt__text strong { font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .15s; }
.lens-opt:has(input:checked) .lens-opt__text strong { color: var(--text); }
.lens-opt__text small { font-size: 12px; color: var(--text-3); }
.lens-opt__switch { position: relative; flex: none; width: 34px; height: 20px; background: var(--line-strong); border-radius: 999px; transition: background .18s; }
.lens-opt__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(20, 28, 45, 0.25); transition: transform .18s cubic-bezier(.3, .9, .3, 1); }
.lens-opt input:checked ~ .lens-opt__switch { background: var(--primary); }
.lens-opt input:checked ~ .lens-opt__switch::after { transform: translateX(14px); }
.lens-opt input:focus-visible ~ .lens-opt__switch { outline: 2px solid var(--primary); outline-offset: 2px; }
.tool-btn[data-lens-btn] { height: 30px; padding: 0 6px 0 10px; gap: 2px; font-size: 12.5px; }
.tool-btn[data-lens-btn] svg { width: 14px; height: 14px; }
.tool-btn[data-lens-btn].is-on { color: var(--primary); background: var(--primary-soft); border-color: #c7d5ff; }

/* 랜딩 로그인 안내 */
.login-modal { width: min(380px, calc(100vw - 32px)); padding: 36px 28px 24px; color: var(--text); text-align: center; background: #fff; border: 0; border-radius: 22px; box-shadow: 0 20px 56px rgba(20, 28, 45, 0.18), 0 2px 6px rgba(20, 28, 45, 0.05); outline: none; }
.login-modal::backdrop { background: rgba(17, 24, 39, 0.36); backdrop-filter: blur(4px); }
.login-modal[open] { display: flex; flex-direction: column; align-items: center; animation: school-in .22s cubic-bezier(.2, .8, .2, 1); }
.login-modal[open]::backdrop { animation: school-fade .22s ease-out; }
.login-modal__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--text-3); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.login-modal__close:hover, .login-modal__close:focus-visible { color: var(--text); background: var(--tint); outline: none; }
.login-modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.login-modal__mark { width: 52px; height: 52px; margin-bottom: 14px; }
.login-modal h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.login-modal p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.login-modal__q { align-self: stretch; margin: 18px 0 0; padding: 11px 14px; font-size: 14px; line-height: 1.5; color: var(--text-2); text-align: left; background: var(--tint); border-radius: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.login-modal__q::before { content: "“"; margin-right: 2px; color: var(--text-3); }
.login-modal__q::after { content: "”"; margin-left: 2px; color: var(--text-3); }
.login-modal__btn { align-self: stretch; margin-top: 10px; height: 50px; font-size: 15px; }
.login-modal__q + .login-modal__btn { margin-top: 16px; }
.login-modal small { margin-top: 12px; font-size: 12px; color: var(--text-3); }

/* 관법 설정 */
.school { width: min(500px, calc(100vw - 32px)); max-height: min(680px, calc(100dvh - 40px)); padding: 0; color: var(--text); background: #fff; border: 0; border-radius: 20px; box-shadow: 0 20px 56px rgba(20, 28, 45, 0.16), 0 2px 6px rgba(20, 28, 45, 0.05); overflow: hidden; text-align: left; outline: none; }
.school::backdrop { background: rgba(17, 24, 39, 0.32); backdrop-filter: blur(4px); }
.school[open] { display: flex; animation: school-in .22s cubic-bezier(.2, .8, .2, 1); }
.school[open]::backdrop { animation: school-fade .22s ease-out; }
@keyframes school-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes school-fade { from { opacity: 0; } }
.school .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.school__inner { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }

.school__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; }
.school__head h2 { margin: 0 0 3px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.school__head p { margin: 0; font-size: 13px; color: var(--text-3); }
.school__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -6px 0 0; color: var(--text-3); background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: background .15s, color .15s; }
.school__close:hover, .school__close:focus-visible { color: var(--text); background: var(--tint); outline: none; }
.school__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.school__tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 20px; padding: 3px; background: var(--tint); border-radius: 12px; }
.school__tab-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(20, 28, 45, 0.08); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .25s cubic-bezier(.3, .9, .3, 1); }
.school__tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 6px 6px; font: inherit; color: var(--text-3); background: transparent; border: 0; border-radius: 9px; cursor: pointer; transition: color .15s; }
.school__tab b { font-size: 13.5px; font-weight: 650; }
.school__tab small { max-width: 100%; overflow: hidden; font-size: 11px; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.school__tab small.is-custom { color: var(--primary); font-weight: 600; }
.school__tab:hover, .school__tab[aria-selected="true"] { color: var(--text); }
.school__tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.school__lock { margin: 12px 20px 0; padding: 9px 12px; font-size: 12.5px; line-height: 1.5; color: var(--primary-600); background: var(--primary-soft); border-radius: 10px; }
.school__lock[hidden] { display: none; }

.school__panel { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; margin: 0; padding: 12px 20px 16px; overflow-y: auto; border: 0; animation: school-fade .18s ease-out; }
.school__panel[hidden] { display: none; }
.school__intro { margin: 0 2px 4px; font-size: 12px; color: var(--text-3); }

.school__card { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 44px 11px 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.school__card:hover { background: #fafbfd; }
.school__card input { position: absolute; opacity: 0; pointer-events: none; }
.school__card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.school__card:has(input:checked) { align-items: flex-start; background: #f7f9ff; border-color: var(--primary); }

.school__mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-size: 16px; line-height: 1; color: var(--text-2); background: var(--tint); border-radius: 10px; transition: background .15s, color .15s; }
.school__mark svg { width: 16px; height: 16px; }
.school__card:has(input:checked) .school__mark { color: #fff; background: var(--primary); }

.school__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.school__name { display: flex; align-items: center; gap: 6px; }
.school__name strong { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.school__name em { padding: 1px 6px; font-size: 10.5px; font-style: normal; font-weight: 650; color: var(--text-3); background: var(--tint); border-radius: 6px; }
.school__body small { overflow: hidden; font-size: 12.5px; line-height: 1.5; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.school__detail { display: none; margin-top: 4px; font-size: 12px; line-height: 1.55; color: var(--primary-600); }
.school__card:has(input:checked) .school__body small { color: var(--text-2); white-space: normal; }
.school__card:has(input:checked) .school__detail { display: block; }

.school__check { position: absolute; top: 50%; right: 14px; display: grid; place-items: center; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: background .15s, border-color .15s; }
.school__card:has(input:checked) .school__check { top: 18px; margin-top: 0; background: var(--primary); border-color: var(--primary); }
.school__check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.school__card:has(input:checked) .school__check svg { opacity: 1; }

.school.is-locked .school__card { cursor: default; }
.school.is-locked .school__card:hover { background: transparent; }
.school.is-locked .school__card:not(:has(input:checked)) { opacity: .5; }
.school.is-locked .school__card:has(input:checked):hover { background: #f7f9ff; }
.school__reset[hidden] { display: none; }
.school.is-locked .school__foot { justify-content: flex-end; }

.school__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.school__reset { padding: 6px 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.school__reset:hover { color: var(--text); }
.school__done { min-width: 88px; height: 40px; padding: 0 20px; font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: var(--primary); border: 0; border-radius: 10px; cursor: pointer; transition: background .15s; }
.school__done:hover { background: var(--primary-600); }

@media (max-width: 600px) {
    .school { width: 100vw; max-width: 100vw; max-height: 85dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
    .school[open] { animation: school-up .26s cubic-bezier(.2, .8, .2, 1); }
    @keyframes school-up { from { transform: translateY(100%); } }
    .school__head { padding-top: 24px; }
    .school__head::before { content: ""; position: absolute; top: 9px; left: 50%; width: 36px; height: 4px; margin-left: -18px; background: var(--line-strong); border-radius: 999px; }
    .school__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .school__done { flex: 1; }
}

/* 분석 수준 슬라이더 */
.level__pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
    width: 264px;
    padding: 12px 14px 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}
.level__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.level__desc { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.level__cost { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 3px 9px 3px 5px; font-size: 12.5px; font-weight: 700; color: var(--primary); white-space: nowrap; background: var(--primary-soft); border-radius: 999px; }
.level__cost .orb { width: 15px; height: 15px; }
.level__track {
    --t: .5;
    --knob: 16px;
    position: relative;
    height: 20px;
    margin: 0 2px;
}
.level__track::before, .level__track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--knob) / 2);
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
}
.level__track::before { right: calc(var(--knob) / 2); background: var(--line); }
.level__track::after { width: calc((100% - var(--knob)) * var(--t)); background: var(--primary); }
.level__tick {
    position: absolute;
    top: 50%;
    left: calc(var(--knob) / 2 + (100% - var(--knob)) * var(--i));
    z-index: 1;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
}
.level__range {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.level__range:focus { outline: none; }
.level__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.level__range::-moz-range-track { height: 100%; background: transparent; }
.level__range::-webkit-slider-thumb {
    width: var(--knob);
    height: var(--knob);
    margin-top: 2px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(20, 30, 60, .15);
    -webkit-appearance: none;
    appearance: none;
}
.level__range::-moz-range-thumb {
    width: var(--knob);
    height: var(--knob);
    box-sizing: border-box;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
}
.level__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(51, 102, 255, .2); }
.level__names { position: relative; height: 26px; margin: 2px 2px 0; }
.level__names button {
    position: absolute;
    top: 0;
    left: calc(8px + (100% - 16px) * var(--i));
    transform: translateX(calc(-50% + (.5 - var(--i)) * 16px));
    white-space: nowrap;
    padding: 4px 2px;
    font-size: 12px;
    color: var(--text-3);
    background: none;
    border: 0;
    cursor: pointer;
}
.level__names button:hover { color: var(--text-2); }
.level__names button.is-on { font-weight: 600; color: var(--primary); }

.chatbox__send {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s, transform .15s;
}
.chatbox__send:hover:not(:disabled) { background: var(--primary-600); }
.chatbox__send:active:not(:disabled) { transform: scale(.94); }
.chatbox__send:disabled { background: #d1d6e0; cursor: default; }
.chatbox__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.notes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.notes li { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-2); }
.notes svg { width: 16px; height: 16px; fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 100px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__title { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; line-height: 1.35; letter-spacing: -0.04em; }
.section__lead { margin-top: 12px; font-size: 17px; color: var(--text-2); }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.topic:hover { border-color: #c4d3ff; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.topic__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 14px;
}
.topic__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topic h3 { font-size: 19px; font-weight: 700; }
.topic p { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.topic__example {
    margin-top: auto;
    padding-top: 20px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* App preview */
.app {
    display: grid;
    grid-template-columns: 240px 1fr;
    max-width: 1000px;
    margin-inline: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 40px 80px -40px rgba(30, 50, 120, .35), 0 2px 8px rgba(20, 30, 60, .04);
    overflow: hidden;
    text-align: left;
}
.app__side {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    background: #f8f9fc;
    border-right: 1px solid var(--line);
}
.app__new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.app__new svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.app__side-label { margin: 20px 10px 6px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.app__history { margin: 0; padding: 0; list-style: none; }
.app__history li {
    padding: 8px 10px;
    font-size: 14px;
    color: var(--text-2);
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app__history li.is-active { color: var(--text); font-weight: 600; background: #eceff6; }
.app__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px 8px 4px;
    border-top: 1px solid var(--line);
}
.app__profile-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 50%;
}
.app__profile strong { display: block; font-size: 13px; line-height: 1.3; }
.app__profile small { font-size: 11.5px; color: var(--text-3); }

.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
}
.app__title { font-size: 15px; font-weight: 600; }
.app__model {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--tint);
    border-radius: 6px;
}
.app__thread { display: flex; flex-direction: column; gap: 20px; padding: 28px 32px 8px; }
.bubble-me {
    align-self: flex-end;
    max-width: 75%;
    padding: 12px 16px;
    font-size: 15px;
    background: var(--tint);
    border-radius: 18px 18px 6px 18px;
}

.answer { display: flex; gap: 14px; }
.answer__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    color: var(--primary);
    border-radius: 50%;
}
.answer__avatar svg { width: 32px; height: 32px; }
.answer__body { flex: 1; min-width: 0; font-size: 15px; line-height: 1.75; color: var(--text); }
.answer__body > p + p { margin-top: 10px; }
.answer__body b { font-weight: 700; color: var(--primary); }
.answer__lead { font-weight: 500; }

.trace {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}
.trace summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    list-style: none;
}
.trace summary::-webkit-details-marker { display: none; }
.trace summary::after {
    content: "";
    width: 14px;
    height: 14px;
    margin-left: auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s;
}
.trace[open] summary::after { transform: rotate(180deg); }
.trace summary svg { width: 15px; height: 15px; fill: none; stroke: #12b886; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.trace__steps { position: relative; margin: 0; padding: 2px 14px 14px; list-style: none; }
.trace__steps li { position: relative; display: flex; gap: 12px; padding: 6px 0; }
.trace__steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 3.5px;
    top: 18px;
    bottom: -8px;
    border-left: 1px solid var(--line-strong);
}
.trace__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.trace__steps strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; }
.trace__steps small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.compare__card {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.compare__tag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 6px;
}
.compare__card:first-child .compare__tag { color: #c2410c; background: #fff1e6; }
.compare__card p { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.compare__card b { color: var(--text); }

.timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    align-items: end;
    height: 92px;
    margin-top: 18px;
    padding: 14px 16px 10px;
    background: var(--tint);
    border-radius: 12px;
}
.timeline__col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.timeline__col small { font-size: 11.5px; color: var(--text-3); line-height: 1; }
.timeline__bar { width: 100%; max-width: 44px; border-radius: 6px; background: #c9d6ff; }
.timeline__bar--0 { height: 14%; background: #ffc9cf; }
.timeline__bar--1 { height: 34%; }
.timeline__bar--2 { height: 58%; background: #8eaaff; }
.timeline__bar--3 { height: 88%; background: var(--primary); }
.timeline__note { margin-top: 8px; font-size: 13px; color: var(--text-3); }

.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sources span {
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.answer__actions { display: flex; gap: 14px; margin-top: 14px; color: var(--text-3); }
.answer__actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app__composer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 32px 24px;
    padding: 10px 10px 10px 18px;
    font-size: 14px;
    color: var(--text-3);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
}
.app__send {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #fff;
    background: #d1d6e0;
    border-radius: 50%;
}
.app__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 32px 28px; background: var(--tint); border-radius: var(--radius); }
.step__no {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
}
.step h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 15px; color: var(--text-2); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { padding: 0 24px 22px; font-size: 16px; color: var(--text-2); }

/* CTA */
.cta {
    padding: 64px 32px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #3366ff 0%, #4f7bff 100%);
    border-radius: 24px;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.04em; }
.cta p { margin: 10px 0 28px; font-size: 17px; opacity: .85; }

/* Pricing */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn--soft { color: var(--primary); background: var(--primary-soft); }
.btn--soft:hover { background: #e1e9ff; }

.price-hero {
    padding: 150px 0 40px;
    background:
        radial-gradient(50% 40% at 50% 70%, rgba(110, 148, 255, .28) 0%, transparent 75%),
        linear-gradient(180deg, #f3f6ff 0%, #eaf0ff 50%, #ffffff 100%);
}
.price-hero .section__head { margin-bottom: 32px; }
.price-hero__eyebrow { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--primary); letter-spacing: 0; }
.price-hero__title { font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.3; letter-spacing: -0.04em; }

/* Orb: 크레딧 표시용 작은 구슬 */
.orb {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle at 70% 78%, #7b4dff 0%, rgba(123, 77, 255, 0) 55%),
        linear-gradient(150deg, #8fb0ff 0%, #3366ff 55%, #2541c9 100%);
    border-radius: 50%;
    box-shadow: inset -2px -3px 5px rgba(20, 30, 120, .35), 0 3px 8px -2px rgba(51, 102, 255, .45);
}

.plans__note { margin-top: 24px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.plans__note a { margin-left: 4px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.welcome-orbs { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 auto 36px; padding: 10px 18px 10px 12px; font-size: 15px; color: var(--text-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.welcome-orbs .orb { width: 24px; height: 24px; }
.welcome-orbs strong { color: var(--primary); }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin-inline: auto; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; padding: 32px 22px 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.pack:hover { border-color: #c4d3ff; transform: translateY(-2px); }
.pack.is-featured { border: 2px solid var(--primary); box-shadow: 0 28px 60px -28px rgba(51, 102, 255, .45); }
.pack__badge { position: absolute; top: 14px; right: 14px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; }
.pack.is-featured .pack__badge { color: #fff; background: var(--primary); }
.pack__stack { display: flex; justify-content: center; height: 44px; margin-bottom: 14px; }
.pack__stack .orb { width: 44px; height: 44px; }
.pack__stack .orb + .orb { margin-left: -20px; }
.pack__orbs { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.pack__bonus { min-height: 22px; font-size: 13.5px; font-weight: 700; color: #7b4dff; }
.pack__bonus.is-none { font-weight: 500; color: var(--text-3); }
.pack__price { margin-top: 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pack__unit { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.pack__unit em { padding: 1px 6px; font-size: 11.5px; font-style: normal; font-weight: 700; color: #0f9d58; background: #e8f7ee; border-radius: 6px; }
.pack__cta { margin-top: 16px; padding: 12px 16px; font-size: 15px; }
.pack__cta.is-disabled { opacity: .55; pointer-events: none; }
.pack__price small { margin-left: 2px; font-size: 15px; font-weight: 600; color: var(--text-3); }
.pack__was { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.pack__was s { color: var(--text-3); text-decoration-thickness: 1.5px; }
.pack__was b { padding: 1px 7px; font-size: 12px; font-weight: 800; color: #fff; background: #ff4d4f; border-radius: 6px; }
.pack.is-current { border: 2px solid #0f9d58; }
.pack.is-current .pack__badge { color: #fff; background: #0f9d58; }
.packs--topup .pack { padding-top: 26px; }
.pack--topup .pack__orbs { font-size: 21px; }
#topup .pack__cta.is-disabled { pointer-events: auto; }

.price-alert { max-width: 900px; margin: 0 auto 20px; text-align: center; }
.my-plan { display: flex; align-items: center; gap: 24px; max-width: 900px; margin: 0 auto 28px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.my-plan__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-plan__main small { font-size: 12.5px; color: var(--text-3); }
.my-plan__main strong { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.my-plan__status { font-size: 13.5px; font-weight: 600; }
.my-plan__status--good { color: #0f9d58; }
.my-plan__status--info { color: var(--primary); }
.my-plan__status--bad { color: #b4232f; }
.my-plan__orbs { display: flex; align-items: center; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line); }
.my-plan__orbs .orb { width: 28px; height: 28px; }
.my-plan__orbs strong { display: block; font-size: 17px; font-weight: 800; }
.my-plan__orbs small { font-size: 12.5px; color: var(--text-3); }
.my-plan__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.my-plan__cancel { padding: 6px 10px; font: inherit; font-size: 13px; color: var(--text-3); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.my-plan__cancel:hover { color: #b4232f; background: #fdf0f0; }

.sub-terms { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Checkout */
.checkout-page { padding: 104px 0 96px; background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 420px); }
.checkout { width: min(1000px, 100% - 40px); }
.checkout__back { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 500; color: var(--text-3); }
.checkout__back:hover { color: var(--text); }
.checkout__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checkout__title { margin: 12px 0 28px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.04em; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: 16px; }
.checkout__card, .checkout__summary { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.checkout__card h2, .checkout__summary h2 { margin-bottom: 16px; font-size: 16px; font-weight: 700; }

.choice-grid.choice-grid--packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice--pack { justify-content: center; text-align: center; }
.choice--pack.is-on { background: #f7f9ff; border-color: var(--primary); }
.checkout__gain { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 12px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--line-strong); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { background: #f7f9ff; border-color: var(--primary); }
.choice:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice__body { display: flex; flex-direction: column; gap: 2px; }
.choice strong { font-size: 15px; font-weight: 600; }
.choice strong em { margin-left: 4px; padding: 2px 7px; font-size: 11.5px; font-style: normal; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; }
.choice small { font-size: 13.5px; color: var(--text-3); }

.pay-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; font-size: 12px; font-weight: 800; letter-spacing: -0.02em; border-radius: 10px; }
.pay-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pay-mark--card { color: var(--text-2); background: var(--tint); }
.pay-mark--kakaopay { color: #191919; background: #fee500; }
.pay-mark--tosspay { color: #fff; background: #0064ff; }
.pay-mark--naverpay { font-size: 16px; color: #fff; background: #03c75a; }

.checkout__summary { position: sticky; top: calc(88px + var(--notice-h)); }
.checkout__summary dl { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.checkout__summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.checkout__summary dt { color: var(--text-2); }
.checkout__summary dd { margin: 0; font-weight: 600; }
.checkout__summary .checkout__total { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout__total dt { font-weight: 600; color: var(--text); }
.checkout__total dd { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.checkout__renew { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.checkout__agree { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 16px; padding: 14px; font-size: 13.5px; color: var(--text-2); background: var(--tint); border-radius: 12px; cursor: pointer; }
.checkout__agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.checkout--done { width: min(560px, 100% - 40px); }
.checkout-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 32px; text-align: center; }
.checkout-done h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.checkout-done p { margin-bottom: 12px; font-size: 15px; color: var(--text-2); line-height: 1.6; }
.orb.orb--lg { width: 56px; height: 56px; margin-bottom: 4px; }
.checkout__alert { margin-bottom: 16px; padding: 12px 14px; font-size: 14px; font-weight: 500; line-height: 1.5; border-radius: 12px; }
.checkout__alert--error { color: #b4232f; background: #fdf0f0; }
.checkout__alert--info { color: var(--text-2); background: var(--tint); }
.checkout__stripe { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.checkout__stripe .pay-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.checkout__stripe .pay-marks span { padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--tint); border-radius: 999px; }
.checkout__saved { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px; border: 1.5px solid var(--primary); border-radius: 14px; }
.checkout__saved > div { flex: 1; min-width: 0; }
.checkout__saved strong { display: block; font-size: 15px; font-weight: 700; }
.checkout__saved small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3); }
.checkout__remove { padding: 6px 10px; font: inherit; font-size: 13px; color: var(--text-3); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.checkout__remove:hover { color: #b4232f; background: #fdf0f0; }
.checkout__stripe--alt { font-size: 13px; color: var(--text-3); }
.checkout__save { display: flex; align-items: flex-start; gap: 10px; margin: -6px 0 16px; padding: 0 14px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.checkout__save input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.checkout__save small { display: block; margin-top: 3px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.checkout__other { margin-top: 8px; }
.checkout__test { margin-top: 10px; padding: 10px 12px; font-size: 13px; color: #8a5a00; background: #fff4dc; border-radius: 10px; }
.checkout__test code { font-weight: 700; }
.checkout__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.checkout__secure svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* My page */
.account__grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 860px; }
.account__grid > * { min-width: 0; }
.account__nav { position: sticky; top: calc(88px + var(--notice-h)); display: flex; flex-direction: column; gap: 2px; }
.account__nav a { padding: 9px 12px; font-size: 14.5px; font-weight: 600; color: var(--text-2); border-radius: 10px; }
.account__nav a:hover { color: var(--text); background: var(--tint); }
.account .checkout__card { scroll-margin-top: calc(88px + var(--notice-h)); }
.account__nav a.is-active { color: var(--primary); background: var(--primary-soft); }

/* 약관·정책 */
.legal { padding: 28px 32px 32px; font-size: 15px; line-height: 1.75; color: var(--text-2); }
.legal__date { margin-bottom: 20px; font-size: 13.5px; color: var(--text-3); }
.legal h2 { margin: 28px 0 10px; font-size: 17px; font-weight: 700; color: var(--text); }
.legal h3 { margin: 18px 0 8px; font-size: 15.5px; font-weight: 700; color: var(--text); }
.legal p { margin: 0 0 10px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal strong { color: var(--text); }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal > h2:first-of-type { margin-top: 8px; }
.legal__callout { margin: 0 0 20px; padding: 16px 20px; color: var(--text); background: #fff8e6; border: 1px solid #f5d27a; border-left: 4px solid #e0a100; border-radius: 10px; }
.legal__callout p { margin: 0; }
.legal__callout p + p { margin-top: 8px; }
.legal__callout strong { color: #7a4b00; }

.notices { padding: 8px 0; }
.notices .account-empty { padding: 32px 20px; }
.notices__list { margin: 0; padding: 0; list-style: none; }
.notices__list li + li { border-top: 1px solid var(--line); }
.notices__item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 24px; color: var(--text); text-decoration: none; transition: background-color .15s ease; }
.notices__item:hover { background: var(--tint); }
.notices__title { min-width: 0; font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.notices__pin { display: inline-block; margin-right: 6px; padding: 1px 8px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; vertical-align: 1px; }
.notices__item time { flex: none; font-size: 13px; color: var(--text-3); }
.notices .pager { padding: 8px 24px 12px; }
.notices__back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.notices__back:hover { color: var(--primary); }
.notice-post__title { margin: 0 0 6px; font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; color: var(--text); }
@media (max-width: 640px) {
    .notices__item { flex-direction: column; gap: 4px; padding: 14px 18px; }
    .notice-post__title { font-size: 20px; }
}
/* 1:1 문의 */
.inquiry-page .checkout { display: flex; flex-direction: column; gap: 16px; }
.inquiry-page .checkout__alert, .inquiry-page .notices__back { margin: 0; }
.inquiry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inquiry-head .checkout__title { margin: 0; }
.inquiry-form { display: flex; flex-direction: column; gap: 14px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; }
.inquiry-form label span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; }
.inquiry-form textarea { min-height: 180px; line-height: 1.6; resize: vertical; }
.inquiry-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.inquiry-form__actions { display: flex; justify-content: flex-end; gap: 8px; }
.inquiry-cat { display: inline-block; margin-right: 6px; padding: 1px 8px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--text-2); background: var(--tint); border-radius: 999px; vertical-align: 1px; }
.inquiry-new { display: inline-block; width: 7px; height: 7px; margin-left: 4px; background: #e5484d; border-radius: 50%; vertical-align: 3px; }
.inquiry-meta { display: inline-flex; flex: none; align-items: baseline; gap: 10px; }
.inquiry-post__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.inquiry-post__body { font-size: 15px; line-height: 1.75; color: var(--text-2); word-break: break-word; }
.inquiry-answer { border-color: var(--primary-soft); background: #f7f9ff; }
.inquiry-answer h2 small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--text-3); }

.account-profile { display: flex; align-items: center; gap: 16px; }
.account-profile .avatar { width: 56px; height: 56px; font-size: 22px; }
.account-profile strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.account-profile small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-3); }
.account-plan { display: flex; flex-direction: column; }
.account-plan__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-plan__row:first-child { padding-top: 0; border-top: 0; }
.account-plan__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-plan__row small { font-size: 13px; color: var(--text-3); }
.account-plan__row strong { font-size: 16px; font-weight: 700; }
.account-plan__hint { font-size: 14px; color: var(--text-2); }
.account-plan__orbs, .account-plan__card { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-plan__orbs > div, .account-plan__card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-plan__actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.account-empty { padding: 20px 0 8px; font-size: 14px; color: var(--text-3); text-align: center; }
.account-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.account-note--top { margin: 2px 0 12px; }
.account-label { font-size: 14px; font-weight: 700; }
.account-label--gap { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: calc(88px + var(--notice-h)); }
.tz-form { display: flex; gap: 8px; }
.tz-form select { flex: 1; min-width: 0; height: 40px; padding: 0 36px 0 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); border-radius: 10px; appearance: none; cursor: pointer; }
.tz-form select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.tz-form .btn { flex: none; height: 40px; }
.tz-device { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--text-2); background: var(--tint); border-radius: 10px; }
.tz-device[hidden] { display: none; }
.account-lang-error { margin: 12px 0 0; }
.choice-grid.choice-grid--langs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid--langs .choice { justify-content: center; }
[data-settings].is-busy .choice { opacity: .6; pointer-events: none; }
.ledger { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ledger__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ledger__row:first-child { padding-top: 0; border-top: 0; }
.ledger__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ledger__what strong { font-size: 14.5px; font-weight: 600; }
.ledger__what a { overflow: hidden; font-size: 13.5px; color: var(--primary); white-space: nowrap; text-overflow: ellipsis; }
.ledger__what a:hover { text-decoration: underline; }
.ledger__what small, .ledger__amount small { font-size: 12.5px; color: var(--text-3); }
.ledger__amount { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.ledger__amount strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger__amount .is-plus { color: var(--primary); }
.ledger__amount .is-refunded { color: var(--text-3); text-decoration: line-through; }
.ledger__more { display: block; margin-top: 14px; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--primary); text-align: center; background: var(--primary-soft); border-radius: 10px; }
.ledger__more:hover { background: #e2eaff; }
.person { align-items: flex-start; }
.person__me { margin-left: 4px; padding: 1px 7px; font-size: 11.5px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 999px; vertical-align: 1px; }
.person__edit summary { width: fit-content; margin-top: 2px; font-size: 12.5px; color: var(--text-3); cursor: pointer; list-style: none; }
.person__edit summary::-webkit-details-marker { display: none; }
.person__edit summary:hover { color: var(--primary); }
.person__edit form { display: flex; gap: 6px; margin-top: 8px; }
.person__edit input { width: 180px; height: 34px; padding: 0 10px; font: inherit; font-size: 13.5px; border: 1px solid var(--line-strong); border-radius: 8px; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; font-size: 14px; color: var(--text-3); border-top: 1px solid var(--line); }
.pager a { padding: 6px 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 8px; }
.leave { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.leave summary { font-size: 14px; color: var(--text-3); cursor: pointer; }
.leave summary:hover { color: #b4232f; }
.leave[open] summary { margin-bottom: 14px; font-weight: 600; color: #b4232f; }
.leave__form .checkout__agree { margin: 16px 0 12px; }
.leave + .leave { margin-top: 14px; }
.leave .sub-terms { gap: 4px; }
.leave--plan .leave__form { margin-top: 14px; }
.leave--plan summary:hover, .leave--plan[open] summary { color: var(--text); }
.btn--danger { color: #fff; background: #d93644; }
.btn--danger:hover { background: #b4232f; }

/* Footer */
.footer { padding: 48px 0 40px; background: var(--tint); border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__desc { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__company { margin-top: 24px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.footer__company p { display: flex; flex-wrap: wrap; column-gap: 14px; }
.footer__company span + span::before { content: '|'; margin-right: 14px; color: var(--line-strong); }
.footer__company a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__company a:hover { color: var(--text-2); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-3);
}

/* Responsive */
@media (max-width: 960px) {
    .topics { grid-template-columns: repeat(2, 1fr); }
    .app { grid-template-columns: 1fr; }
    .app__side { display: none; }
    .packs { grid-template-columns: 1fr; max-width: 420px; }
    .my-plan { flex-wrap: wrap; gap: 14px; max-width: 420px; }
    .my-plan__orbs { padding-left: 0; border-left: 0; }
    .my-plan__actions { width: 100%; margin-left: 0; }
    .checkout__grid { grid-template-columns: 1fr; }
    .checkout__summary { position: static; }
    .account__grid { grid-template-columns: 1fr; }
    .account__nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .account__nav a { flex: none; }
}

@media (max-width: 760px) {
    .nav__menu, .nav__user-name { display: none; }
    .nav__login { padding: 8px 14px; font-size: 14px; }
    .nav__actions { gap: 10px; }
    .hero { padding: 112px 0 72px; }
    .hero__lead { font-size: 16px; }
    .br-pc { display: none; }
    .chatbox { padding: 14px 14px 10px 18px; }
    .chatbox__input { font-size: 16px; }
    .chatbox__bar { flex-wrap: wrap; }
    .chatbox__right { margin-left: auto; }
    .app__thread { padding: 20px 16px 4px; }
    .app__composer { margin: 12px 16px 16px; }
    .answer__avatar { display: none; }
    .compare { grid-template-columns: 1fr; }
    .lens { display: none; }
    .steps { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .price-hero { padding: 104px 0 24px; }
    .checkout-page { padding-top: 88px; }
    .choice-grid:not(.choice-grid--packs):not(.choice-grid--langs) { grid-template-columns: 1fr; }
    .account__nav { margin: 0 -20px; padding: 0 12px; }
    .account-plan__row { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .hero__title { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.28; }
    .hero__lead { font-size: 15.5px; line-height: 1.6; }
    .section__title, .cta h2, .checkout__title { font-size: 24px; line-height: 1.38; }
    .price-hero__title { font-size: 27px; }
    .section { padding: 56px 0; }
    .section__head { margin-bottom: 28px; }
    .section__lead { font-size: 15.5px; }
    .packs { gap: 16px; }
    /* 요금 카드: 구슬 · 이름 · 가격을 한 줄에, 버튼은 아래 */
    .pack { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "stack name price" "stack bonus price" "stack unit unit" "cta cta cta";
        align-items: center; column-gap: 14px; padding: 20px 18px 18px; text-align: left; }
    .pack:hover { transform: none; }
    .pack--topup { grid-template-columns: 1fr auto; grid-template-areas: "name price" "bonus price" "unit unit" "cta cta"; }
    .packs--topup .pack { padding-top: 20px; }
    .pack__badge { top: -11px; right: 16px; }
    .pack__stack { grid-area: stack; align-self: center; height: 36px; margin: 0; }
    .pack__stack .orb { width: 36px; height: 36px; }
    .pack__stack .orb + .orb { margin-left: -18px; }
    .pack__orbs, .pack--topup .pack__orbs { grid-area: name; font-size: 19px; }
    .pack__bonus { grid-area: bonus; min-height: 0; font-size: 13px; }
    .pack__price { grid-area: price; justify-self: end; margin: 0; font-size: 19px; white-space: nowrap; }
    .pack__price small { font-size: 13px; }
    .pack__was { justify-content: flex-end; font-size: 12.5px; }
    .pack__was b { font-size: 11px; }
    .pack__unit { grid-area: unit; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
    .pack__cta { grid-area: cta; margin-top: 14px; padding: 11px 16px; }
    .plans__note { font-size: 12.5px; }
    .footer__company p { flex-direction: column; }
    .footer__company span + span::before { display: none; }
}

@media (max-width: 480px) {
    .topics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
