/* ============================================================
   programs-detail/base.css — 과정 상세 페이지 공용 스타일

   역할: public/programs-detail/*.html(강사가 만드는 과정 상세
   정적 페이지)에 클짐 디자인 시스템을 입힌다. 각 페이지는
   이 파일 + fonts.css 를 <link> 로 불러오고, 페이지 고유
   스타일만 자기 <style> 에 둔다.

   값의 정본: src/app/globals.css 의 @theme · :root 블록.
   (design-tokens.generated.css 는 이 앱이 읽지 않는다 —
   globals.css 주석 참고.) 색·활자·모서리 값을 바꿀 때는
   globals.css 를 먼저 보고 같이 바꾼다.

   규칙(손으로 만든 페이지에서도 지킨다 — docs/brand/CLGYM_BRAND.md):
   - 새 색을 더하지 않는다. 보라(--accent)는 누르는 것,
     로즈(--highlight*)는 누르지 않는 표식·강조, 주황
     (--accent-cohort)은 과정 라인의 비텍스트 표식에만.
   - 테두리는 0.5px 헤어라인, 그림자는 e1~e3, 모서리는
     squircle(미지원은 자동으로 둥근 모서리).
   - hover 는 @media (hover: hover) 안에, 움직임은
     prefers-reduced-motion 에서 끈다.
   ============================================================ */

