/* 똑패스 챌린지 (2026-10) — 모던 제품 광고형
 * 넓은 여백 · 큰 제목 · 가운데 정렬 · 흰색/연회색 띠 번갈아 · 강사 소개는 검은 띠
 * styles.css 뒤에 불러옴 (후기·카톡 예시 등 기존 부품은 styles.css 사용) */

:root {
  --cx-bg: #ffffff;
  --cx-alt: #f5f5f7;
  --cx-ink: #1d1d1f;
  --cx-muted: #55555c;
  --cx-caption: #6e6e73;
  --cx-line: #d9d9de;
  --cx-accent: #0b63ce;
  --cx-accent-hover: #0952ab;
  --cx-dark: #000000;
  --cx-dark-text: #f5f5f7;
  --cx-dark-muted: #a1a1a6;
  --cx-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --cx-w: 980px;
}

body.cx {
  margin: 0;
  background: var(--cx-bg);
  color: var(--cx-ink);
  font-family: var(--cx-font);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'tnum' 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.cx a { color: var(--cx-accent); text-decoration: none; }
.cx a:hover { text-decoration: underline; }
.cx img { max-width: 100%; height: auto; }
.cx :focus-visible { outline: 3px solid var(--cx-accent); outline-offset: 3px; border-radius: 6px; }
.cx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 상단 ---------- */
.cx-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.cx-top-inner {
  max-width: var(--cx-w);
  margin: 0 auto;
  height: 52px;
  padding: env(safe-area-inset-top, 0px) 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cx .cx-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 1rem; color: var(--cx-ink); letter-spacing: -0.02em; }
.cx-logo-icon { width: 30px; height: 30px; flex: none; display: block; }
.cx .cx-logo:hover { text-decoration: none; }
.cx-logo-mark { display: none; }
.cx-top-nav { display: flex; gap: 1.5rem; align-items: center; font-size: 0.85rem; }
.cx .cx-top-nav a { color: var(--cx-ink); opacity: 0.8; }
.cx .cx-top-nav a:hover { opacity: 1; text-decoration: none; }
.cx .cx-top-nav a[aria-current='page'] { opacity: 1; font-weight: 600; }
.cx .cx-top-nav .cx-top-talk {
  opacity: 1;
  background: var(--cx-accent);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}
.cx .cx-top-nav a { white-space: nowrap; }
.cx .cx-logo { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .cx-top-nav { gap: 1rem; }
  .cx-top-nav .cx-hide-sm { display: none; }
}
@media (max-width: 360px) {
  .cx-top-inner { padding-left: 1rem; padding-right: 1rem; }
  .cx-top-nav { gap: 0.8rem; }
}
@media (max-width: 340px) {
  .cx-top-nav { gap: 0.6rem; font-size: 0.78rem; }
}

/* ---------- 바탕 ---------- */
.cx-sheet { max-width: var(--cx-w); margin: 0 auto; padding: 0 1.25rem; }

/* 띠: 섹션 배경을 화면 끝까지 */
.cx-section { padding: 6rem 0; position: relative; }
.cx-alt { background: var(--cx-alt); box-shadow: 0 0 0 100vmax var(--cx-alt); clip-path: inset(0 -100vmax); }
.cx-dark { background: var(--cx-dark); box-shadow: 0 0 0 100vmax var(--cx-dark); clip-path: inset(0 -100vmax); color: var(--cx-dark-text); }
.cx-dark .cx-h2, .cx-dark .cx-teacher-name, .cx-dark .cx-teacher-score { color: var(--cx-dark-text); }
.cx-dark .cx-desc, .cx-dark .cx-figure figcaption { color: var(--cx-dark-muted); }

.cx-h2 {
  margin: 0 auto 0.75rem;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-align: center;
  max-width: 16em;
}
.cx-desc {
  margin: 0 auto 3rem;
  color: var(--cx-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 34em;
}
.cx-small { font-size: 0.875rem; color: var(--cx-caption); }

/* ---------- 버튼 · 링크 ---------- */
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  background: var(--cx-accent);
  line-height: 1.2;
  text-align: center;
}
.cx .cx-btn { color: #fff; text-decoration: none; }
.cx .cx-btn:hover { background: var(--cx-accent-hover); }
.cx .cx-btn--ghost { background: transparent; color: var(--cx-accent); box-shadow: inset 0 0 0 1.5px var(--cx-accent); }
.cx .cx-btn--ghost:hover { background: rgba(11, 99, 206, 0.06); }
.cx-btn--lg { min-height: 52px; font-size: 1.05rem; padding: 0.8rem 1.8rem; }
.cx-btn--block { width: 100%; }
.cx .cx-more { font-size: 1.05rem; font-weight: 500; }
.cx .cx-more::after { content: ' ›'; }
.cx-dark .cx-more { color: #2997ff; }

/* ---------- 허브 히어로 ---------- */
.cx-hero { text-align: center; padding: 5rem 0 0; }
.cx-hero h1 {
  margin: 0 auto 1rem;
  font-size: clamp(2.6rem, 9vw, 5.25rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.cx-lede { margin: 0 auto; font-size: clamp(1.12rem, 2.5vw, 1.5rem); line-height: 1.6; color: #3a3a3f; max-width: 26em; letter-spacing: -0.02em; font-weight: 500; }
.cx-hero-cta { margin-top: 2rem; display: flex; gap: 1.25rem 1.75rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* 휴대폰 목업 */
.cx-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.75rem, 3vw, 2rem); margin: 4rem auto 0; max-width: 640px; }
.cx-phone {
  margin: 0;
  width: min(42vw, 270px);
  border-radius: clamp(26px, 5vw, 44px);
  padding: clamp(6px, 1.2vw, 10px);
  background: #1d1d1f;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.cx-phone img { display: block; width: 100%; border-radius: clamp(20px, 4vw, 34px); }
.cx-phone--back { transform: translateY(-1.5rem); }
@media (min-width: 720px) { .cx-phones { margin-top: 5rem; } .cx-phone--back { transform: translateY(-2.5rem); } }
.cx-phones--one .cx-phone { width: min(62vw, 300px); }

/* ---------- 챌린지 타일 ---------- */
.cx-tiles { display: grid; gap: 1.25rem; }
.cx-tile {
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem 1.75rem 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cx-tile-name { margin: 0; font-size: 1.6rem; letter-spacing: -0.03em; font-weight: 700; }
.cx-tile-big { margin: 1.25rem 0 0.25rem; font-size: clamp(4rem, 10vw, 5.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.cx-tile-big small { font-size: 0.32em; font-weight: 700; letter-spacing: -0.02em; margin-left: 0.15em; }
.cx-tile-term { margin: 0 0 1.25rem; color: var(--cx-muted); font-size: 0.95rem; font-weight: 500; }
.cx-tile-desc { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.7; color: #3a3a3f; max-width: 20em; }
.cx-tile-price { margin: auto 0 0.4rem; font-weight: 700; font-size: 1.15rem; }
.cx-tile-when { margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--cx-muted); min-height: 1.5em; }
.cx-tile-cta { display: flex; gap: 1.25rem; align-items: center; justify-content: center; flex-wrap: wrap; }
@media (min-width: 900px) { .cx-tiles { grid-template-columns: repeat(3, 1fr); } }

.cx-status { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 999px; margin-bottom: 0.25rem; }
.cx-status--open { background: #e3f6ea; color: #0d7a3e; }
.cx-status--soon { background: #e8f0fd; color: var(--cx-accent); }
.cx-status--wait { background: var(--cx-alt); color: var(--cx-muted); }
.cx-tile .cx-status--wait { background: #f0f0f2; }

/* ---------- 기능 3열 ---------- */
.cx-features { display: grid; gap: 2.5rem; text-align: center; }
.cx-feature h3 { margin: 0 0 0.5rem; font-size: 1.3rem; line-height: 1.35; letter-spacing: -0.02em; font-weight: 700; }
.cx-feature p { margin: 0 auto; color: var(--cx-muted); max-width: 20em; line-height: 1.7; }
.cx-feature-big { display: block; font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.75rem; }
@media (min-width: 800px) { .cx-features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 순서 ---------- */
.cx-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; counter-reset: cxstep; max-width: 640px; }
.cx-steps li {
  counter-increment: cxstep;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--cx-line);
  text-align: left;
}
.cx-steps li:last-child { border-bottom: 0; }
.cx-steps li::before {
  content: counter(cxstep);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cx-accent);
  line-height: 1.2;
}
.cx-steps strong { display: block; font-size: 1.08rem; line-height: 1.4; letter-spacing: -0.015em; font-weight: 700; margin-bottom: 0.2rem; }
.cx-steps span { color: var(--cx-muted); font-size: 0.95rem; line-height: 1.65; }
@media (min-width: 900px) {
  .cx-steps:not(.cx-steps--col) { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; max-width: none; }
  .cx-steps:not(.cx-steps--col) li { grid-template-columns: 1fr; border: 0; padding: 0; text-align: center; gap: 0.5rem; }
}

/* ---------- 강사 ---------- */
.cx-teacher { display: grid; gap: 2.5rem; text-align: center; }
.cx-teacher .cx-h2 { margin-bottom: 1.25rem; }
.cx-teacher-name { margin: 0; font-size: 1.15rem; font-weight: 600; }
.cx-teacher-score { margin: 0.5rem 0 1.75rem; font-weight: 600; }
.cx-teacher-score b { display: block; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.07em; line-height: 0.95; }
.cx-list { margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 0.6rem; max-width: 30em; }
.cx-dark .cx-list { color: var(--cx-dark-text); }
.cx-figure { margin: 0 auto; max-width: 760px; }
.cx-figure img { display: block; width: 100%; border-radius: 18px; }
.cx-figure figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--cx-caption); text-align: center; }

/* ---------- 표 ---------- */
.cx-table-wrap { overflow-x: auto; max-width: 720px; margin: 0 auto; }
.cx-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.6; }
.cx-table th, .cx-table td { text-align: left; padding: 1rem 0.75rem; border-bottom: 1px solid var(--cx-line); vertical-align: top; }
.cx-table th { color: var(--cx-caption); font-weight: 600; font-size: 0.85rem; }
.cx-table td strong { font-weight: 700; }

/* ---------- 상세 히어로 ---------- */
.cx-dhero { text-align: center; padding: 5rem 0 4rem; }
.cx-dhero h1 {
  margin: 0 auto 0.75rem;
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.cx-dhero .cx-lede { margin-bottom: 1.25rem; }
.cx-dhero-price { margin: 0 0 1.75rem; font-size: 1.1rem; color: var(--cx-muted); }
.cx-dhero-price [data-cx='price'] { color: var(--cx-ink); font-weight: 700; }
.cx-facts { list-style: none; margin: 3.5rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); max-width: 760px; border-top: 1px solid var(--cx-line); }
.cx-facts li { padding: 1.25rem 0.5rem; border-bottom: 1px solid var(--cx-line); }
.cx-facts b { display: block; font-size: 1.3rem; letter-spacing: -0.025em; font-weight: 700; line-height: 1.4; }
.cx-facts span { color: var(--cx-caption); font-size: 0.875rem; }
@media (min-width: 720px) { .cx-facts { grid-template-columns: repeat(4, 1fr); } .cx-facts li { border-bottom: 0; } }
.cx-price { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 0; }
.cx-price s, .cx-dhero-price s { font-size: 0.6em; color: var(--cx-muted); font-weight: 400; margin-right: 0.4rem; }

/* 가격 상자 (상세 아래쪽) */
.cx-buybox {
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem 1.75rem;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.cx-buybox-note { margin: 0; font-size: 0.85rem; color: var(--cx-muted); max-width: 30em; }

/* ---------- 문제/방법 (2열 글) ---------- */
.cx-pairs { display: grid; gap: 2.25rem 3rem; max-width: 860px; margin: 0 auto; }
.cx-pair { display: grid; align-content: start; gap: 0.4rem; }
.cx-pair h3 { margin: 0; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.02em; font-weight: 700; }
.cx-pair p { margin: 0; color: var(--cx-muted); line-height: 1.75; }
.cx-pair p strong { color: var(--cx-ink); }
@media (min-width: 800px) { .cx-pairs { grid-template-columns: 1fr 1fr; } }
.cx-quote { margin: 3.5rem auto 0; text-align: center; font-size: clamp(1.35rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.45; max-width: 18em; }

/* ---------- 앱 화면 ---------- */
.cx-shots { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 3rem); flex-wrap: wrap; }
.cx-shots figure { margin: 0; width: min(42vw, 270px); text-align: center; }
.cx-shots figcaption { margin-top: 1.25rem; font-size: 0.95rem; line-height: 1.6; color: var(--cx-muted); }
.cx-shots figcaption strong { display: block; color: var(--cx-ink); font-size: 1.05rem; }

/* ---------- 탭 (RC 과정) ---------- */
.cx-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0 auto 2.25rem; }
.cx-tab {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 0;
  background: #e8e8ed;
  color: var(--cx-ink);
  cursor: pointer;
  min-height: 40px;
}
.cx-tab[aria-selected='true'] { background: var(--cx-ink); color: #fff; font-weight: 600; }
.cx-tabpanel { max-width: 720px; margin: 0 auto; }
.cx-tabpanel[hidden] { display: none; }
.cx-plan { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 20px; padding: 0.5rem 1.5rem; }
.cx-plan li { display: grid; grid-template-columns: 4.25rem 1fr; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid #e8e8ed; line-height: 1.8; }
.cx-plan li:last-child { border-bottom: 0; }
.cx-plan-week { font-weight: 700; }
.cx-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 6px; margin-right: 0.3rem; vertical-align: 0.08em; }
.cx-tag--order { background: #e8f0fd; color: var(--cx-accent); }
.cx-tag--parse { background: #fff3dc; color: #a15c00; }
.cx-tag--read { background: #e3f6ea; color: #0d7a3e; }
.cx-tag--jb { background: #f1e9fb; color: #6b3fb0; }
.cx-plan-extra { margin: 1rem 0 0; padding: 1rem 1.5rem; background: #fff; border-radius: 16px; list-style: none; }
.cx-plan-extra li { padding: 0.15rem 0; }

/* ---------- 혜택 ---------- */
.cx-perks { display: grid; gap: 1.25rem; }
.cx-perk { background: #fff; border-radius: 24px; padding: 2rem 1.5rem; text-align: center; }
.cx-alt .cx-perk { background: #fff; }
.cx-section:not(.cx-alt) .cx-perk { background: var(--cx-alt); }
.cx-perk b { display: block; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.3; font-weight: 800; }
.cx-perk p { margin: 0.75rem auto 0; color: var(--cx-muted); font-size: 0.95rem; line-height: 1.7; max-width: 20em; }
@media (min-width: 760px) { .cx-perks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cx-perks:has(> .cx-perk:nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .cx-perks:has(> .cx-perk:nth-child(4)) { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ ---------- */
.cx-faq details { border-bottom: 1px solid var(--cx-line); max-width: 760px; margin: 0 auto; }
.cx-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  position: relative;
}
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--cx-muted);
}
.cx-faq details[open] summary::after { content: '−'; }
.cx-faq .cx-faq-a { padding: 0 0 1.4rem; color: var(--cx-muted); line-height: 1.8; }

/* ---------- 마지막 CTA ---------- */
.cx-final { text-align: center; }
.cx-final .cx-row-cta, .cx-row-cta { display: flex; gap: 1rem 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; margin: 2rem auto 0; }

/* ---------- 하단 고정 구매 바 (모바일) ---------- */
.cx-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.6rem 1.25rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.cx-buybar.is-visible { transform: none; }
.cx-buybar-price { font-weight: 700; margin: 0; }
.cx-buybar-price small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--cx-muted); }
@media (prefers-reduced-motion: reduce) { .cx-buybar { transition: none; } }
@media (min-width: 900px) { .cx-buybar { display: none; } }

/* ---------- 푸터 ---------- */
.cx-foot { background: var(--cx-alt); box-shadow: 0 0 0 100vmax var(--cx-alt); clip-path: inset(0 -100vmax); padding: 2rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.8rem; line-height: 1.7; color: var(--cx-caption); }
.cx-foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--cx-line); }
.cx .cx-foot nav a { color: var(--cx-ink); opacity: 0.8; }
.cx-foot p { margin: 0.15rem 0; }

/* ---------- 기존 부품을 새 바탕에 맞추기 ---------- */
.cx .tp-ch-section { padding: 0; background: none; border: 0; box-shadow: none; margin: 0; }
.cx .tp-ch-kakao { max-width: 440px; margin: 0 auto; }
.cx .tp-ch-reviews-stats-grid,
.cx .tp-ch-reviews-gallery-grid,
.cx .tp-ch-reviews-kakao-grid,
.cx .tp-ch-reviews-text-grid { margin-bottom: 2rem; }
.cx .tp-ch-reviews-subtitle { font-size: 1.35rem; letter-spacing: -0.025em; margin: 3rem 0 1.25rem; text-align: center; color: var(--cx-ink); }
.cx .tp-ch-reviews-gallery__head { text-align: center; }
.cx .tp-cr-open-btn { font-family: inherit; }

/* 수강생 후기 카드 (2026-10-26): 사진 크기 고정 + 글 더보기
   .cx img { height: auto } 때문에 세로로 긴 앱 캡처가 카드를 늘리던 것 막음 */
.cx .tp-cr-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.cx .tp-cr-card__media { aspect-ratio: auto; height: 170px; min-height: 0; overflow: hidden; flex: none; }
.cx .tp-cr-card__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.cx .tp-cr-card__body { padding: 14px 16px 16px; }
.cx .tp-cr-card__meta { font-size: 0.8rem; margin-bottom: 8px; }
.cx .tp-cr-card__name { font-size: 0.92rem; }
.cx .tp-cr-card__text { font-size: 0.95rem; line-height: 1.65; color: #1f2937; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; -webkit-line-clamp: 5; }
.cx .tp-cr-card.is-expanded .tp-cr-card__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.cx .tp-cr-card__toggle { margin-top: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 700; color: #2563eb; cursor: pointer; }
.cx .tp-cr-card__toggle[hidden] { display: none; }
@media (max-width: 560px) {
  .cx .tp-cr-list { grid-template-columns: 1fr; gap: 10px; }
  .cx .tp-cr-card { flex-direction: row; align-items: flex-start; }
  .cx .tp-cr-card__media { width: 92px; height: 120px; margin: 14px 0 14px 14px; border-radius: 10px; }
  .cx .tp-cr-card__body { flex: 1; min-width: 0; padding: 14px 16px 14px 14px; }
  .cx .tp-cr-card__text { -webkit-line-clamp: 4; }
  .cx .tp-cr-card__more { right: 5px; bottom: 5px; padding: 2px 7px; font-size: 11px; }
}
@media (min-width: 900px) { .cx-teacher[style*='text-align: left'] { grid-template-columns: 1.2fr 0.8fr; } }

/* 실제 화면 (카톡·인증 캡처) */
.cx-proof { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2.5rem); flex-wrap: wrap; margin-top: 3.5rem; }
.cx-proof figure { margin: 0; width: min(80vw, 300px); text-align: center; }
.cx-proof img { display: block; width: 100%; border-radius: 22px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35); border: 1px solid rgba(0, 0, 0, 0.06); }
.cx-proof figcaption { margin-top: 1rem; font-size: 0.92rem; line-height: 1.6; color: var(--cx-muted); }
.cx-proof figcaption strong { display: block; color: var(--cx-ink); font-size: 1.05rem; }
.cx-dark .cx-proof figcaption strong { color: var(--cx-dark-text); }

/* 강사 한 줄 임팩트 */
.cx-teacher-score b.cx-teacher-big { font-size: clamp(3.4rem, 13vw, 8rem); letter-spacing: -0.06em; white-space: nowrap; }
.cx-teacher-line { margin: 0.9rem auto 0; font-size: clamp(1.1rem, 2.6vw, 1.45rem); line-height: 1.5; font-weight: 700; letter-spacing: -0.025em; max-width: 22em; }
.cx-teacher-sub { margin: 0.6rem auto 0; color: var(--cx-dark-muted); max-width: 26em; line-height: 1.7; }

/* 똑독이 */
.cx-mascot { display: block; width: clamp(130px, 22vw, 200px); height: auto; margin: 0 auto 1.25rem; }
.cx-mascot--sm { width: clamp(110px, 16vw, 150px); }

/* 굵은 글자: 본문 속 강조는 600 (너무 두껍지 않게) */
.cx p strong, .cx li strong { font-weight: 600; color: var(--cx-ink); }
@media (max-width: 640px) {
  body.cx { font-size: 16px; }
  .cx-section { padding: 4.5rem 0; }
  .cx-desc { margin-bottom: 2.25rem; }
}

/* 카드 전체를 누르면 상세페이지로 (버튼은 위에 따로) */
.cx-tile { position: relative; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.cx .cx-tile-link { color: inherit; }
.cx .cx-tile-link:hover { text-decoration: none; }
.cx-tile-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.cx-tile-cta, .cx-tile .cx-status { position: relative; z-index: 2; }
.cx-tile:hover { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.25); transform: translateY(-2px); }
.cx-tile:has(.cx-tile-link:focus-visible) { outline: 3px solid var(--cx-accent); outline-offset: 3px; }
.cx-tile-link:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .cx-tile { transition: none; } .cx-tile:hover { transform: none; } }
@media (min-width: 720px) { .cx-proof:has(> figure:nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; align-items: start; } }
@media (min-width: 1100px) { .cx-proof:has(> figure:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 230px)); } }
.cx-proof:has(> figure:nth-child(4)) > figure { width: auto; max-width: 300px; }
@media (max-width: 719px) { .cx-proof:has(> figure:nth-child(4)) > figure { width: min(80vw, 300px); } }

/* 오픈 알림 창 */
.cx-dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(92vw, 440px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
  font-family: var(--cx-font);
  color: var(--cx-ink);
  overflow-x: hidden;
}
.cx-dialog::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px); }
.cx-dialog-body { padding: 2.25rem 1.75rem 1.75rem; }
.cx-dialog-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cx-alt); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--cx-muted); }
.cx-dialog-title { margin: 0 0 0.5rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.cx-dialog-desc { margin: 0 0 1.5rem; color: var(--cx-muted); line-height: 1.7; }
.cx-dialog-desc b { color: var(--cx-ink); font-weight: 600; }
.cx-dialog-form { display: grid; gap: 1rem; }
.cx-field { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.cx-field input { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-weight: 400; font-size: 1.05rem; padding: 0.85rem 1rem; border: 1.5px solid var(--cx-line); border-radius: 12px; }
.cx-field input:focus { outline: none; border-color: var(--cx-accent); box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.15); }
.cx-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.6; color: var(--cx-muted); cursor: pointer; }
.cx-check input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--cx-accent); flex: none; }
.cx-dialog-error { margin: 0; min-height: 1.2em; color: #c4291c; font-size: 0.9rem; }
.cx-foot-apps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.cx .cx-foot-apps a { display: inline-flex; align-items: center; padding: 0.45rem 0.9rem; border-radius: 999px; background: #fff; border: 1px solid var(--cx-line); color: var(--cx-ink); font-size: 0.82rem; font-weight: 600; }
.cx .cx-foot-apps a:hover { text-decoration: none; border-color: var(--cx-ink); }

/* 앱 화면 갤러리 (옆으로 넘기기) */
.cx-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(64vw, 250px);
  gap: clamp(1rem, 3vw, 1.75rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  justify-content: safe center;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
}
.cx-gallery > figure { margin: 0; scroll-snap-align: center; text-align: center; }
.cx-gallery .cx-phone { width: 100%; }
.cx-gallery .cx-phone img, .cx-gallery .cx-phone video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1122; object-fit: cover; object-position: top; border-radius: clamp(20px, 4vw, 30px); background: #fff; }
.cx-gallery figcaption { margin-top: 1rem; font-size: 0.92rem; line-height: 1.6; color: var(--cx-muted); }
.cx-gallery figcaption strong { display: block; color: var(--cx-ink); font-size: 1.02rem; }
.cx-gallery-hint { text-align: center; font-size: 0.85rem; color: var(--cx-caption); margin: 0.25rem 0 0; }

.cx-badge-video { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--cx-accent); background: #e8f0fd; border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.35rem; vertical-align: 0.1em; }

/* 커리큘럼 잠금 (앞부분만 공개) */
.cx-lockfig-img { position: relative; border-radius: 18px; overflow: hidden; }
.cx-lockfig-img img { display: block; width: 100%; height: auto; }
.cx-lock-badge {
  position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: rgba(29, 29, 31, 0.92); color: #fff;
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); word-break: keep-all;
}
.cx-locklist { position: relative; }
.cx-locked { filter: blur(6px); opacity: 0.7; user-select: none; -webkit-user-select: none; pointer-events: none; }
.cx-locklist .cx-lock-badge { top: auto; bottom: 18%; transform: translate(-50%, 0); }
.cx-lock-row td { filter: blur(6px); opacity: 0.7; user-select: none; -webkit-user-select: none; }
.cx-table-lock { position: relative; }
.cx-table-lock .cx-lock-badge { top: auto; bottom: 22%; transform: translate(-50%, 0); }

/* ── 줄바꿈 다듬기 ───────────────────────── */
.cx h1, .cx h2, .cx h3, .cx-perk b, .cx-quote { text-wrap: balance; }
.cx p, .cx-faq-a, .cx-pair p { text-wrap: pretty; }

/* ── 굵은 글씨 그라데이션 강조 ───────────── */
:root {
  --cx-grad: linear-gradient(100deg, #0b63ce 0%, #3b5bdb 45%, #7048e8 100%);
  --cx-grad-dark: linear-gradient(100deg, #6cb8ff 0%, #9aa8ff 50%, #c7a6ff 100%);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cx p strong, .cx p b, .cx-faq-a strong,
  .cx-perk b, .cx-facts b, .cx-feature-big, .cx-tile-big, .cx-teacher-score b.cx-teacher-big {
    background-image: var(--cx-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .cx-dark p strong, .cx-dark p b, .cx-teacher-score b.cx-teacher-big { background-image: var(--cx-grad-dark); }
  /* 블록 요소는 글자 폭만큼만 칠해서 색이 고르게 */
  .cx-perk b, .cx-feature-big, .cx-tile-big, .cx-facts b { width: fit-content; margin-left: auto; margin-right: auto; }
  .cx-teacher-score b.cx-teacher-big { display: inline-block; }
}
.cx-perks--buy { margin-top: 1.25rem; max-width: 1000px; margin-left: auto; margin-right: auto; }

/* ── 앱 설치 블록 ───────────────────────── */
.cx-install { margin: 3.5rem auto 0; max-width: 760px; text-align: center; scroll-margin-top: 80px; }
.cx-install-title { margin: 0 0 1.25rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.025em; }
.cx-install-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.cx .cx-install-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 72px; padding: 0.75rem 0.5rem; border-radius: 18px; background: #fff; color: var(--cx-ink);
  box-shadow: inset 0 0 0 1px var(--cx-line); text-decoration: none; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cx-section:not(.cx-alt) .cx-install-btn { background: var(--cx-alt); box-shadow: none; }
.cx .cx-install-btn:hover { box-shadow: inset 0 0 0 1.5px var(--cx-accent); text-decoration: none; }
.cx-install-btn b { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.cx-install-btn span { font-size: 0.78rem; color: var(--cx-caption); white-space: nowrap; }
.cx-install-note { margin: 1.1rem auto 0; font-size: 0.9rem; color: var(--cx-muted); line-height: 1.7; }
@media (max-width: 340px) { .cx-install-btns { grid-template-columns: 1fr; } }

/* ── 하단 고정 버튼 ─────────────────────── */
.cx-dock {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; flex-direction: column; gap: 10px; transition: bottom 0.25s ease;
}
body.cx-bar-on .cx-dock { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.cx-dock-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font: inherit; font-size: 10px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}
.cx-dock-btn:active { transform: scale(0.94); }
.cx-dock-btn svg { flex: none; }
.cx-dock-more { background: rgba(255, 255, 255, 0.94); color: var(--cx-ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cx .cx-dock-talk, .cx-dock-talk { background: #fee500; color: #191919; }
.cx .cx-dock-talk:hover { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .cx-dock { transition: none; } }

/* 다른 챌린지 시트 */
.cx-pop { position: fixed; inset: 0; z-index: 60; }
.cx-pop-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.cx-pop-sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 520px);
  background: #fff; border-radius: 24px 24px 0 0; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15); animation: cx-pop-up 0.22s ease-out;
}
@keyframes cx-pop-up { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cx-pop-sheet { animation: none; } }
.cx-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cx-pop-head b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.025em; }
.cx-pop-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cx-alt); color: var(--cx-ink); display: grid; place-items: center; cursor: pointer; }
.cx .cx-pop-row, .cx-pop-row {
  display: block; padding: 1rem 1.1rem; border-radius: 16px; background: var(--cx-alt); color: var(--cx-ink); text-decoration: none; margin-top: 0.5rem;
}
.cx-pop-row:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--cx-accent); }
.cx-pop-row.is-current { background: #fff; box-shadow: inset 0 0 0 1px var(--cx-line); }
.cx-pop-name { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.cx-pop-name em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--cx-accent); background: #e8f0fd; padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.35rem; vertical-align: 2px; }
.cx-pop-sub { display: block; font-size: 0.88rem; color: var(--cx-caption); margin-top: 2px; }
.cx .cx-pop-all, .cx-pop-all { display: block; text-align: center; margin-top: 1rem; font-size: 0.95rem; font-weight: 600; color: var(--cx-accent); }
html.cx-pop-open { overflow: hidden; }
.cx .cx-pop-row, .cx .cx-pop-row:hover, .cx .cx-pop-row:focus, .cx .cx-pop-row * { text-decoration: none; }
.cx-example-label { text-align: center; font-size: 0.85rem; color: var(--cx-caption); margin: 0 0 0.75rem; }
.cx .cx-example-label strong { background: none; -webkit-text-fill-color: currentColor; color: var(--cx-ink); }
/* 하단 고정 버튼이 푸터 사업자 정보를 가리지 않게 */
@media (max-width: 899px) {
  .cx-foot { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
  body.cx-has-buybar .cx-foot { padding-bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) { body.cx-bar-on .cx-dock { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
.cx-dialog-fine { margin: 0.25rem 0 0.75rem; font-size: 0.78rem; line-height: 1.6; color: var(--cx-caption); }
.cx .cx-dialog-fine a { color: var(--cx-caption); text-decoration: underline; }

/* ---------- 광고 영상 (챌린지별 50초) ---------- */
.cx-ad-frame { position: relative; margin: 0 auto; width: min(78vw, 340px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #0b0b0f; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.cx-ad-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b0b0f; }
.cx-ad-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.6rem; padding-bottom: 18%; border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%); color: #fff; cursor: pointer; font: inherit; }
.cx-ad-play-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #111; font-size: 1.6rem; padding-left: 5px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.cx-ad-play-label { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.cx-ad-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.cx-ad-frame.is-playing .cx-ad-play { display: none; }

/* ---------- 5분 토익 점수 진단(/diagnose) 노출 ---------- */
.cx .cx-diag, .cx-diag {
  display: flex; align-items: center; gap: 1rem;
  max-width: 640px; margin: 0 auto 2.5rem; padding: 1.1rem 1.25rem;
  border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--cx-line);
  color: var(--cx-ink); text-align: left; text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cx .cx-diag:hover, .cx .cx-diag:focus-visible { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--cx-accent); }
.cx .cx-diag:active { transform: scale(0.99); }
.cx .cx-diag--alt { background: var(--cx-alt); box-shadow: none; }
.cx .cx-diag * { text-decoration: none; }
.cx-diag-img { width: 56px; height: auto; flex: none; }
.cx-diag-body { flex: 1; min-width: 0; display: block; }
.cx-diag-kicker { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--cx-accent); background: #e8f0fd; padding: 0.1rem 0.55rem; border-radius: 999px; }
.cx-diag-title { display: block; margin-top: 0.35rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.cx-diag-sub { display: block; margin-top: 0.2rem; font-size: 0.88rem; line-height: 1.55; color: var(--cx-caption); }
.cx-diag-go { flex: none; font-size: 0.95rem; font-weight: 700; color: var(--cx-accent); white-space: nowrap; }
.cx-faq .cx-diag { margin-top: 1.75rem; margin-bottom: 2.25rem; }
@media (max-width: 520px) {
  .cx-diag { align-items: flex-start; padding: 1rem; gap: 0.85rem; }
  .cx-diag-img { width: 48px; margin-top: 0.15rem; }
  .cx-diag-go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cx .cx-diag { transition: none; } .cx .cx-diag:active { transform: none; } }
/* 홈 첫 화면 버튼 2x2 (챌린지 고르기 · 무료 자료실 · 앱 설치하기 · 내 레벨 테스트) */
.cx-hero-cta--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.cx-hero-cta--grid .cx-btn { width: 100%; padding-left: 0.75rem; padding-right: 0.75rem; white-space: nowrap; }
@media (max-width: 340px) { .cx-hero-cta--grid .cx-btn { font-size: 0.95rem; } }

/* 챌린지 홈 첫 화면 버튼: 위 2개(크게) + 아래 3개(작게), 같은 폭 */
.cx-hero-cta--stack { display: grid; grid-template-columns: 1fr; gap: 0.6rem; width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
.cx-hero-main, .cx-hero-sub { display: grid; gap: 0.6rem; }
.cx-hero-main { grid-template-columns: 1fr 1fr; }
.cx-hero-sub { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.cx-hero-cta--stack .cx-btn { width: 100%; white-space: nowrap; padding-left: 0.5rem; padding-right: 0.5rem; }
.cx-hero-sub .cx-btn { min-height: 42px; font-size: 0.88rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.cx .cx-btn--class { background: #6741d9; }
.cx .cx-btn--class:hover { background: #5b34cc; }
@media (max-width: 360px) { .cx-hero-main .cx-btn { font-size: 0.95rem; } .cx-hero-sub .cx-btn { font-size: 0.8rem; } }
.cx-teacher-more { margin: 1.25rem 0 0; }
