/* 꿈랩 GGUM LAB — 랜딩페이지 스타일 (밝고 단순, 태블릿·휴대폰 우선) */
:root {
  --bg: #f6f7fb; --card: #ffffff; --line: #e3e6ee; --fg: #1b1f2a; --fg2: #5b6271; --fg3: #9aa1b1;
  --brand: #4f46e5; --brand2: #6366f1; --mint: #10b981; --amber: #f59e0b; --red: #ef4444;
  --radius: 16px; --shadow: 0 6px 24px rgba(27,31,42,.08);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 12px; padding: 10px 16px; background: #eef0f6; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: .15s; }
button:hover, .btn:hover { filter: brightness(.96); }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--brand); color: #fff; font-weight: 800; }
.primary:hover { background: var(--brand2); filter: none; }
.big { padding: 18px 28px; font-size: 1.25rem; border-radius: 16px; }
.ghost { background: transparent; border: 1px solid var(--line); }
.danger { background: var(--red); color: #fff; font-weight: 700; }
input, select { font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--fg); }
input:focus, select:focus { outline: 2px solid var(--brand); border-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.muted { color: var(--fg2); } .dim { color: var(--fg3); }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #eef0f6; font-size: .8rem; font-weight: 700; color: var(--fg2); }
.chip.on { background: rgba(16,185,129,.15); color: #047857; }
.chip.warn { background: rgba(245,158,11,.15); color: #b45309; }

.wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; }
.logo .mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--mint)); display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.logo small { display: block; font-size: .72rem; color: var(--fg3); font-weight: 600; letter-spacing: 2px; }

/* 지금 수업 */
.now { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-radius: 22px; padding: 22px 22px 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.now h2 { font-size: 1rem; letter-spacing: 2px; opacity: .85; margin-bottom: 10px; }
.now .slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.slot { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.slot .g { font-size: .85rem; opacity: .85; font-weight: 700; }
.slot .n { font-size: 1.35rem; font-weight: 900; }
.slot .code { font-size: 2.2rem; font-weight: 900; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.slot .code small { font-size: .8rem; letter-spacing: 0; opacity: .8; display: block; font-weight: 600; }
.slot .note { opacity: .9; font-size: .95rem; }
.slot .btn { background: #fff; color: var(--brand); font-weight: 900; padding: 14px; font-size: 1.1rem; border-radius: 14px; }
.now .empty { opacity: .9; padding: 10px 4px; }
.now .empty b { display: block; font-size: 1.2rem; margin-bottom: 4px; }

/* 앱 목록 */
.sec { margin-top: 26px; }
.sec h2 { font-size: 1.2rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.app { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.app .head { display: flex; align-items: center; gap: 10px; }
.app .ic { font-size: 1.7rem; width: 44px; height: 44px; border-radius: 12px; background: #eef0f6; display: grid; place-items: center; }
.app .nm { font-weight: 900; font-size: 1.05rem; }
.app .sb { font-size: .8rem; color: var(--fg3); }
.app .ds { color: var(--fg2); font-size: .92rem; flex: 1; }
.app .acts { display: flex; gap: 8px; }
.app .acts .btn { flex: 1; padding: 11px; font-weight: 800; }
.app .acts .btn.t { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); color: var(--fg2); font-weight: 600; font-size: .85rem; }
.mat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.mat b { flex: 1; }
.foot { margin-top: 40px; text-align: center; color: var(--fg3); font-size: .85rem; }
.foot a { color: var(--fg3); text-decoration: underline; }

/* 선생님 페이지 */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 10px; }
.form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.form label { font-size: .85rem; color: var(--fg2); font-weight: 700; display: block; margin-bottom: 4px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form input.code { font-size: 1.5rem; letter-spacing: 6px; text-transform: uppercase; text-align: center; font-weight: 800; }
.slotlist { display: flex; flex-direction: column; gap: 8px; }
.slotrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f1f3f9; flex-wrap: wrap; }
.slotrow b { min-width: 60px; }
.slotrow .code { font-weight: 900; letter-spacing: 3px; }
.pin { max-width: 420px; margin: 40px auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1b1f2a; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; }