/* ---------- 토큰 — globals.css 와 같은 값 ---------- */
:root {
  color-scheme: light;

  --bg-base: #f6f6f6;
  --bg-2: rgba(255, 255, 255, 0.45);
  --surface: #fdfcfa;
  --surface-2: rgba(255, 255, 255, 0.78);
  --ink: #000000d9;
  --ink2: #000000ad;
  --ink3: #00000094;
  --accent: #6155f5;
  --accent-deep: #5c50e6;
  --accent-ink: #5c50e6;
  --highlight: #e11d48;
  --highlight-ink: #be123c;
  --accent-cohort: #ff6b00;
  --green: #15803d;
  --red: #dc2626;
  --orange: #b45309;
  --tint-1: rgba(0, 0, 0, 0.045);
  --tint-2: rgba(0, 0, 0, 0.09);
  --hairline-1: #0000001a;
  --hairline-2: #3c3c434a;
  --popover: #f6f6f6;

  --blur-chrome: saturate(180%) blur(12px);
  --material-thick: #f6f6f6b8;
  --e1: 0 0 0 0.5px rgba(0,0,0,0.06), 0 1px 3px rgba(16,24,40,0.08), 0 4px 12px rgba(16,24,40,0.05);
  --e2: 0 1px 1px rgba(16,24,40,0.03), 0 8px 24px rgba(31,38,58,0.09);
  --e3: 0 2px 4px rgba(16,24,40,0.04), 0 16px 40px rgba(31,38,58,0.14);
  --inset-highlight: inset 0 1px 0 rgba(255,255,255,0.65);
  --btn-primary-bg: linear-gradient(180deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
  --btn-primary-shadow: 0 1px 1px rgba(16,24,40,0.1), 0 4px 10px -3px rgba(16,24,40,0.22);
  --btn-primary-shadow-hover: 0 1px 2px rgba(16,24,40,0.12), 0 8px 18px -6px rgba(16,24,40,0.28);
  --selection-bg: rgba(79,70,229,0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Segoe UI",
    "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "D2Coding", ui-monospace, SFMono-Regular,
    "SF Mono", "Cascadia Code", Menlo, monospace;

  /* 활자 사다리 — globals.css @theme 의 같은 이름·같은 값 */
  --text-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  --text-display-2: clamp(1.875rem, 1.35rem + 2.4vw, 2.75rem);
  --text-title-1: 1.75rem;   /* 28 */
  --text-title-2: 1.375rem;  /* 22 */
  --text-title-3: 1.0625rem; /* 17 */
  --text-headline: 0.9375rem;/* 15 */
  --text-body: 1rem;         /* 16 */
  --text-callout: 0.9375rem; /* 15 */
  --text-subhead: 0.875rem;  /* 14 */
  --text-footnote: 0.8125rem;/* 13 */
  --text-caption: 0.75rem;   /* 12 */
  --text-overline: 0.6875rem;/* 11 */

  /* 모서리 — HIG 스케일(globals.css). 버튼 6 · 카드 18 · 패널 24 · 히어로 30 */
  --r-control: 0.375rem;
  --r-card: 1.125rem;
  --r-panel: 1.5rem;
  --r-hero: 1.875rem;

  --ease: cubic-bezier(0.32, 0.72, 0, 1); /* 애플 감속 곡선 */
  --bar: 52px;                            /* 사이트 헤더와 같은 높이 */
  --wrap: 72rem;                          /* 사이트 셸(max-w-6xl)과 같은 폭 */
}

/* 다크 — globals.css 의 두 블록(시스템 설정 · 사용자 선택)과 같은 값·같은 구조 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-base: #1e1e1e;
    --bg-2: rgba(255, 255, 255, 0.05);
    --surface: #252529;
    --surface-2: rgba(255, 255, 255, 0.13);
    --ink: #ffffffe6;
    --ink2: #ffffffc2;
    --ink3: #ffffff9e;
    --accent: #6d7cff;
    --accent-deep: #7163ff;
    --accent-ink: #8a96ff;
    --highlight: #ff5c7a;
    --highlight-ink: #ff6b86;
    --green: #4ade80;
    --red: #f87171;
    --orange: #fbbf24;
    --tint-1: rgba(255, 255, 255, 0.06);
    --tint-2: rgba(255, 255, 255, 0.11);
    --hairline-1: #ffffff1a;
    --hairline-2: #404042;
    --popover: #282828;
    --e1: 0 0 0 0.5px rgba(255,255,255,0.07), 0 1px 2px rgba(0,0,0,0.4);
    --e2: 0 1px 1px rgba(0,0,0,0.3), 0 10px 28px rgba(0,0,0,0.38);
    --e3: 0 2px 6px rgba(0,0,0,0.34), 0 18px 44px rgba(0,0,0,0.48);
    --inset-highlight: inset 0 1px 0 rgba(255,255,255,0.07);
    --btn-primary-bg: linear-gradient(180deg, #7b83f6 0%, #4f46e5 55%, #4338ca 100%);
    --btn-primary-shadow: 0 1px 1px rgba(0,0,0,0.5), 0 4px 12px -3px rgba(0,0,0,0.55);
    --btn-primary-shadow-hover: 0 1px 2px rgba(0,0,0,0.55), 0 8px 20px -6px rgba(0,0,0,0.65);
    --selection-bg: rgba(129,140,248,0.34);
    --material-thick: #282828b2;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #1e1e1e;
  --bg-2: rgba(255, 255, 255, 0.05);
  --surface: #252529;
  --surface-2: rgba(255, 255, 255, 0.13);
  --ink: #ffffffe6;
  --ink2: #ffffffc2;
  --ink3: #ffffff9e;
  --accent: #6d7cff;
  --accent-deep: #7163ff;
  --accent-ink: #8a96ff;
  --highlight: #ff5c7a;
  --highlight-ink: #ff6b86;
  --green: #4ade80;
  --red: #f87171;
  --orange: #fbbf24;
  --tint-1: rgba(255, 255, 255, 0.06);
  --tint-2: rgba(255, 255, 255, 0.11);
  --hairline-1: #ffffff1a;
  --hairline-2: #404042;
  --popover: #282828;
  --e1: 0 0 0 0.5px rgba(255,255,255,0.07), 0 1px 2px rgba(0,0,0,0.4);
  --e2: 0 1px 1px rgba(0,0,0,0.3), 0 10px 28px rgba(0,0,0,0.38);
  --e3: 0 2px 6px rgba(0,0,0,0.34), 0 18px 44px rgba(0,0,0,0.48);
  --inset-highlight: inset 0 1px 0 rgba(255,255,255,0.07);
  --btn-primary-bg: linear-gradient(180deg, #7b83f6 0%, #4f46e5 55%, #4338ca 100%);
  --btn-primary-shadow: 0 1px 1px rgba(0,0,0,0.5), 0 4px 12px -3px rgba(0,0,0,0.55);
  --btn-primary-shadow-hover: 0 1px 2px rgba(0,0,0,0.55), 0 8px 20px -6px rgba(0,0,0,0.65);
  --selection-bg: rgba(129,140,248,0.34);
  --material-thick: #282828b2;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box }
html {
  background: var(--bg-base);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.62;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0 }
ul, ol { padding: 0; list-style: none }
a { color: inherit; text-decoration: none }
img, svg, video { max-width: 100%; display: block }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em }
p, li, dd, dt, figcaption, summary, blockquote { text-wrap: pretty }
::selection { background: var(--selection-bg) }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1 }
.mono { font-family: var(--font-mono) }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 90;
  transform: translateY(-300%);
  background-image: var(--btn-primary-bg); color: #fff;
  padding: 0.5rem 1rem; border-radius: var(--r-control);
  font-size: var(--text-headline); font-weight: 700;
}
.skip:focus { transform: none }

/* 본문 안의 링크는 보라 + 밑줄 — 누를 수 있다는 표시는 accent 가 맡는다 */
.prose a, .inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em }

/* ---------- 상단 바 — 사이트 헤더와 같은 재질(52px · material-chrome) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg-base);
  background: color-mix(in oklab, var(--bg-base) 92%, transparent);
  border-bottom: 0.5px solid var(--hairline-2);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .topbar {
    background: var(--material-thick);
    -webkit-backdrop-filter: var(--blur-chrome);
    backdrop-filter: var(--blur-chrome);
  }
}
/* macOS 크롬처럼 — 맨 위에서는 선이 없고 내용이 바 밑으로 들어가면 선이 생긴다.
   globals.css .material-chrome 의 scroll() 애니메이션과 같은 수식·값. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .topbar {
      animation: chrome-settle linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 88px;
    }
    @keyframes chrome-settle {
      from { border-bottom-color: transparent; box-shadow: none }
      to { border-bottom-color: var(--hairline-2); box-shadow: 0 10px 24px -20px rgba(16,24,40,0.5) }
    }
  }
}
.topbar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1rem;
  height: var(--bar);
  display: flex; align-items: center; gap: 0.875rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.625rem; min-width: 0 }
.logo-symbol {
  height: 22px; width: 40px; flex-shrink: 0;
  background-color: currentColor;
  mask: url("/brand/symbol-white.svg") center / contain no-repeat;
  -webkit-mask: url("/brand/symbol-white.svg") center / contain no-repeat;
}
.logo-name { font-size: var(--text-headline); font-weight: 800; letter-spacing: -0.02em; color: var(--ink) }
.logo-name b { color: var(--highlight); font-weight: inherit } /* RAISE 의 AI — 브랜드 표식 */
.topbar-sep { width: 0.5px; height: 1rem; background: var(--hairline-2); flex-shrink: 0 }
.topbar-back {
  font-size: var(--text-footnote); font-weight: 600; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
@media (hover: hover) { .topbar-back:hover { color: var(--ink) } }
.topbar-cta { margin-left: auto; flex-shrink: 0 }

/* ---------- 셸 ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 1.25rem }
.shell { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 3rem }
/* 두 갈래(본문 + 신청 박스) — col-side 가 있을 때만 나눈다 */
@media (min-width: 64rem) {
  .shell--split { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3.5rem }
  .wrap { padding-inline: 2rem }
}
/* 사이드 열은 본문 높이까지 늘려야 안의 신청 박스(sticky)가 따라온다 */
.col-side { align-self: stretch }
.col-main { min-width: 0 }
.shell--split .col-main { max-width: 46rem } /* 읽기 폭 — §4-3 measure(44rem) 부근 */

/* ---------- 섹션 ---------- */
.sec { padding-block: 3.5rem }
.sec:first-child { padding-top: 0 }
.sec + .sec { border-top: 0.5px solid var(--hairline-1) }
.sec-tint {
  background: var(--bg-2);
  border-radius: var(--r-panel);
  corner-shape: squircle;
  padding: 2.5rem 2rem;
}
.sec-tint.sec + .sec, .sec + .sec-tint.sec { border-top: 0 }

/* 머리 라벨 — 사이트의 PageHeader eyebrow(overline + highlight-ink)와 같은 말 */
.eyebrow {
  font-size: var(--text-overline); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--highlight-ink);
}
.sec-eyebrow {
  display: flex; align-items: baseline; gap: 0.625rem;
  font-size: var(--text-overline); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--highlight-ink);
}
.sec-eyebrow .n {
  font-family: var(--font-mono); font-size: var(--text-caption);
  letter-spacing: 0; color: var(--ink3);
}

