:root { --blue:#1f6bff; --blue-d:#1556d6; --ink:#111; --sub:#666; --line:#eaeaea; --bg:#fff; --soft:#f6f7f9; --red:#ff3b30; --ok:#16a34a; }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:"Noto Sans KR",sans-serif; color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button, input, select, textarea { font:inherit; color:inherit; }
.wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
.narrow { max-width:760px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:48px; padding:0 28px; border-radius:999px; background:var(--blue); color:#fff; font-weight:700; font-size:15px; border:0; cursor:pointer; transition:background .15s; }
.btn:hover { background:var(--blue-d); }
.btn.sm { height:36px; padding:0 16px; font-size:14px; }
.btn.line { background:#fff; color:var(--ink); border:1px solid #ddd; }
.btn.line:hover { background:var(--soft); }
.btn.danger { background:#fff; color:#d00; border:1px solid #f0c0c0; }
.btn.block { width:100%; border-radius:10px; }
.muted { color:var(--sub); }
.page { padding:56px 0 96px; min-height:60vh; }
.page h1 { font-size:28px; font-weight:900; margin-bottom:24px; }
.flash { padding:12px 16px; border-radius:10px; margin-bottom:20px; font-size:14px; }
.flash.ok { background:#ecfdf3; color:#166534; } .flash.err { background:#fef2f2; color:#991b1b; }

/* header */
header.top { position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line); }
header.top .wrap { height:64px; display:flex; align-items:center; gap:32px; }
header.top .logo img { height:36px; width:auto; }
header.top nav { display:flex; gap:24px; font-size:14px; font-weight:500; flex:1; }
header.top nav a:hover, header.top nav a.on { color:var(--blue); }
header.top .auth { display:flex; gap:8px; align-items:center; }
header.top .auth a, header.top .auth button { height:36px; padding:0 18px; border-radius:999px; font-size:14px; font-weight:700; display:inline-flex; align-items:center; border:1px solid #ddd; background:#fff; cursor:pointer; }
header.top .auth .join { background:var(--blue); border-color:var(--blue); color:#fff; }
header.top .auth .menu-btn { display:none; border:0; padding:0 6px; font-size:22px; background:none; }

/* hero */
.hero { position:relative; color:#fff; background:#111 url(/img/hero.png) center/cover no-repeat; }
.hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.6) 55%,rgba(0,0,0,.35) 100%); }
.hero .wrap { position:relative; padding:72px 24px 80px; }
.hero h1 { font-size:40px; line-height:1.35; font-weight:900; letter-spacing:-.5px; }
.hero p { margin-top:28px; font-size:16px; line-height:1.8; color:#e6e6e6; }
.hero p + p { margin-top:18px; }
.hero .btn { margin-top:32px; }
.why { padding:96px 0; }
.why .wrap { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.why h2 { font-size:40px; line-height:1.3; font-weight:900; }
.why p { font-size:15px; line-height:1.9; color:var(--sub); }
.head { text-align:center; margin-bottom:40px; }
.head h2 { font-size:30px; font-weight:900; }
.head p { margin-top:10px; color:var(--sub); font-size:15px; }

.passes { background:var(--soft); padding:80px 0; }
.marquee { overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.track { display:flex; gap:20px; width:max-content; animation:slide 60s linear infinite; }
.marquee:hover .track { animation-play-state:paused; }
@keyframes slide { to { transform:translateX(-50%); } }
.pcard { width:300px; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.06); flex:none; }
.pcard .ph { height:170px; background:#222 center top/cover no-repeat; }
.pcard .pt { padding:16px 18px 18px; }
.pcard b { display:block; font-size:15px; line-height:1.45; min-height:44px; }
.pcard span { display:block; margin-top:8px; font-size:13px; color:#999; }
.center { text-align:center; margin-top:40px; }

.courses { background:#000; color:#fff; padding:80px 0 88px; }
.courses h2 { font-size:26px; font-weight:900; margin-bottom:32px; }
.cgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.course { display:block; }
.course .thumb { aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:#222; }
.course .thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.course:hover .thumb img { transform:scale(1.03); }
.tagrow { display:flex; align-items:center; gap:8px; margin-top:14px; font-size:12px; }
.tag { background:#fff; color:#000; font-weight:700; padding:2px 7px; border-radius:4px; }
.light .tag { background:#111; color:#fff; }
.rate { color:#999; }
.rate::before { content:"★ "; color:#ffc107; }
.course h3 { margin-top:10px; font-size:17px; line-height:1.45; font-weight:700; }
.price { margin-top:12px; }
.price .free { font-size:20px; font-weight:900; }
.price s { display:block; color:#888; font-size:13px; }
.price .now { font-size:22px; font-weight:900; margin-top:2px; }
.price .now em { font-style:normal; color:var(--red); margin-right:6px; }
.price .total { font-size:13px; color:#999; margin-top:2px; }
.sale { display:inline-block; margin-top:10px; background:#e5003d; color:#fff; font-size:11px; font-weight:700; padding:2px 6px; border-radius:3px; }

.reviews { padding:96px 0; }
.rtrack { display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 24px 20px; max-width:1248px; margin:0 auto; }
.rtrack::-webkit-scrollbar { height:8px; } .rtrack::-webkit-scrollbar-thumb { background:#ddd; border-radius:4px; }
.rcard { flex:none; width:320px; scroll-snap-align:start; border:1px solid var(--line); border-radius:14px; padding:24px; display:flex; flex-direction:column; cursor:pointer; background:#fff; }
.stars { color:#ffc107; font-size:18px; letter-spacing:2px; }
.stars .off { color:#ddd; }
.rcard .who { margin-top:10px; font-size:14px; font-weight:700; }
.rcard .who small, .rlist .who small { font-weight:400; color:#999; margin-left:6px; }
.rcard p { margin-top:12px; font-size:14px; line-height:1.75; color:#444; display:-webkit-box; -webkit-line-clamp:8; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-line; }
.rcard.open p { -webkit-line-clamp:unset; }
.rcard .more { margin-top:auto; padding-top:12px; font-size:13px; color:var(--blue); font-weight:500; }

/* board */
.board { width:100%; border-collapse:collapse; font-size:14px; border-top:2px solid var(--ink); }
.board th { font-weight:500; color:var(--sub); padding:14px 8px; border-bottom:1px solid var(--line); }
.board td { padding:16px 8px; border-bottom:1px solid var(--line); text-align:center; color:#444; }
.board td.t { text-align:left; color:var(--ink); }
.board td.t a:hover { text-decoration:underline; }
.board .cnt { color:var(--blue); margin-left:4px; }
.badge { display:inline-block; font-size:11px; font-weight:700; padding:2px 7px; border-radius:999px; background:#eef3ff; color:var(--blue); margin-left:6px; vertical-align:1px; }
.badge.wait { background:#f3f3f3; color:#888; }
.toolbar { display:flex; gap:8px; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.toolbar form { display:flex; gap:8px; }
.toolbar input, .toolbar select { height:40px; border:1px solid #ddd; border-radius:8px; padding:0 12px; background:#fff; }
.sorts a { font-size:14px; color:#999; margin-right:12px; } .sorts a.on { color:var(--ink); font-weight:700; }
.pager { display:flex; gap:6px; justify-content:center; margin-top:32px; }
.pager a, .pager span { min-width:34px; height:34px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-size:13px; color:#666; }
.pager .on { background:var(--blue); color:#fff; }
.post-head { border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:24px; }
.post-head h1 { margin-bottom:10px; }
.post-meta { font-size:13px; color:#999; display:flex; gap:12px; flex-wrap:wrap; }
.post-body { font-size:15px; line-height:1.85; white-space:pre-wrap; word-break:break-word; min-height:120px; }
.comments { margin-top:40px; border-top:1px solid var(--line); padding-top:24px; }
.comment { padding:16px 0; border-bottom:1px solid var(--line); }
.comment .who { font-size:13px; font-weight:700; } .comment .who small { color:#999; font-weight:400; margin-left:6px; }
.comment .who .badge { margin-left:4px; }
.comment p { margin-top:6px; font-size:14px; line-height:1.7; white-space:pre-wrap; }
.lock { text-align:center; padding:80px 0; color:var(--sub); }
.lock b { display:block; font-size:20px; color:var(--ink); margin-bottom:8px; }

/* forms */
.form { display:grid; gap:16px; }
.form label { display:grid; gap:6px; font-size:14px; font-weight:500; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=tel], .form input[type=number], .form input[type=url], .form textarea, .form select {
  width:100%; border:1px solid #ddd; border-radius:10px; padding:12px 14px; background:#fff; font-weight:400; }
.form textarea { min-height:180px; resize:vertical; line-height:1.6; }
.form input:focus, .form textarea:focus, .form select:focus { outline:2px solid #bcd3ff; border-color:var(--blue); }
.form .check { display:flex; align-items:center; gap:8px; font-weight:400; }
.form .hint { font-size:12px; color:#999; font-weight:400; }
.card { border:1px solid var(--line); border-radius:16px; padding:32px; background:#fff; }
.auth-box { max-width:420px; margin:0 auto; }
.auth-box .alt { text-align:center; margin-top:18px; font-size:14px; color:var(--sub); }
.auth-box .alt a { color:var(--blue); font-weight:500; }
.agree { border:1px solid var(--line); border-radius:10px; padding:14px; display:grid; gap:10px; }

/* course detail */
.cd-top { display:grid; grid-template-columns:1.3fr 1fr; gap:40px; align-items:start; }
.cd-top .thumb { border-radius:14px; overflow:hidden; aspect-ratio:16/9; background:#eee; }
.cd-top .thumb img { width:100%; height:100%; object-fit:cover; }
.cd-side { position:sticky; top:88px; }
.cd-side h1 { font-size:24px; line-height:1.4; margin:8px 0 12px; }
.cd-side .price s { color:#999; }
.cd-side .btn { margin-top:24px; width:100%; border-radius:10px; }
.cd-side .note { font-size:12px; color:#999; margin-top:10px; text-align:center; }
.tabs { display:flex; gap:28px; border-bottom:1px solid var(--line); margin:48px 0 32px; position:sticky; top:64px; background:#fff; z-index:5; }
.tabs a { padding:16px 0; font-weight:700; color:#999; border-bottom:2px solid transparent; }
.tabs a.on, .tabs a:hover { color:var(--ink); border-color:var(--ink); }
.cd-sec { padding-bottom:56px; scroll-margin-top:130px; }
.cd-sec h2 { font-size:20px; margin-bottom:16px; }
.prose { font-size:15px; line-height:1.85; color:#333; }
.prose p, .prose ul, .prose h3 { margin-bottom:14px; } .prose ul { padding-left:20px; } .prose h3 { font-size:17px; margin-top:24px; }
.comp { list-style:none; display:grid; gap:10px; }
.comp li { border:1px solid var(--line); border-radius:10px; padding:14px 16px; font-weight:500; }
.rlist .item { padding:20px 0; border-bottom:1px solid var(--line); }
.rlist .who { font-size:14px; font-weight:700; margin-top:6px; }
.rlist p { margin-top:8px; font-size:14px; line-height:1.75; color:#444; white-space:pre-line; }
.star-input { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:2px; }
.star-input input { display:none; }
.star-input label { font-size:28px; color:#ddd; cursor:pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color:#ffc107; }
.summary-rate { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .summary-rate b { font-size:28px; }

/* roadmap */
.road-hero { background:var(--soft); padding:64px 0; text-align:center; }
.road-hero h1 { font-size:34px; font-weight:900; }
.road-hero p { margin-top:10px; color:var(--sub); }
.road { display:grid; gap:20px; margin-top:48px; counter-reset:step; }
.road a { display:grid; grid-template-columns:72px 280px 1fr; gap:24px; align-items:center; border:1px solid var(--line); border-radius:16px; padding:20px; transition:box-shadow .2s; }
.road a:hover { box-shadow:0 6px 24px rgba(0,0,0,.08); }
.road .step { counter-increment:step; font-size:13px; color:var(--blue); font-weight:900; text-align:center; }
.road .step::after { content:counter(step, decimal-leading-zero); display:block; font-size:28px; }
.road img { border-radius:10px; aspect-ratio:16/9; object-fit:cover; width:100%; }
.road h3 { font-size:18px; line-height:1.45; }

/* mypage */
.my-grid { display:grid; grid-template-columns:220px 1fr; gap:40px; }
.my-nav { display:grid; gap:4px; align-content:start; }
.my-nav a { padding:10px 14px; border-radius:8px; font-size:14px; } .my-nav a.on { background:var(--soft); font-weight:700; }
.coupon { display:flex; justify-content:space-between; align-items:center; gap:16px; border:1px dashed #c9b28a; background:#fffaf2; border-radius:12px; padding:18px 20px; }
.coupon b { font-size:16px; } .coupon .muted { font-size:13px; margin-top:4px; }
.coupon.used { opacity:.5; }
.stack { display:grid; gap:12px; }

/* popup */
.popup-bg { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:100; display:none; align-items:center; justify-content:center; padding:16px; }
.popup-bg.show { display:flex; }
.popup { width:100%; max-width:520px; border-radius:18px; overflow:hidden; background:#fff; }
.popup .ticket { background:#6b3a12; color:#fff; padding:28px 24px 22px; text-align:center; position:relative; }
.popup .ticket small { letter-spacing:2px; font-size:14px; }
.popup .ticket .t { margin:16px auto 12px; background:#f3e6d3; color:#3b2210; border-radius:6px; padding:20px; max-width:340px; outline:2px solid #3b2210; outline-offset:-8px; }
.popup .ticket .t span { display:block; font-size:15px; }
.popup .ticket .t b { display:block; font-size:30px; font-weight:900; margin-top:4px; }
.popup .ticket p { font-size:12px; opacity:.85; }
.popup .x { position:absolute; right:14px; top:14px; width:30px; height:30px; border-radius:50%; border:0; background:rgba(255,255,255,.8); color:#333; cursor:pointer; font-size:16px; }
.popup .body { padding:22px 24px 18px; }
.popup .body p { font-size:15px; line-height:1.6; white-space:pre-line; }
.popup .body .btn { margin-top:20px; width:100%; border-radius:10px; }
.popup .body label { display:flex; align-items:center; gap:8px; font-size:14px; margin-top:14px; color:#444; cursor:pointer; }

/* admin */
.admin-nav { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.admin-nav a { padding:8px 14px; border-radius:999px; border:1px solid var(--line); font-size:14px; } .admin-nav a.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:32px; }
.stat { border:1px solid var(--line); border-radius:14px; padding:20px; } .stat b { display:block; font-size:28px; margin-top:6px; }
.tbl { width:100%; border-collapse:collapse; font-size:13px; }
.tbl th, .tbl td { padding:10px 8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.tbl th { color:var(--sub); font-weight:500; }
.tbl form { display:inline; }
.tbl .acts { display:flex; gap:6px; flex-wrap:wrap; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

footer.foot { background:#111; color:#999; font-size:13px; padding:40px 0 48px; line-height:1.9; }
footer.foot b { color:#fff; }
footer.foot .links { margin-top:12px; display:flex; gap:14px; } footer.foot .links a { color:#ccc; }

@media (max-width:900px) {
  header.top nav { display:none; position:absolute; top:64px; left:0; right:0; background:#fff; flex-direction:column; gap:0; border-bottom:1px solid var(--line); }
  header.top nav.open { display:flex; }
  header.top nav a { padding:14px 16px; border-top:1px solid var(--line); }
  header.top .wrap { justify-content:space-between; gap:12px; }
  header.top .auth a, header.top .auth button { padding:0 12px; }
  header.top .auth .menu-btn { display:inline-flex; }
  .hero h1 { font-size:28px; } .hero .wrap { padding:56px 16px 64px; }
  .why { padding:64px 0; } .why .wrap { grid-template-columns:1fr; gap:20px; } .why h2 { font-size:30px; }
  .cgrid { grid-template-columns:1fr; gap:36px; }
  .wrap { padding:0 16px; }
  .rtrack { padding:4px 16px 20px; } .rcard { width:280px; }
  .pcard { width:260px; } .pcard .ph { height:150px; }
  .cd-top { grid-template-columns:1fr; gap:24px; } .cd-side { position:static; }
  .tabs { gap:20px; overflow-x:auto; }
  .road a { grid-template-columns:1fr; } .road .step { text-align:left; }
  .my-grid { grid-template-columns:1fr; gap:16px; } .my-nav { grid-auto-flow:column; overflow-x:auto; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .two { grid-template-columns:1fr; }
  .board .hide-m { display:none; }
  .card { padding:24px 18px; }
  .tbl { display:block; overflow-x:auto; }
}

/* social login */
.sns { display:grid; gap:10px; margin-bottom:20px; }
.sns-btn { display:flex; align-items:center; justify-content:center; gap:10px; height:48px; border-radius:10px; font-weight:700; font-size:15px; position:relative; }
.sns-btn .ic { width:20px; height:20px; position:absolute; left:16px; background:center/contain no-repeat; }
.sns-btn.kakao { background:#FEE500; color:rgba(0,0,0,.85); }
.sns-btn.kakao .ic { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 2.8 1.9 5.3 4.7 6.7l-1 3.6c-.1.3.3.6.6.4l4.3-2.8c.5.1.9.1 1.4.1 5.5 0 10-3.6 10-8S17.5 3 12 3z' fill='%23000'/%3E%3C/svg%3E"); }
.sns-btn.naver { background:#03C75A; color:#fff; }
.sns-btn.naver .ic { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.6 12.7 8.1 2H2v20h6.4V11.3L15.9 22H22V2h-6.4z' fill='%23fff'/%3E%3C/svg%3E"); width:16px; height:16px; left:18px; }
.sns-btn.google { background:#fff; color:#1f1f1f; border:1px solid #dadce0; }
.sns-btn.google .ic { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.2 0 24 0 14.6 0 6.6 5.4 2.6 13.2l7.9 6.2C12.4 13.7 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.1 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.4c-.5 2.9-2.2 5.3-4.6 7l7.5 5.8c4.4-4 6.8-10 6.8-17.3z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.4-.8-3-.8-4.6s.3-3.2.8-4.6l-7.9-6.2C1 16.6 0 20.2 0 24s1 7.4 2.6 10.8l7.9-6.2z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.5-5.8c-2.1 1.4-4.9 2.3-8.4 2.3-6.3 0-11.6-4.2-13.5-10l-7.9 6.2C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E"); }
.or { display:flex; align-items:center; gap:12px; color:#aaa; font-size:13px; margin:4px 0 20px; }
.or::before, .or::after { content:""; flex:1; height:1px; background:var(--line); }
.links-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
