/* invader free-course clone — tokens from live CSS */
:root {
  --main-first: #e11d48;
  --main-second: #ff8c00;
  --main-black: #333;
  --mid-gray: #6e6e73;
  --athens-gray: #f5f5f7;
  --border-header: #d2d2d7;
  --footer-bg: #262626;
  --footer-muted: #bbbbbb;
  --footer-dim: #999;
  --countdown-green: #e11d48;
  --countdown-bg: #e11d481a;
  --container: 1200px;
  --header-h: 60px;
  --side-w: 385px;
  --radius-12: 12px;
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe 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);
  color: var(--main-black);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

.min-w-0 {
  min-width: 0;
}

/* ═══ Header ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  width: 100%;
  border-bottom: 1px solid var(--border-header);
  background: #fff;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.logo-link img {
  width: 100%;
  height: auto;
}

.nav-list {
  display: none;
  align-items: center;
  gap: 40px;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  color: var(--main-black);
}

.nav-list a {
  font-weight: 500;
}

.nav-list a:hover {
  font-weight: 700;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  height: 40px;
  width: 176px;
  border-radius: 9999px;
  border: 0.5px solid var(--main-black);
  padding: 12px 40px 12px 20px;
  outline: none;
  font-size: 14px;
}

.search-wrap input::placeholder {
  color: var(--mid-gray);
  font-weight: 300;
  font-size: 14px;
}

.search-wrap .search-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--main-black);
  pointer-events: none;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 130px;
  border-radius: 50px;
  background: var(--main-first);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  transition: background-color 0.2s;
}

.btn-login:hover {
  background: #be123c;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--main-black);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 24px 20px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.mobile-drawer-panel a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.drawer-close {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--mid-gray);
}

/* ═══ Page shell ═══ */
.page-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  min-width: 0;
}

.breadcrumb {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.breadcrumb span {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--main-black);
}

.layout {
  display: flex;
  flex-direction: column-reverse;
  gap: 34px;
  width: 100%;
  min-width: 0;
}

.col-main,
.col-side,
.sec,
.detail-stack,
.side-card {
  min-width: 0;
}

.col-main {
  width: 100%;
  flex: 1;
}

.col-side {
  width: 100%;
  flex-shrink: 0;
}

/* PC hero (hidden on mobile; mobile uses side thumb) */
.hero-pc {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-12);
  background: #e6e8eb;
  overflow: hidden;
}

.hero-pc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mo {
  display: block;
  position: relative;
  margin-bottom: 16px;
  width: 100%;
  border-radius: var(--radius-12);
  background: #e6e8eb;
  overflow: hidden;
}

.hero-mo-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #e6e8eb;
}

.hero-mo-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sticky section tabs */
.sec-tabs-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  height: 80px;
  width: 100%;
  background: #fff;
  padding: 10px;
}

.sec-tabs {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: var(--athens-gray);
  border-radius: 50px;
}

.sec-tabs-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: 33.333%;
  left: 0;
  border-radius: 50px;
  background: var(--main-first);
  transition: left 0.3s ease;
}

.sec-tabs-nav {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  width: 100%;
}

.sec-tab {
  flex: 1;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mid-gray);
  transition: color 0.3s;
  cursor: pointer;
}

.sec-tab.active {
  color: #fff;
  font-weight: 600;
}

/* Detail image stack */
.detail-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail-stack img {
  width: calc(100% - 1px);
  height: auto;
}

.detail-stack img:first-child {
  border-radius: var(--radius-12) var(--radius-12) 0 0;
}

.detail-stack img:last-child {
  border-radius: 0 0 var(--radius-12) var(--radius-12);
}

/* Sections */
.sec {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec-title {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: var(--main-black);
}

.sec-teacher {
  margin: 100px 0;
}

.teacher-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.teacher-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--athens-gray);
}

.teacher-name {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--main-black);
  flex-shrink: 0;
}

.teacher-bio {
  font-size: 14px;
  line-height: 1.4;
  color: var(--mid-gray);
  min-width: 0;
}

.teacher-bio h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--main-black);
}

.teacher-bio ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.teacher-bio li {
  margin-bottom: 4px;
}

.teacher-bio p {
  margin: 0;
}