/* 기수 표식 — 주황(--accent-cohort)은 이 라인의 비텍스트 표식으로만 쓴다(§4-6).
   글자에는 쓰지 않는다(라이트 대비 2.6:1 미달). */
.cohort-mark {
  display: inline-block; width: 0.5em; height: 0.5em;
  background: var(--accent-cohort); border-radius: 1.5px;
  margin-inline-end: 0.5em; vertical-align: baseline;
}

/* ---------- 타이포 부품 ---------- */
.h-hero {
  font-size: var(--text-display); font-weight: 700;
  line-height: 1.04; letter-spacing: 0;
  margin-top: 1rem;
}
.h-sec {
  font-size: var(--text-display-2); font-weight: 700;
  line-height: 1.1; letter-spacing: 0;
  margin-top: 1rem;
}
.h-sub { font-size: var(--text-title-3); font-weight: 600; line-height: 1.35 }
.lead {
  font-size: 1.0625rem; line-height: 1.7; color: var(--ink2);
  margin-top: 1.25rem; max-width: 36em;
}
.p { color: var(--ink2); margin-top: 1rem; max-width: 38em; line-height: 1.75 }
.p b, .lead b, .p strong, .lead strong { color: var(--ink); font-weight: 650 }
.caption { font-size: var(--text-caption); line-height: 1.5; color: var(--ink3) }
/* 강조 구절 — 누르지 않는 표식이라 로즈(--highlight-ink). 보라는 누르는 것에만 */
.mark { color: var(--highlight-ink); font-weight: 700 }
.hl { box-shadow: inset 0 -0.55em 0 var(--tint-2) }

