/* ===== 신주일 AI 주식특강 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

:root {
  --navy-900: #060f1c;
  --navy-800: #091525;
  --navy-700: #0e1d31;
  --navy-600: #142740;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --orange: #ef5122;
  --orange-soft: #ff7a4d;
  --teal: #0d3b46;
  --text: #eef3fa;
  --text-dim: #9fb0c6;
  --text-mute: #6f829a;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-800);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Malgun Gothic', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 15, 28, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand .mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--orange); color: #fff; font-size: 14px; font-weight: 900;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--text-mute); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--text-dim); }
.nav a:hover { color: #fff; }
.nav .btn { color: #fff; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #ff6334; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(239, 81, 34, .18), transparent 62%),
    radial-gradient(700px 500px at 12% 90%, rgba(13, 59, 70, .55), transparent 60%),
    var(--navy-800);
  border-bottom: 1px solid var(--line);
}
/* 가로형 비주얼: 모바일 전용, CTA 바로 위 (PC는 기존 레이아웃 유지) */
.hero-banner { display: none; }
.hero-inner {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: end;
  padding: 64px 0 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--text-dim); margin-bottom: 20px;
}
.eyebrow .tag {
  background: var(--orange); color: #fff; padding: 4px 11px; border-radius: 6px;
  font-size: 12px; letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.16; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px;
}
.hero h1 .thin { font-weight: 400; color: #dbe5f2; }
.hero-quote {
  font-size: clamp(15px, 2vw, 20px); font-weight: 600; color: var(--orange-soft);
  margin: 0 0 26px;
}
.hero-lead { color: var(--text-dim); font-size: 16px; max-width: 46ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 54px; }
.hero-portrait { position: relative; }
.hero-portrait img { margin: 0 auto; max-height: 520px; width: auto; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-portrait { display: none; }
}
@media (max-width: 700px) {
  .hero-banner {
    display: block; line-height: 0;
    margin: 0 0 22px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line);
  }
  .hero-banner img { width: 100%; }
}

/* 핵심 정보 바 */
.factbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--orange); color: #fff;
}
.factbar div { padding: 20px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.22); }
.factbar div:last-child { border-right: 0; }
.factbar dt { font-size: 13px; opacity: .9; font-weight: 600; margin-bottom: 4px; }
.factbar dd { margin: 0; font-size: clamp(15px, 2vw, 21px); font-weight: 800; letter-spacing: -.02em; }
.factbar dd small { display: block; font-size: 12px; font-weight: 500; opacity: .92; letter-spacing: 0; }
@media (max-width: 760px) {
  .factbar { grid-template-columns: repeat(2, 1fr); }
  .factbar div:nth-child(2n) { border-right: 0; }
}

/* ---------- 섹션 공통 ---------- */
section { padding: 84px 0; }
.section-head { margin-bottom: 40px; }
.section-head .kicker {
  color: var(--orange); font-weight: 800; font-size: 14px; letter-spacing: .08em;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800;
}
.section-head p { color: var(--text-dim); margin: 0; font-size: 16px; }
.alt { background: var(--navy-900); border-block: 1px solid var(--line); }

/* 커리큘럼 */
.curriculum { display: grid; gap: 14px; }
.lesson {
  display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: center;
  padding: 22px 24px; background: var(--navy-700);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.lesson:hover { border-color: rgba(239,81,34,.5); transform: translateX(3px); }
.lesson .no { font-size: 13px; font-weight: 800; color: var(--orange); letter-spacing: .02em; }
.lesson h3 { margin: 0 0 4px; font-size: clamp(16px, 2.2vw, 19px); font-weight: 700; letter-spacing: -.02em; }
.lesson p { margin: 0; color: var(--text-mute); font-size: 14px; }
@media (max-width: 620px) { .lesson { grid-template-columns: 1fr; gap: 6px; padding: 18px; } }

.note { margin-top: 20px; color: var(--text-mute); font-size: 14px; }

/* 혜택 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--teal), var(--navy-700));
  border: 1px solid var(--line);
}
.card .ico { font-size: 22px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

/* 강사 */
.instructor { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.instructor img { border-radius: var(--radius); }
.instructor h3 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; letter-spacing: -.03em; }
.instructor .role { color: var(--orange); font-weight: 700; margin: 0 0 20px; }
.instructor ul { margin: 0; padding-left: 18px; color: var(--text-dim); }
.instructor li { margin-bottom: 8px; }
@media (max-width: 820px) {
  .instructor { grid-template-columns: 1fr; gap: 24px; }
  .instructor img { max-width: 240px; }
}

/* 광고 원본 */
.ad-figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.ad-figure figcaption { padding: 14px 18px; color: var(--text-mute); font-size: 13px; background: var(--navy-700); }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, #c93f14, var(--orange));
  text-align: center; padding: 70px 0;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -.03em; }