.sec-marketing {
  margin-bottom: 40px;
}

.marketing-body {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  white-space: pre-line;
  margin: 0;
}

/* Side card */
.side-sticky {
  /* mobile: not sticky */
}

.side-card-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--main-black);
  word-break: keep-all;
}

.side-meta {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
}

.side-meta-row {
  display: flex;
  gap: 12px;
}

.side-meta-label {
  color: var(--mid-gray);
  flex-shrink: 0;
}

.side-meta-value {
  color: var(--main-black);
}

.side-price {
  color: var(--main-first);
  font-weight: 600;
  font-size: 28px;
}

.countdown {
  display: flex;
  height: 56px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-12);
  background: var(--countdown-bg);
}

.countdown-inner {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 700;
  flex-wrap: wrap;
  align-items: center;
}

.countdown-unit {
  display: flex;
  align-items: center;
  border-radius: 4px;
  background: #fff;
  padding: 0 6px;
  color: var(--countdown-green);
  font-size: 14px;
}

.countdown-unit.ms {
  width: 40px;
  justify-content: center;
}

.countdown-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: #001430;
  margin-left: 2px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 14px;
  border-radius: var(--radius-12);
  background: var(--main-first);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px;
  transition: background-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-cta:hover {
  background: #be123c;
}

.side-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

/* Mobile bottom fixed CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  padding: 12px;
  background: transparent;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.4s, transform 0.4s;
}

.mobile-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}

.mobile-cta-bar {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: #121212;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
}

.mobile-cta-price {
  display: none;
}

.mobile-cta-btn {
  width: 100%;
  margin: 0;
  border-radius: 12px;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 10;
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  color: var(--main-black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ═══ Footer ═══ */
.site-footer {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--footer-bg);
  padding: 60px 0;
  word-break: break-word;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-company h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-company-info {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.625;
  color: var(--footer-muted);
  padding-bottom: 12px;
  margin: 20px 0 0;
}

.footer-cs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-top: 20px;
}

.footer-cs-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--footer-dim);
}

.footer-cs-hours {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.625;
  color: var(--footer-muted);
  margin: 0;
}

.footer-cs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-kakao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: #f5c60a;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--footer-muted);
}

.footer-sep {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0 0;
  border: none;
}

.footer-note {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--footer-dim);
}

.footer-platform {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 50px;
}

.footer-platform-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--footer-muted);
}

.footer-platform-info p {
  margin: 0 0 4px;
}

.footer-platform-links {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-platform-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #e4e4e4;
}

.footer-platform-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 300;
  color: var(--footer-muted);
}

/* body pad for mobile CTA */
body {
  padding-bottom: 88px;
}

/* ═══ Desktop ≥ 1280px (max-xl reverse) ═══ */
@media (min-width: 1280px) {
  :root {
    --header-h: 90px;
  }

  .header-inner {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .logo-link {
    width: 138px;
  }

  .nav-list {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .layout {
    flex-direction: row;
  }

  .col-side {
    width: var(--side-w);
  }

  .hero-pc {
    display: block;
  }

  .hero-mo {
    display: none;
  }

  .sec-tab {
    font-size: 18px;
  }

  .side-sticky {
    position: sticky;
    top: 120px;
  }

  .side-title {
    font-size: 32px;
  }

  .side-meta {
    margin: 34px 0;
    font-size: 18px;
  }

  .side-price {
    font-size: 30px;
  }

  .countdown-inner {
    font-size: 20px;
  }

  .countdown-unit {
    font-size: inherit;
  }

  .countdown-label {
    font-size: 16px;
  }

  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .back-top {
    bottom: 170px;
  }

  .footer-platform-links {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .mobile-cta-bar {
    border: 1px solid #262626;
    padding: 10px;
    padding-left: 30px;
    border-radius: 12px;
  }

  .mobile-cta-price {
    display: flex;
    align-items: flex-end;
    gap: 20px;
  }

  .mobile-cta-price .price-free {
    font-size: 18px;
    font-weight: 600;
    color: #ef4444;
  }

  .mobile-cta-price .price-zero {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
  }

  .mobile-cta-btn-wrap {
    width: 300px;
    flex-shrink: 0;
  }

  .mobile-cta-btn {
    border-radius: 12px;
  }
}
