/* ==========================================================================
   3PEDIA DIGITAL — COURSES PAGE STYLES (courses.css v4.0 · ZERO INLINE CSS)
   ========================================================================== */

/* --- HERO --- */
.crs-hero {
  min-height: auto;
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.crs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  animation: gridpan 16s linear infinite;
  pointer-events: none;
}

.crs-hero-in {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crs-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.crs-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1FA855;
  box-shadow: 0 0 0 4px rgba(31, 168, 85, 0.18);
  animation: statPulse 2s infinite;
}

.crs-hero-title {
  font-family: 'Archivo', sans-serif;
  font-stretch: 112%;
  font-weight: 900;
  font-size: clamp(32px, 5.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 auto 22px;
}

.crs-hero-title-muted {
  color: var(--ink-faint);
}

.crs-hero-sub {
  max-width: 650px;
  margin: 0 auto 34px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.68;
  color: var(--ink-soft);
}

.crs-hero-sub b {
  color: var(--ink);
  font-weight: 600;
}

.crs-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.crs-stat-row {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.crs-stat-row .stat {
  text-align: center;
  padding: 0 40px;
  border-right: 1px solid var(--line);
}

.crs-stat-row .stat:last-child {
  border-right: none;
}

.crs-stat-row .stat-n {
  font-family: 'Archivo', sans-serif;
  font-stretch: 112%;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  color: var(--ink);
}

.crs-stat-row .stat-l {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* --- COURSE CARDS --- */
.courses {
  background: var(--bg);
}

.crs-head {
  margin-bottom: 58px;
  max-width: 660px;
}

.crs-sub-gap {
  margin-top: 18px;
}

.crs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1400px;
}

.crs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.crs-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--ink);
}

.crs-card-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.crs-top {
  padding: 32px 30px 0;
  position: relative;
}

.crs-ghost {
  position: absolute;
  top: -6px;
  right: 14px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 120%;
  font-size: 80px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

.crs-level {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.crs-name {
  font-family: 'Archivo', sans-serif;
  font-stretch: 108%;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.crs-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.68;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.crs-hook {
  position: relative;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 11px 0;
  margin-bottom: 22px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  z-index: 1;
}

.crs-hook::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--ink) 10%, transparent), transparent);
  animation: hookSweep 4.2s ease-in-out infinite;
}

.crs-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 30px;
}

.crs-meta div {
  flex: 1;
  padding: 16px 4px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.crs-meta div:last-child {
  border-right: none;
}

.crs-meta b {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-stretch: 108%;
  font-size: 15px;
  font-weight: 800;
}

.crs-meta span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.crs-bottom {
  padding: 24px 30px 30px;
  display: flex;
}

.crs-bottom-stack {
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.crs-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crs-price {
  font-family: 'Archivo', sans-serif;
  font-stretch: 108%;
  font-size: 22px;
  font-weight: 800;
}

.crs-price span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  display: block;
  letter-spacing: 0.08em;
}

.crs-batch-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: #1FA855;
  font-weight: 700;
}

.crs-enroll-btn {
  width: 100%;
  justify-content: center;
}

/* --- PILLARS & TIMELINE --- */
.pillars {
  background: var(--bg-alt);
}

.pl-head {
  max-width: 680px;
  margin-bottom: 60px;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1400px;
}

.pl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 44px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.pl-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.pl-ghost {
  position: absolute;
  top: -16px;
  right: -4px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 120%;
  font-size: 104px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

.pl-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
}

.pl-name {
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.pl-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.72;
  position: relative;
  z-index: 1;
}

.crs-tl-spaced {
  padding-top: 12px;
}

/* --- INTERACTIVE QUIZ --- */
.quiz {
  background: var(--bg-alt);
}

.quiz-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}

.quiz-head .eyebrow {
  justify-content: center;
}

.crs-quiz-sub {
  margin: 16px auto 0;
  text-align: center;
}

.quiz-box {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 52px 46px;
  position: relative;
  min-height: 340px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 34px;
}

.quiz-progress i {
  height: 2px;
  flex: 1;
  background: var(--line);
  transition: background 0.3s ease;
}

.quiz-progress i.on {
  background: var(--ink);
}

.quiz-q {
  font-family: 'Archivo', sans-serif;
  font-stretch: 108%;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 30px;
  line-height: 1.2;
}

.quiz-opts {
  display: grid;
  gap: 12px;
}

.quiz-opt {
  text-align: left;
  border: 1px solid var(--line);
  padding: 18px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.quiz-opt:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.quiz-opt .qar {
  opacity: 0;
  transition: opacity 0.25s;
}

.quiz-opt:hover .qar {
  opacity: 1;
}

.quiz-result {
  text-align: center;
}

.qr-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.qr-name {
  font-family: 'Archivo', sans-serif;
  font-stretch: 112%;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.qr-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
}

.qr-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-retake {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 20px;
  display: inline-block;
  text-decoration: underline;
  cursor: pointer;
}

/* --- OUTCOMES & FAQ --- */
.outcomes {
  background: var(--bg);
}

.oc-head {
  margin-bottom: 56px;
  max-width: 600px;
}

.oc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1400px;
}

.oc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.oc-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
}

.oc-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.oc-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oc-q {
  font-size: 15px;
  line-height: 1.72;
  margin-bottom: 20px;
}

.oc-course {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.crs-faq-head {
  text-align: center;
}

.crs-faq-head .eyebrow {
  justify-content: center;
}

.crs-cta-light {
  background: var(--panel-ink);
  color: #0A0A0A;
  border-color: var(--panel-ink);
}

.crs-cta-light:hover {
  background: #ffffff;
  color: #0A0A0A;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .pl-grid,
  .crs-grid,
  .oc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pl-grid,
  .crs-grid,
  .oc-grid {
    grid-template-columns: 1fr;
  }
  .crs-hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .quiz-box {
    padding: 36px 24px;
  }
  .crs-meta {
    margin: 0 20px;
  }
  .crs-top,
  .crs-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}