/* ---------- 밴드 — 큰 문장 하나를 세우는 패널.
   앱의 「왜 이 과정인가」 카드(왼쪽 3px accent 막대)에서 왔다. ---------- */
.band {
  position: relative;
  background: var(--surface);
  border: 0.5px solid var(--hairline-1);
  border-radius: var(--r-panel);
  corner-shape: squircle;
  box-shadow: var(--inset-highlight);
  padding: 2.25rem 2rem 2.25rem 2.5rem;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  width: 3px; background: var(--accent);
}
.band-title {
  font-size: var(--text-title-1); font-weight: 700;
  line-height: 1.3; letter-spacing: -0.016em;
}
.band-title em, .band-title b { font-style: normal; color: var(--highlight-ink) }
.band-sub { font-size: var(--text-body); color: var(--ink2); line-height: 1.75; margin-top: 1rem; max-width: 38em }

/* ---------- 패널 · 카드 ---------- */
.panel, .card {
  background: var(--surface);
  border: 0.5px solid var(--hairline-1);
  border-radius: var(--r-card);
  corner-shape: squircle;
  box-shadow: var(--inset-highlight);
}
.panel { border-radius: var(--r-panel); padding: 2rem }
.card { padding: 1.5rem }
.cards { display: grid; gap: 0.75rem; margin-top: 1.75rem }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.card .num {
  display: block; font-family: var(--font-mono);
  font-size: var(--text-caption); font-weight: 700;
  color: var(--ink3); margin-bottom: 0.625rem;
}
.card h3 { font-size: var(--text-title-3); font-weight: 600 }
.card p { font-size: var(--text-subhead); color: var(--ink2); line-height: 1.65; margin-top: 0.625rem }
.card.lift { transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease) }
@media (hover: hover) {
  .card.lift:hover { transform: translateY(-2px); box-shadow: var(--e2) }
}

