:root {
    --bg: #f5f6fa;
    --surface: #ffffff;
    --ink: #151a2d;
    --muted: #697089;
    --line: #e5e7ef;
    --brand: #4f7cff;
    --brand-ink: #2c4fd6;
    --ok: #12a150;
    --bad: #e03131;
    --warn: #f08c00;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 26, 45, .04), 0 4px 16px rgba(20, 26, 45, .05);
    font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.up { color: var(--ok); }
.down { color: var(--bad); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }

/* ── Top bar ── */
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 2rem;
    padding: .7rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.brand-mark i { width: 9px; height: 9px; border-radius: 3px; background: #d5dcf5; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(4) { background: var(--brand); }
.nav { display: flex; gap: .25rem; flex: 1; }
.nav a { padding: .45rem .9rem; border-radius: 999px; color: var(--muted); font-weight: 600; }
.nav a:hover { background: #eef1fb; text-decoration: none; color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }
.user { display: flex; align-items: center; gap: .75rem; margin: 0; }
.user-name { font-weight: 600; }

.page { max-width: 1160px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.page-head { margin-bottom: 1.25rem; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.row-gap { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.notice { background: #eaf0ff; border: 1px solid #c9d6ff; color: var(--brand-ink); padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; }

/* ── Cards & buttons ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card.narrow { max-width: 520px; margin: 3rem auto; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card.empty { text-align: center; padding: 3rem 1.5rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .62rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
    background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
    transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f1f3f9; }
.btn-danger { background: #fff; color: var(--bad); border-color: #f3c4c4; }
.btn-danger:hover { background: #fff1f1; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .88rem; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ── Forms ── */
label { display: block; font-weight: 600; font-size: .92rem; margin: .7rem 0 .3rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input:not([type]) {
    width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
input:focus { outline: 2px solid #c7d4ff; border-color: var(--brand); }
label input[type=number], label input[type=date], label input[type=time] { margin-top: .3rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.field-error, .form-error { color: var(--bad); font-size: .85rem; }
.form-error ul { margin: 0; padding-left: 1.1rem; }
.form-row { display: flex; gap: 1.5rem; align-items: flex-end; flex-wrap: wrap; margin: .5rem 0 1rem; }
.form-row label { margin: 0; }
.form-row input[type=number] { width: 120px; }
.field { margin: .7rem 0; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }

/* ── Auth ── */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; min-height: 70vh; }
.auth-intro h1 { font-size: 2.3rem; }
.auth-intro p { color: var(--muted); font-size: 1.05rem; max-width: 28em; }
.auth-card { max-width: 420px; width: 100%; justify-self: end; }
.auth-card .btn-block { margin-top: 1.1rem; }
.auth-card .muted.center { margin-top: 1rem; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; gap: 1.5rem; } .auth-card { justify-self: stretch; max-width: none; } }

/* ── Home ── */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: linear-gradient(135deg, #151a2d, #27325c); color: #fff; border-radius: 20px; padding: 2rem 2.2rem; margin-bottom: 1.25rem; }
.hero .eyebrow { color: #9fb2ff; }
.hero .lead { color: #d5dbf0; font-size: 1.05rem; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #4b5888; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-ink); margin-bottom: .35rem; }
.ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: conic-gradient(#7c9bff calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.ring > div { width: 118px; height: 118px; border-radius: 50%; background: #1d2443; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-size: 1.8rem; line-height: 1; }
.ring span { font-size: .85rem; color: #c3cbea; }
.ring small { font-size: .72rem; color: #9fb2ff; margin-top: .2rem; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.kpi span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi b { font-size: 2rem; letter-spacing: -0.03em; line-height: 1.2; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.kpi b em { font-style: normal; font-size: 1rem; color: var(--muted); margin-left: 2px; }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi small.up { color: var(--ok); font-weight: 600; }
.kpi small.down { color: var(--bad); font-weight: 600; }

.task-levels { display: grid; gap: .7rem; margin-top: .6rem; }
.task-level { display: grid; grid-template-columns: 14px 130px 1fr 130px; align-items: center; gap: .6rem; }
.task-level .name { font-weight: 600; font-size: .92rem; }
.task-level .val { text-align: right; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: #eef0f6; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s; }
.steps { padding-left: 1.2rem; margin: 0; display: grid; gap: .5rem; }

/* ── Training ── */
.task-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; margin: .8rem 0 1rem; }
.task-pick.compact { grid-template-columns: repeat(3, 1fr); }
.task-chip { --c: var(--brand); position: relative; display: flex; flex-direction: column; margin: 0; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.task-chip input { position: absolute; opacity: 0; pointer-events: none; }
.task-chip b { font-size: .92rem; }
.task-chip small { color: var(--muted); font-weight: 500; }
.task-chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.task-chip.on::after { content: "✓"; position: absolute; top: .45rem; right: .6rem; color: var(--c); font-weight: 800; }

.progress-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.progress-steps span { --c: var(--brand); padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #eceef5; color: var(--muted); }
.progress-steps span.done { background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--c); }
.progress-steps span.now { background: var(--c); color: #fff; }

.intro { --c: var(--brand); text-align: center; padding: 3rem 1.5rem; border-top: 5px solid var(--c); }
.intro .eyebrow { color: var(--c); }
.intro .lead { font-size: 1.1rem; color: var(--muted); max-width: 32em; margin: 0 auto 1.5rem; }

.span-task { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.4rem 1.5rem; outline: none; margin-bottom: 1rem; }
.st-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1.2rem; }
.st-head h2 { --c: var(--brand); font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.st-head h2::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.st-head p { margin: 0; }
.st-count { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-count b { color: var(--ink); font-size: 1.3rem; }
.st-body { display: grid; grid-template-columns: 1fr 260px; gap: 1.5rem; }
@media (max-width: 860px) { .st-body { grid-template-columns: 1fr; } }
.st-stage { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.st-status { min-height: 2rem; font-weight: 700; font-size: 1.05rem; color: var(--muted); }
.st-status.responding { color: var(--brand-ink); }
.st-status .ok { color: var(--ok); }
.st-status .bad { color: var(--bad); }
.st-actions { min-height: 3.2rem; }

.grid-wrap { padding: 1rem; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(380px, 78vw); aspect-ratio: 1; transition: transform .85s cubic-bezier(.6, .05, .3, 1); }
.grid.no-anim { transition: none; }
.cell { --c: var(--brand); border: 0; border-radius: 12px; background: #e9ecf4; cursor: pointer; transition: background .08s, transform .08s, box-shadow .08s; }
.cell:disabled { cursor: default; }
.cell:not(:disabled):hover { background: #dde2ee; }
.cell.lit { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 6px 18px color-mix(in srgb, var(--c) 45%, transparent); transform: scale(1.04); }
.cell.picked { background: color-mix(in srgb, var(--c) 55%, #fff); }

.symbol-screen { --c: var(--brand); width: min(300px, 70vw); height: 150px; border-radius: 16px; background: #151a2d; display: grid; place-items: center; }
.symbol-screen span { font-size: 5rem; font-weight: 800; color: #fff; opacity: 0; transform: scale(.8); transition: opacity .08s, transform .12s; }
.symbol-screen span.show { opacity: 1; transform: scale(1); color: color-mix(in srgb, var(--c) 35%, #fff); }
.slots { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; min-height: 2.6rem; }
.slot { width: 2.4rem; height: 2.6rem; border-radius: 8px; border: 2px dashed #cfd4e2; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.slot.filled { border-style: solid; border-color: var(--brand); background: #eef2ff; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.key { height: 64px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 1.6rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 #e1e4ee; }
.key:not(:disabled):hover { background: #f3f5fb; }
.key:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.key:disabled { color: #b7bccb; cursor: default; }

.st-side { display: flex; flex-direction: column; gap: 1rem; }
.level-meter { background: #f7f8fc; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.lm-top { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.6rem; }
.lm-label { font-weight: 700; color: var(--muted); font-size: .85rem; }
.lm-span b { font-size: 1.6rem; }
.lm-delta { margin-left: auto; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lm-delta.up { color: var(--ok); }
.lm-delta.down { color: var(--bad); }
.lm-track { position: relative; height: 12px; background: #e6e9f2; border-radius: 99px; }
.lm-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transition: width .5s cubic-bezier(.3, .7, .2, 1); }
.lm-tick { position: absolute; top: -1.3rem; transform: translateX(-50%); font-size: .68rem; color: var(--muted); }
.lm-spark { width: 100%; height: 44px; margin-top: .9rem; }
.lm-tick.locked { color: #b8bdcc; }
.lm-locked { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 99px 99px 0; background: repeating-linear-gradient(-45deg, #d9dce6 0 4px, #eceef4 4px 8px); z-index: 1; }

/* ── 이용 단계 제한 안내 ── */
.limit-notice { display: flex; align-items: flex-start; gap: .8rem; background: #fff8eb; border: 1px solid #f5d9a8; color: #6b3a00; border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.limit-notice p { margin: .2rem 0 0; }
.limit-notice .btn-link { margin-left: auto; color: #8a4b00; white-space: nowrap; }
.limit-icon { font-size: 1.2rem; line-height: 1.4; }
.limit-info { margin-bottom: 1.25rem; }
.st-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.st-dots i { width: 12px; height: 12px; border-radius: 50%; }
.st-dots i.ok { background: var(--ok); }
.st-dots i.bad { background: #f0a3a3; }

/* ── Schedule ── */
.schedule-layout { display: grid; grid-template-columns: 360px 1fr; gap: 1.25rem; align-items: start; }
.schedule-layout .card { margin-bottom: 0; }
@media (max-width: 960px) { .schedule-layout { grid-template-columns: 1fr; } }
.schedule-layout + .card { margin-top: 1.25rem; }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.days { display: flex; gap: .35rem; }
.day { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.preview { background: #f5f7fd; border-radius: 10px; padding: .75rem .9rem; margin: 1rem 0; }
.plan-summary { display: grid; grid-template-columns: 70px 1fr; gap: .45rem .75rem; margin: .8rem 0 1.2rem; }
.plan-summary dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.plan-summary dd { margin: 0; }
.plan-progress { display: grid; gap: .4rem; }
.plan-progress .bar i { background: var(--ok); }
.plan-progress span { font-size: .88rem; color: var(--muted); }

.cal-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.cal-head h2 { margin: 0; min-width: 7.5em; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .8rem; color: var(--muted); font-weight: 700; padding: .3rem 0; }
.cal-day { position: relative; aspect-ratio: 1 / .85; border: 1px solid transparent; border-radius: 10px; background: #fafbfe; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: .35rem .45rem; text-align: left; }
.cal-day:hover { border-color: #cdd5ee; }
.cal-day.out { opacity: .38; }
.cal-day .num { font-weight: 700; font-size: .9rem; }
.cal-day .tag { font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 6px; }
.cal-day.today { border-color: var(--ink); }
.cal-day.sel { box-shadow: 0 0 0 2px var(--brand); }
.cal-day.planned .tag { background: #e3e9ff; color: var(--brand-ink); }
.cal-day.today .tag { background: var(--brand); color: #fff; }
.cal-day.completed { background: #e8f7ee; }
.cal-day.completed .tag { background: var(--ok); color: #fff; }
.cal-day.missed .tag { background: #fde8e8; color: var(--bad); }
.legend { display: flex; gap: 1rem; margin-top: .8rem; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.legend .planned::before { background: #c9d5ff; }
.legend .today::before { background: var(--brand); }
.legend .completed::before { background: var(--ok); }
.legend .missed::before { background: #f4b4b4; }
.day-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.day-panel input[type=date] { width: auto; }
.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.upcoming li { display: flex; gap: 1rem; align-items: center; padding: .55rem .8rem; border-radius: 10px; background: #f7f8fc; }
.upcoming li.today { background: #eaf0ff; }
.upcoming li a { margin-left: auto; }

/* ── Stats ── */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.chart-grid .card { margin-bottom: 0; }
.chart-grid + .card { margin-top: 1.25rem; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-box { position: relative; height: 260px; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: .5rem 0 1rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 700; padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .6rem; border-bottom: 1px solid #f0f1f6; white-space: nowrap; }

/* ── Promo (프로그램 소개) ── */
.promo { display: flex; flex-direction: column; gap: 1.5rem; }
.promo h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.promo-hero {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center;
    background: radial-gradient(120% 140% at 100% 0%, #34408a 0%, #1b2140 45%, #151a2d 100%);
    color: #fff; border-radius: 24px; padding: clamp(1.75rem, 4vw, 3.25rem);
    overflow: hidden;
}
.promo-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; color: #c8d3ff; background: rgba(124, 155, 255, .16); border: 1px solid rgba(124, 155, 255, .35); border-radius: 999px; padding: .2rem .75rem; margin-bottom: 1rem; }
.promo-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.18; letter-spacing: -0.035em; margin-bottom: .9rem; }
.promo-hero h1 span { background: linear-gradient(90deg, #8fb0ff, #c7a4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-lead { color: #d5dbf0; font-size: 1.08rem; max-width: 34em; margin-bottom: 1.5rem; }
.promo-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.promo-btn-ghost { background: transparent; color: #fff; border-color: #4b5888; }
.promo-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.promo-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; gap: 1.5rem; flex-wrap: wrap; color: #aab4d8; font-size: .9rem; }
.promo-facts b { color: #fff; font-size: 1.25rem; margin-right: .2rem; }

.promo-demo { display: flex; justify-content: center; }
.promo-demo-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.1rem 1.1rem 1rem; width: min(340px, 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg); }
.promo-demo-head { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; margin-bottom: .8rem; }
.promo-demo-head em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--muted); }
.promo-demo-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; aspect-ratio: 1; }
.promo-grid i { position: relative; border-radius: 10px; background: #e9ecf4; display: grid; place-items: center; }
.promo-grid i.on { animation: promo-lit 6s infinite; animation-delay: calc(var(--d) * .85s); }
.promo-grid i b { font-size: .95rem; color: #fff; opacity: 0; animation: promo-num 6s infinite; animation-delay: calc(var(--d) * .85s); }
@keyframes promo-lit {
    0% { background: #e9ecf4; transform: scale(1); }
    3%, 11% { background: var(--brand); transform: scale(1.06); box-shadow: 0 6px 16px rgba(79, 124, 255, .45); }
    15%, 100% { background: #e9ecf4; transform: scale(1); box-shadow: none; }
}
@keyframes promo-num { 0%, 2% { opacity: 0; } 4%, 11% { opacity: 1; } 15%, 100% { opacity: 0; } }
.promo-demo-caption { text-align: center; margin: .8rem 0 0; font-size: .88rem; color: var(--muted); }

.promo-section { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: var(--shadow); }
.promo-kicker { font-size: .82rem; font-weight: 800; letter-spacing: .06em; color: var(--brand-ink); margin-bottom: .4rem; }
.promo-head { max-width: 46em; margin-bottom: 1.5rem; }

.promo-what { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.promo-examples { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.promo-examples li { display: flex; gap: .75rem; align-items: center; background: #f6f7fb; border-radius: 12px; padding: .75rem .9rem; font-weight: 500; }
.promo-examples span { font-size: 1.3rem; }

.promo-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.promo-feature { border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; background: #fbfcfe; }
.promo-feature h3 { font-size: 1.02rem; margin: .7rem 0 .4rem; }
.promo-feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.promo-feature-main { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1fr; gap: 0 1.5rem; align-items: center; background: linear-gradient(135deg, #f1f4ff, #f8f5ff); border-color: #dde3fb; }
.promo-feature-main .promo-icon { grid-row: span 2; }
.promo-feature-main h3 { grid-column: 2; margin-top: 0; font-size: 1.15rem; }
.promo-feature-main p { grid-column: 2; color: #4d5470; }
.promo-feature-main .promo-meter { grid-column: 3; grid-row: 1 / span 2; }
.promo-icon { width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.4rem; }
.promo-meter { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.promo-meter-track { position: relative; flex: 1; height: 12px; border-radius: 99px; background: linear-gradient(90deg, #b7f0cf, #ffe3a6, #ffb4b4); }
.promo-meter-track i { position: absolute; top: 50%; left: 62%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(79, 124, 255, .5); animation: promo-seek 4s ease-in-out infinite; }
.promo-meter-track em { position: absolute; top: 18px; left: 62%; transform: translateX(-50%); font-style: normal; color: var(--brand-ink); white-space: nowrap; }
@keyframes promo-seek { 0%, 100% { left: 56%; } 30% { left: 66%; } 60% { left: 59%; } 80% { left: 64%; } }

.promo-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.promo-task { --c: var(--brand); border-radius: 16px; padding: 1.1rem 1.2rem; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); border-top: 4px solid var(--c); }
.promo-task h3 { margin: .5rem 0 .3rem; font-size: 1.02rem; }
.promo-task p { margin: 0; font-size: .9rem; color: #4d5470; }
.promo-task-tag { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--c); background: #fff; border-radius: 999px; padding: .1rem .55rem; border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }

.promo-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.promo-steps li { counter-increment: s; position: relative; padding: 1.2rem 1.2rem 1.2rem 4rem; background: #f6f7fb; border-radius: 16px; }
.promo-steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.promo-steps p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }

.promo-effect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.promo-effect { border-left: 4px solid var(--ok); background: #f3fbf6; border-radius: 0 14px 14px 0; padding: 1rem 1.1rem; }
.promo-effect b { font-size: 1.02rem; }
.promo-effect p { margin: .4rem 0 0; font-size: .92rem; color: #4d5470; }
.promo-honest { margin-top: 1.25rem; background: #f6f7fb; border: 1px dashed #cfd4e2; border-radius: 14px; padding: 1rem 1.2rem; }
.promo-honest p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }

.promo-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.promo-who > div { text-align: center; padding: 1.4rem 1rem; border-radius: 16px; background: #fbfcfe; border: 1px solid var(--line); }
.promo-who span { font-size: 2rem; display: block; margin-bottom: .3rem; }
.promo-who p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }

.promo-faq { display: grid; gap: .6rem; }
.promo-faq details { border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.1rem; background: #fff; }
.promo-faq details[open] { background: #fbfcfe; }
.promo-faq summary { cursor: pointer; font-weight: 700; padding: .75rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.promo-faq summary::-webkit-details-marker { display: none; }
.promo-faq summary::after { content: "+"; color: var(--muted); font-weight: 600; font-size: 1.2rem; line-height: 1; }
.promo-faq details[open] summary::after { content: "−"; }
.promo-faq p { margin: 0 0 .9rem; color: #4d5470; }

.promo-final { text-align: center; border-radius: 24px; padding: clamp(2rem, 5vw, 3.25rem) 1.5rem; color: #fff; background: linear-gradient(135deg, #4f7cff, #7a5cff); }
.promo-final p { color: #e3e8ff; margin-bottom: 1.4rem; }
.promo-btn-light { background: #fff; color: var(--brand-ink); }
.promo-btn-light:hover { background: #eef2ff; }

@media (max-width: 960px) {
    .promo-hero, .promo-what { grid-template-columns: 1fr; }
    .promo-demo-card { transform: none; }
    .promo-features { grid-template-columns: repeat(2, 1fr); }
    .promo-feature-main { grid-template-columns: auto 1fr; }
    .promo-feature-main .promo-meter { grid-column: 1 / -1; grid-row: auto; margin-top: 1.2rem; padding-bottom: 1.2rem; }
    .promo-tasks, .promo-steps, .promo-effect-grid, .promo-who { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .promo-features, .promo-tasks, .promo-steps, .promo-effect-grid, .promo-who { grid-template-columns: 1fr; }
    .promo-feature-main { grid-template-columns: 1fr; }
    .promo-feature-main .promo-icon { grid-row: auto; margin-bottom: .6rem; }
    .promo-feature-main h3, .promo-feature-main p { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .promo-grid i.on, .promo-grid i b, .promo-meter-track i { animation: none; }
    .promo-grid i b { opacity: 1; }
    .promo-grid i.on { background: var(--brand); }
}

/* ── 공용 바닥글 ── */
.site-footer { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem) 2.5rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.site-footer a { color: var(--muted); }
.topbar-guest { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.topbar-guest a:not(.btn) { color: var(--muted); font-weight: 600; }

/* ── Admin ── */
.nav a.nav-admin { margin-left: auto; color: #8a4b00; }
.nav a.nav-admin.active { background: #8a4b00; color: #fff; }
.admin-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #8a4b00; background: #fff4e0; border: 1px solid #f5d9a8; border-radius: 999px; padding: .1rem .6rem; margin-bottom: .4rem; }
.notice-bad { background: #fff1f1; border-color: #f3c4c4; color: var(--bad); }
.admin-toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.admin-toolbar input[type=text] { width: auto; flex: 1 1 220px; max-width: 320px; }
.admin-toolbar .row-gap { margin-left: auto; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
a.chip:hover { text-decoration: none; }
.admin-empty { padding: 2rem 0; }
.admin-table td { vertical-align: middle; }
.table .num { text-align: right; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: #eef1fb; color: var(--muted); margin-right: .25rem; }
.badge-admin { background: #fff4e0; color: #8a4b00; }
.badge-ok { background: #e6f6ec; color: var(--ok); }
.badge-bad { background: #fff1f1; color: var(--bad); }
.badge-limit { background: #fff8eb; color: #8a4b00; }
.admin-username { font-size: 1rem; font-weight: 500; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-dl { display: grid; grid-template-columns: 7rem 1fr; gap: .45rem 1rem; margin: .5rem 0 1rem; }
.admin-dl dt { color: var(--muted); font-size: .9rem; }
.admin-dl dd { margin: 0; }
.admin-danger { border-color: #f3c4c4; }
.admin-danger-btn { margin-top: .6rem; }

/* ── Blazor 오류 표시 ── */
.blazor-error { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff4d6; padding: .8rem 1.25rem; box-shadow: 0 -1px 6px rgba(0, 0, 0, .1); z-index: 100; }
.blazor-error .reload { margin-left: .5rem; font-weight: 700; }
#components-reconnect-modal { font-family: inherit; }

@media (max-width: 640px) {
    .topbar { gap: .8rem; flex-wrap: wrap; }
    .nav { order: 3; width: 100%; overflow-x: auto; }
    .hero { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
    .task-level { grid-template-columns: 14px 1fr 90px; }
    .task-level .bar { display: none; }
}