.cta-band p { margin: 0 0 28px; opacity: .95; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn-white { background: #fff; color: #b93a12; }

/* 푸터 */
.site-footer { background: var(--navy-900); padding: 46px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 6px; color: var(--text-mute); font-size: 13.5px; }
.disclaimer { max-width: 60ch; font-size: 12.5px !important; line-height: 1.7; color: #5d6f86 !important; }

/* ---------- 로그인 ---------- */
.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(800px 500px at 50% -10%, rgba(239,81,34,.16), transparent 60%), var(--navy-800);
}
.auth-card {
  width: min(100%, 430px); background: var(--navy-700);
  border: 1px solid var(--line); border-radius: 18px; padding: 40px 34px;
}
.auth-card h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.03em; }
.auth-card .sub { color: var(--text-dim); font-size: 14.5px; margin: 0 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: var(--navy-900); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 16px; font-family: inherit;
}
.field input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.msg { margin: 4px 0 14px; font-size: 14px; min-height: 20px; }
.msg.error { color: #ff8a6b; }
.msg.ok { color: #6fd6a4; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--text-mute); }
.auth-foot a { color: var(--text-dim); text-decoration: underline; }

/* ---------- 강의실 ---------- */
.room { padding: 34px 0 90px; }
.room-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.room-head h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; letter-spacing: -.03em; }
.room-head p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.player-shell {
  background: #000; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center;
}
.player-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-empty { color: var(--text-mute); font-size: 15px; text-align: center; padding: 24px; }
.now-playing { margin: 18px 0 34px; }
.now-playing h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.02em; }
.now-playing p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.playlist { display: grid; gap: 10px; }
.track {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  width: 100%; text-align: left; padding: 16px 18px; cursor: pointer;
  background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px;
  color: inherit; font-family: inherit; transition: border-color .16s ease, background .16s ease;
}
.track:hover { border-color: var(--line-strong); background: var(--navy-600); }
.track[aria-current='true'] { border-color: var(--orange); background: rgba(239,81,34,.10); }
.track .idx { font-weight: 800; color: var(--orange); font-size: 13px; }
.track strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 2px; }
.track span { color: var(--text-mute); font-size: 13.5px; }
.track .state { font-size: 12.5px; color: var(--text-mute); white-space: nowrap; }
.track[disabled] { opacity: .5; cursor: not-allowed; }
.watermark { margin-top: 24px; font-size: 12.5px; color: var(--text-mute); text-align: center; }


.skeleton { color: var(--text-mute); padding: 40px 0; text-align: center; }

/* ---------- 모바일 미세 조정 ---------- */
@media (max-width: 520px) {
  .site-header .wrap { height: 58px; }
  .brand { font-size: 15px; line-height: 1.25; }
  .brand small { display: none; }
  .brand .mark { width: 26px; height: 26px; font-size: 12px; }
  .nav { gap: 12px; }
  .nav .btn, .site-header .btn { padding: 9px 14px; font-size: 13.5px; }
  #whoami { display: none; }
  section { padding: 56px 0; }
  .hero-cta .btn { width: 100%; }
  .cards { gap: 12px; }
  .cards[style] { grid-template-columns: 1fr !important; }
  .room { padding: 22px 0 64px; }
  .player-shell { border-radius: 10px; }
}

/* 2기 안내 */
.notice-2nd {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: nowrap;
  margin: 0 0 24px; padding: 18px 22px;
  background: rgba(239, 81, 34, .10);
  border: 1px solid rgba(239, 81, 34, .42);
  border-radius: var(--radius);
  color: var(--text-dim); font-size: 15px;
}
.notice-2nd .tag {
  background: var(--orange); color: #fff; padding: 3px 11px; border-radius: 6px;
  font-size: 12.5px; font-weight: 800; flex: none;
}
.notice-2nd strong { color: #fff; }
.notice-2nd > span:last-child { flex: 1 1 auto; min-width: 0; }