/* 주차·회차 카드 — 앱 과정 화면의 「주차별」(큰 accent 번호 + 카드)을 세로형으로 */
.day { display: flex; flex-direction: column }
.day .num {
  font-family: var(--font-mono); font-size: var(--text-caption);
  font-weight: 700; color: var(--ink3); margin-bottom: 0.5rem;
}
.day .big {
  font-size: var(--text-title-2); font-weight: 700; color: var(--accent);
  line-height: 1; letter-spacing: -0.012em; font-variant-numeric: tabular-nums;
}
.day h3 { font-size: var(--text-title-3); font-weight: 600; margin-top: 0.625rem }
.day .do { font-size: var(--text-subhead); color: var(--ink2); line-height: 1.6; margin-top: 0.625rem }
/* 카드 안의 각주(「이 수업에서」「과제」 같은 라벨 + 한 줄)와 결과 표시(→) —
   .day 카드뿐 아니라 어떤 .card 에서도 쓴다 */
.hw { margin-top: 0.875rem; padding-top: 0.75rem; border-top: 0.5px solid var(--hairline-1); font-size: var(--text-footnote); line-height: 1.55 }
.hw b { display: block; font-size: var(--text-overline); letter-spacing: 0.14em; font-weight: 500; color: var(--ink3); margin-bottom: 0.1875rem; text-transform: uppercase }
.hw span { color: var(--ink2) }
.out { margin-top: 0.875rem; font-size: var(--text-footnote); font-weight: 700; line-height: 1.45; color: var(--ink) }

/* ---------- 목록 ---------- */
/* 번호 목록 — 01 · 굵은 한 줄 · 설명 */
.list { margin-top: 1.75rem; border-top: 0.5px solid var(--hairline-1) }
.list li { border-bottom: 0.5px solid var(--hairline-1); padding: 1.25rem 0 1.25rem 2.5rem; position: relative }
.list .n {
  position: absolute; left: 0; top: 1.375rem;
  font-family: var(--font-mono); font-size: var(--text-footnote);
  font-weight: 700; color: var(--accent);
}
.list li > b { display: block; font-size: var(--text-title-3); font-weight: 600; letter-spacing: -0.006em; line-height: 1.4 }
.list li > span, .list li > p { display: block; font-size: var(--text-subhead); color: var(--ink2); margin-top: 0.375rem; line-height: 1.6 }
/* 라벨이 「01 · 상품」처럼 길 때 — 번호를 왼쪽이 아니라 제목 위 줄에 둔다 */
.list--labels li { padding-left: 0 }
.list--labels .n { position: static; display: block; margin-bottom: 0.375rem }

/* 대시 불릿 */
.bullets { margin-top: 1.375rem }
.bullets li { position: relative; padding-left: 1.125rem; color: var(--ink2); margin-top: 0.625rem; line-height: 1.7 }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 7px; height: 1px; background: var(--ink3) }
.bullets li b { color: var(--ink); font-weight: 650 }

/* 체크 목록 — 색 단독 금지 규칙에 맞게 ✓ 글리프 + 초록을 같이 쓴다 */
.checks li { position: relative; padding-left: 1.625rem; color: var(--ink2); margin-top: 0.625rem; line-height: 1.7 }
.checks li::before { content: "✓"; position: absolute; left: 0.125rem; top: 0; color: var(--green); font-weight: 700 }
.checks li b { color: var(--ink); font-weight: 650 }

/* ---------- 통계 — StatGrid(헤어라인 격자) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 1.75rem;
  background: var(--hairline-1);
  border: 0.5px solid var(--hairline-1);
  border-radius: var(--r-card);
  corner-shape: squircle;
  overflow: hidden;
}
.stats > div { background: var(--surface); padding: 1.375rem }
.stats .v {
  font-size: clamp(1.625rem, 3.4vw, 2.375rem); font-weight: 700;
  letter-spacing: -0.016em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stats .k { font-size: var(--text-caption); color: var(--ink2); margin-top: 0.5rem }
/* 핵심 수치는 브랜드 표식이라 로즈를 쓸 수 있다(§4-6) */
.stats .v.accent-num { color: var(--highlight-ink) }

/* ---------- 맞는 분 / 아닌 분 ---------- */
.fit > div { padding: 1.625rem }
.fit .no { background: var(--tint-1) }
.fit h3 { font-size: var(--text-title-3); margin-bottom: 0.375rem }
.fit ul { margin-top: 0.625rem }

/* 표 — 가로가 좁으면 옆으로 미는 식. 헤어라인 격자, 머리는 잉크 3 */
.table-wrap { overflow-x: auto; margin-top: 1.75rem; border: 0.5px solid var(--hairline-1); border-radius: var(--r-card); corner-shape: squircle; background: var(--surface) }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-subhead); min-width: 34rem }
.tbl th, .tbl td { padding: 0.8125rem 1rem; text-align: left; vertical-align: top; border-bottom: 0.5px solid var(--hairline-1); line-height: 1.55 }
.tbl thead th { font-size: var(--text-caption); font-weight: 600; color: var(--ink3); letter-spacing: 0.02em }
.tbl tbody tr:last-child td { border-bottom: 0 }
.tbl td:first-child { color: var(--ink3); white-space: nowrap; font-weight: 600 }
.tbl-note { font-size: var(--text-caption); color: var(--ink3); margin-top: 0.625rem }

/* 칩 — 작은 표식 묶음(비전공자 환경 · 맥·윈도우 모두 같은 자격 표시) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.375rem }
.chips li {
  padding: 0.375rem 0.8125rem;
  font-size: var(--text-footnote); font-weight: 600; color: var(--ink2);
  background: var(--surface); border: 0.5px solid var(--hairline-1);
  border-radius: 999px;
}

/* ---------- FAQ — 앱 FaqList 와 같은 모양(헤어라인 + 화살표 회전) ---------- */
.faq { margin-top: 1.75rem }
.faq details { border-top: 0.5px solid var(--hairline-1); padding: 1rem 0 }
.faq details:first-child { border-top: 0; padding-top: 0 }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding-right: 2rem;
  font-size: var(--text-headline); font-weight: 700; line-height: 1.5; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after {
  content: ""; position: absolute; right: 0.375rem; top: 0.45em;
  width: 0.55em; height: 0.55em;
  border-right: 1.5px solid var(--ink2); border-bottom: 1.5px solid var(--ink2);
  transform: rotate(45deg); transition: transform 0.18s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) }
.faq .a { padding: 0.75rem 0 0.5rem; color: var(--ink2); font-size: var(--text-callout); line-height: 1.55; max-width: 38em }
.faq .a b { color: var(--ink); font-weight: 650 }

/* ---------- 정보 표(대상·일정·장소·참가비·준비물) ---------- */
.facts { border-top: 0.5px solid var(--hairline-1); margin-top: 1.75rem }
.facts > div {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 0.5px solid var(--hairline-1);
}
.facts dt { color: var(--ink3); font-size: var(--text-footnote); font-weight: 600; padding-top: 0.15em }
.facts dd { font-size: var(--text-subhead); line-height: 1.65; color: var(--ink) }

/* 가격 표기 */
.price-now { font-size: var(--text-title-2); font-weight: 700; letter-spacing: -0.012em; font-variant-numeric: tabular-nums }
.price-was { font-size: var(--text-footnote); color: var(--ink2); font-variant-numeric: tabular-nums }
.price-was s { color: var(--ink3) }

/* ---------- 회차 카드(영상 과정 식 — 회차별 제목·산출물·시간 배분) ---------- */
.session { padding: 1.375rem 0; border-top: 0.5px solid var(--hairline-1) }
.session:first-of-type { border-top: 0 }
.session small { display: block; font-size: var(--text-footnote); color: var(--ink3); font-weight: 600; margin-bottom: 0.5rem }
.session h3 { font-size: var(--text-title-2); font-weight: 700; letter-spacing: -0.012em; line-height: 1.3 }
.session p { font-size: var(--text-subhead); color: var(--ink2); line-height: 1.65; margin-top: 0.625rem }
.session .output { color: var(--ink); font-weight: 650 }
.session .time { font-size: var(--text-footnote); color: var(--ink3) }

/* ---------- 요청 예시 상자(프롬프트·메모) — 틴트 패널 ---------- */
.brief {
  background: var(--tint-1);
  border: 0.5px solid var(--hairline-1);
  border-radius: var(--r-card); corner-shape: squircle;
  padding: 1.25rem 1.375rem; margin-top: 1.75rem;
}
.brief-label { font-size: var(--text-caption); font-weight: 700; color: var(--ink3); margin-bottom: 0.5rem }
.brief p { font-size: var(--text-subhead); line-height: 1.7; color: var(--ink) }

/* ---------- 미디어(그림·영상) ---------- */
.hero-figure {
  margin-top: 2rem;
  aspect-ratio: 16/9; width: 100%;
  overflow: hidden; position: relative;
  border-radius: var(--r-hero); corner-shape: squircle;
  border: 0.5px solid var(--hairline-1);
  background: var(--surface-2);
}
@media (min-width: 40rem) { .hero-figure { aspect-ratio: 21/9 } }
.hero-figure img { width: 100%; height: 100%; object-fit: cover }
.hero-figure::after { /* 아래쪽으로 바탕색 페이드 — ProgramHero 와 같은 처리 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg-base) 70%, transparent), transparent 55%);
}
.media { border-radius: var(--r-card); corner-shape: squircle; overflow: hidden; border: 0.5px solid var(--hairline-1) }
.media video { width: 100%; background: #101013 }
figcaption, .figcap { font-size: var(--text-footnote); line-height: 1.55; color: var(--ink3); margin-top: 0.75rem }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem }
.photo-pair img { width: 100%; height: auto; border-radius: var(--r-card); corner-shape: squircle; border: 0.5px solid var(--hairline-1) }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--r-control); corner-shape: squircle;
  padding: 0.75rem 1.25rem;
  font-size: var(--text-headline); font-weight: 700;
  transition: transform 0.14s var(--ease), opacity 0.14s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.24s var(--ease);
}
.btn:active { transform: scale(0.972) }
.btn-block { display: flex; width: 100% }
/* 주 버튼 — globals.css .btn-brand 과 같은 값(인디고 그라디언트 + 흰 글자) */
.btn-primary {
  color: #fff; background-image: var(--btn-primary-bg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), var(--btn-primary-shadow);
}
@media (hover: hover) {
  .btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), var(--btn-primary-shadow-hover);
  }
}
/* 보조 버튼 — ButtonLink ghost 와 같은 면 */
.btn-ghost {
  background: var(--surface); border: 0.5px solid var(--hairline-1);
  color: var(--ink); box-shadow: var(--inset-highlight);
}
@media (hover: hover) { .btn-ghost:hover { border-color: var(--accent) } }
.btn-sm { padding: 0.4375rem 1rem; font-size: var(--text-footnote) }
.cta-row { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 1.625rem }

/* ---------- 신청 박스(사이드) ---------- */
.col-side { display: none }
@media (min-width: 64rem) {
  .shell--split .col-side { display: block }
}
.applybox {
  position: sticky; top: calc(var(--bar) + 1.5rem);
  background: var(--surface);
  border: 0.5px solid var(--hairline-2);
  border-radius: var(--r-card); corner-shape: squircle;
  box-shadow: var(--e1);
  padding: 1.5rem;
}
.applybox .st { font-size: var(--text-overline); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--highlight-ink) }
.applybox .was { font-size: var(--text-footnote); color: var(--ink3); text-decoration: line-through; margin-top: 0.75rem; font-variant-numeric: tabular-nums }
.applybox .now { font-size: 2.125rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-top: 0.125rem; font-variant-numeric: tabular-nums }
.applybox .tag { font-size: var(--text-caption); font-weight: 600; color: var(--ink2); margin-top: 0.5rem }
.applybox dl { margin-top: 1.25rem; border-top: 0.5px solid var(--hairline-1) }
.applybox .row {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.625rem 0; border-bottom: 0.5px solid var(--hairline-1);
  font-size: var(--text-footnote);
}
.applybox .row dt { color: var(--ink3); white-space: nowrap }
.applybox .row dd { font-weight: 650; text-align: right }
.applybox .btn-block { margin-top: 1.25rem }
.applybox .btn-ghost { margin-top: 0.5rem }
.applybox .fine { font-size: var(--text-caption); color: var(--ink3); line-height: 1.6; margin-top: 0.875rem }
.applybox.closed .btn-primary { background-image: none; background: var(--tint-1); color: var(--ink2); box-shadow: none }

/* ---------- 모바일 고정 바 ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  background: var(--surface);
  border-top: 0.5px solid var(--hairline-1);
  box-shadow: var(--e2);
  padding: 0.625rem 1.25rem calc(0.625rem + env(safe-area-inset-bottom));
  align-items: center; justify-content: space-between; gap: 0.875rem;
  transform: translateY(105%);
  transition: transform 0.22s var(--ease);
}
.mbar.show { transform: translateY(0) }
.mbar .pr { line-height: 1.2 }
.mbar .pr s { font-size: var(--text-overline); color: var(--ink3) }
.mbar .pr b { display: block; font-size: var(--text-title-3); font-weight: 700; letter-spacing: -0.006em; font-variant-numeric: tabular-nums }
.mbar .btn { flex-shrink: 0 }

/* ---------- 푸터 — 사이트 푸터의 축소형(같은 값은 shell-spec.json) ---------- */
.footer { border-top: 0.5px solid var(--hairline-2); margin-top: 2.5rem; background: var(--bg-2) }
.foot-in { padding-block: 2.25rem 4rem; font-size: var(--text-footnote); color: var(--ink2); line-height: 1.8 }
.foot-brand { display: flex; align-items: baseline; gap: 0.625rem; flex-wrap: wrap }
.foot-brand .logo-name { font-size: var(--text-subhead) }
.foot-slogan { font-weight: 700; color: var(--highlight-ink); font-size: var(--text-footnote) }
.foot-links { margin-top: 0.875rem; display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem }
.foot-links a { color: var(--ink2); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--hairline-2) }
@media (hover: hover) { .foot-links a:hover { color: var(--ink) } }
.foot-legal { margin-top: 1.25rem; font-size: var(--text-caption); color: var(--ink3); line-height: 1.7 }
.foot-legal p + p { margin-top: 0.125rem }

/* ---------- 반응형 ---------- */
@media (max-width: 64rem) {
  .shell--split .mbar-space, body.has-mbar { padding-bottom: 4.5rem }
}
@media (max-width: 63.99rem) {
  .mbar { display: flex }
  .topbar-cta { display: none } /* 모바일의 신청 버튼은 하단 바가 맡는다 */
}
@media (max-width: 42.5rem) {
  .shell { padding-top: 2rem }
  .sec { padding-block: 2.75rem }
  .sec-tint { padding: 1.75rem 1.25rem }
  .cards.c2, .cards.c3, .stats { grid-template-columns: 1fr }
  .photo-pair { grid-template-columns: 1fr }
  .facts > div { grid-template-columns: 1fr; gap: 0.25rem }
  .band { padding: 1.75rem 1.375rem 1.75rem 1.625rem }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .btn:active, .card.lift:hover { transform: none }
}
