@charset "utf-8";

/* ==========================================================================
   포플 화상영어 — POPPLE 맞춤 교재 무료배송 프로모션 (POPPLE-LP-TEXTBOOKFREE-003)
   landing.css — templates/landing-golden-v1 로 생성됨
   --------------------------------------------------------------------------
   로드 순서: shared/css/base.css → _brand/brand.css → landing.css (이 파일)

   원본: brands/popple/landings/ipteojim-challenge/landing.css
   (POPPLE 입터짐 챌린지, Production QA 를 통과한 Golden Reference)

   [A] 캠페인 테마 토큰
       색상 9개를 전부 #8139FA 하나에서 color-mix() 로 유도한다.
       브랜드 보라(#8139FA) 기준으로 비율을 잡았으므로, 완전히 다른 색상
       계열을 쓰는 브랜드는 렌더링 결과를 눈으로 한 번 확인하는 것을 권한다.

       ★ 페이지 전체를 진한 색으로 덮지 않는다.
         흰 배경이 기본이고, 강조색은 CTA·딥 섹션에만 쓴다.

   [B] Golden Reference 에서 승격되지 않은 섹션 스타일도 이 파일에 그대로
       남아 있다 (챌린지 참여방법 / STARTER KIT / 교양수업 카드 등). 죽은
       CSS 지만 해가 없고, 나중에 그 섹션을 손으로 옮겨 쓸 때 그대로 쓸 수
       있다. templates/landing-golden-v1/manifest.json 의 KNOWN LIMITATIONS
       참고.

   [C] 실사 이미지 표시 규칙
       비율을 유지한 실사 이미지는 object-fit 으로 자르지 않고
       width:100% / height:auto 로 둔다.
   ========================================================================== */


/* ==========================================================================
   [A] 캠페인 테마 토큰 — POPPLE Purple
   ========================================================================== */
:root {
  /* --- 팔레트: #8139FA 하나로 나머지 8개를 color-mix() 로 유도한다.
     브랜드마다 헥스코드 9개를 손으로 채우지 않아도 된다. 특정 색조(보라 계열)에
     맞춰진 비율이라 완전히 다른 색상(예: 녹색·주황)에서는 눈으로 한 번
     검수하는 것을 권한다. --- */
  --tpl-purple:       #8139FA;   /* Primary · CTA */
  --tpl-purple-dark:  color-mix(in srgb, #8139FA 82%, black);   /* CTA hover */
  --tpl-purple-deep:  color-mix(in srgb, #8139FA 55%, black);   /* 딥 섹션 · 강조 블록 */
  --tpl-purple-mid:   color-mix(in srgb, #8139FA 78%, white);   /* 그래프 · 진행 · 액센트 */
  --tpl-lavender:     color-mix(in srgb, #8139FA 62%, white);   /* Secondary */
  --tpl-lavender-mid: color-mix(in srgb, #8139FA 30%, white);   /* 테두리 · 칩 */
  --tpl-lavender-bg:  color-mix(in srgb, #8139FA 12%, white);   /* 아이콘 배경 · 형광펜 */
  --tpl-tint:         color-mix(in srgb, #8139FA 3%,  white);   /* 매우 옅은 배경 */
  --tpl-on-deep:      color-mix(in srgb, #8139FA 55%, white);   /* 딥 배경 위 보조 텍스트 */

  /* --- base.css 브랜드 토큰 덮어쓰기 --- */
  --color-primary:        var(--tpl-purple);
  --color-primary-dark:   var(--tpl-purple-dark);
  --color-primary-deep:   var(--tpl-purple-deep);
  --color-primary-light:  var(--tpl-lavender-bg);
  --color-primary-tint:   var(--tpl-tint);

  --color-primary-border:      var(--tpl-lavender-mid);
  --color-primary-border-soft: color-mix(in srgb, #8139FA 18%, white);
  --color-primary-hover-soft:  color-mix(in srgb, #8139FA 6%,  white);
  --color-primary-on-deep:     var(--tpl-on-deep);

  --grad-visual-from: var(--tpl-purple-deep);
  --grad-visual-to:   var(--tpl-purple-dark);

  --sh-cta:     0 8px 22px color-mix(in srgb, #8139FA 32%, transparent);
  --ring-brand: 0 0 0 4px color-mix(in srgb, #8139FA 18%, transparent);
  --ring-focus: 0 0 0 3px color-mix(in srgb, #8139FA 16%, transparent);

  /* 딥 섹션 그라데이션 */
  --grad-deep-from: var(--tpl-purple-deep);
  --grad-deep-to:   var(--tpl-purple-dark);

  /* ---- 콘텐츠 밀도 ----
     데스크톱에서 본문 폭이 좁아 페이지가 비어 보이던 문제를 완화합니다.
     base.css 의 1080px → 1200px. 텍스트 섹션은 가독 폭을 유지합니다. */
  --wrap-body: 1200px;
  --wrap-text: 900px;
}


/* ==========================================================================
   [B-0] 공통 보조
   ========================================================================== */

.tag-challenge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--tpl-lavender) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tpl-lavender) 48%, transparent);
  color: var(--tpl-lavender);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.tag-challenge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tpl-lavender);
}

.eyebrow--accent { color: var(--tpl-purple-mid); }

/* 퍼플 체크 리스트 */
.check-list { display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--color-text);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--tpl-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--deep .check-list li { color: rgba(255, 255, 255, .9); }

/* 카드형 근거 목록 — .check-list(세로 목록)와 시각적으로 다르게 둔다.
   인접 섹션이 둘 다 단순 체크리스트면 화면이 반복되어 보인다는 사람 검수
   피드백(visual repetition)에 따라, 같은 "이유 나열" 이라도 섹션마다
   다른 무게감을 주기 위해 만들었다. item-count 반응형은 .faces 와 같은
   :has() 패턴을 재사용한다. */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: var(--sp-3);
}
.benefit-grid li {
  padding: 16px 14px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-sm);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--color-text);
}
.section--deep .benefit-grid li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 479px) {
  .benefit-grid { grid-template-columns: 1fr; }
}
/* item-count responsive — 1~2개면 굳이 2열로 쪼개지 않고 가운데 정렬한다 */
@media (min-width: 480px) {
  .benefit-grid:has(> :first-child:nth-last-child(-n+1)) { grid-template-columns: minmax(0, 340px); justify-content: center; }
  .benefit-grid:has(> :first-child:nth-last-child(-n+2)) { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
  .benefit-grid:has(> :first-child:nth-last-child(-n+3)) { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
}

/* 실제 교재 표지 쇼케이스(textbook-showcase) — 텍스트 카드가 아니라 실제
   이미지가 주인공이다. .benefit-grid/.check-list 는 텍스트 전용이라
   여기서는 이미지 비중을 의도적으로 크게 둔다(Visual Density 요구사항). */
.textbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: var(--sp-3);
}
.textbook-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-sm);
}
.textbook-card__cover { aspect-ratio: 580 / 440; background: #f2f2f5; }
.textbook-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.textbook-card__body { padding: 12px 14px 16px; }
.textbook-card__title { font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--color-text-strong); line-height: 1.35; }
.textbook-card__meta { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--color-primary); }
.textbook-card__purpose { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--color-text-soft); }
@media (max-width: 479px) { .textbook-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (min-width: 480px) {
  .textbook-grid:has(> :first-child:nth-last-child(-n+1)) { grid-template-columns: minmax(0, 260px); justify-content: center; }
  .textbook-grid:has(> :first-child:nth-last-child(-n+3)) { grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; }
}
@media (min-width: 640px) {
  .textbook-grid:has(> :first-child:nth-last-child(-n+4)) { grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; }
  /* 5개 이상(예: 6~8종)이면 4열 × N행 — 요청서: "4-column × 2-row 권장" */
  .textbook-grid:has(> :nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 200px)); justify-content: center; }
}

/* 자격/신뢰 3카드(CERTIFICATION 섹션) — TESOL/TEFL/CELTA 처럼 "종류"를
   설명하는 카드. benefit-grid 와 구조는 비슷하지만 배지(badge)+이름+설명
   3단 구성이 고정이라 별도 컴포넌트로 둔다. */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
  margin-top: var(--sp-3);
}
.trust-card {
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-sm);
  text-align: center;
}
.trust-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.trust-card__name { margin-top: 10px; font-size: 15px; font-weight: 800; color: var(--color-text-strong); letter-spacing: -.02em; }
.trust-card__desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--color-text-soft); }
@media (min-width: 640px) {
  .trust-grid:has(> :first-child:nth-last-child(-n+3)) { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
}

/* 보조 영상(.class-video--secondary) — experience 섹션의 메인 영상보다
   작게 둔다. 같은 컴포넌트를 두 번 큼직하게 반복하면 그 자체가 시각적
   반복이 되므로, textbooks 섹션에서는 "교재로 실제 수업하는 장면"을
   보조 증거로만 작게 곁들인다. */
.class-video--secondary { max-width: 240px; margin: 20px auto 0; }

/* 고지/조건 블록 — 과장 방지 */
.notice {
  margin-top: var(--sp-3);
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--color-background-soft);
  border: 1px solid var(--color-line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-soft);
}
.notice strong { display: block; margin-bottom: 6px; font-weight: 800; color: var(--color-text-strong); }
.notice li { position: relative; padding-left: 12px; }
.notice li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--color-text-faint);
}
.section--deep .notice {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .74);
}
.section--deep .notice strong { color: #fff; }


/* ==========================================================================
   [C] 실사 이미지 — 원본 비율 유지, 자르지 않음
   ========================================================================== */
.figure {
  position: relative;
  margin-top: var(--sp-3);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--tpl-tint);
  box-shadow: 0 14px 34px rgba(59, 11, 132, .14);
}

/* 이미지 성격 라벨 — 연출 이미지임을 이미지 위에서 바로 알리는 작은 배지.
   하단 고지문(.figure__caption)을 대체하지 않고 함께 씁니다. */
.figure__tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: rgba(24, 6, 52, .68);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.figure__tag::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--tpl-lavender);
}
.figure img {
  display: block;
  width: 100%;
  height: auto;          /* ★ 원본 비율 그대로. object-fit 크롭 없음 */
  max-width: 100%;
}
/* 데스크톱에서 지나치게 커지지 않도록 — 다만 너무 작아 비어 보이지 않게 */
.figure--wide  { max-width: 1120px; margin-inline: auto; }
.figure--mid   { max-width: 900px;  margin-inline: auto; }
.figure--band  { max-width: 1120px; margin-inline: auto; }

.figure__caption {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--color-line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-faint);
  text-align: center;
}

/* ---------------------------------------------------------------------------
   모바일 인포그래픽 가독성
   ---------------------------------------------------------------------------
   로드맵·챌린지 이미지는 1536px 폭에 글자가 촘촘히 들어간 인포그래픽입니다.
   390px 화면에 그대로 축소하면 글씨가 4~5px 이 되어 읽히지 않습니다.
   그래서 모바일에서는 가로 스크롤 컨테이너에 담아 원래 밀도를 유지합니다.
   (컨테이너 안에서만 스크롤되므로 페이지 가로 넘침은 발생하지 않습니다)
   --------------------------------------------------------------------------- */
.figure--zoom .figure__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.figure--zoom .figure__scroll::-webkit-scrollbar { display: none; }
.figure--zoom .figure__scroll img { min-width: 720px; }

.figure__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tpl-purple);
}
.figure__hint::before,
.figure__hint::after { content: "↔"; opacity: .55; }

@media (min-width: 768px) {
  /* 데스크톱에서는 원래대로 폭에 맞춘다 */
  .figure--zoom .figure__scroll { overflow-x: visible; }
  .figure--zoom .figure__scroll img { min-width: 0; }
  .figure__hint { display: none; }
}


/* ==========================================================================
   [B-1] HERO
   ========================================================================== */
.hero--challenge {
  padding: 26px 0 44px;
  background:
    radial-gradient(110% 80% at 88% 4%, rgba(164, 107, 255, .34) 0%, transparent 58%),
    radial-gradient(80% 60% at 0% 100%, rgba(201, 167, 255, .20) 0%, transparent 62%),
    linear-gradient(168deg, #23064F 0%, #3B0B84 48%, #6A20E0 100%);
  color: #fff;
  overflow: hidden;
}

.hero__kicker {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--tpl-lavender);
  letter-spacing: -.015em;
}
.hero__kicker b { display: block; color: #fff; font-weight: 800; }

.hero--challenge .hero__title {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: -.035em;
  color: #fff;
}
.hero--challenge .hero__title em {
  display: block;
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 8px;
}
.hero--challenge .hero__title strong { color: var(--tpl-lavender); font-weight: 800; }

.hero__sub-challenge {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .84);
}
.hero__sub-challenge b { color: #fff; font-weight: 800; }
.hero__sub-challenge .max { color: var(--tpl-lavender); font-weight: 800; white-space: nowrap; }

.hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero__benefits li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.hero__benefits li::before {
  content: "";
  flex: 0 0 auto;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--tpl-lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B0B84' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.hero--challenge .cta-note { color: rgba(255, 255, 255, .76); }

/* Hero 실사 컷 — popple-live-class */
.hero-shot {
  position: relative;
  margin-top: 22px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(20, 4, 46, .48);
  background: #2B1055;
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot__badge {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(24, 6, 52, .76);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-shot__badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tpl-lavender);
}


/* 실제 수업 영상 갤러리(EXPERIENCE 섹션) — 세로(휴대폰 촬영)/가로(화면 녹화)
   비율이 섞여 있어도 카드 자체는 같은 크기로 맞춘다(요청서: "동일한
   크기/비율의 카드"). object-fit:cover 로 채우고 살짝 잘리는 쪽을
   택했다 — 카드마다 다른 크기가 오히려 "정리 안 된 사용자 제공 영상"
   처럼 보인다는 사람 검수 피드백에 따른 결정. */
.video-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: var(--sp-3);
}
@media (min-width: 640px) {
  /* 2026-08-20 수정: :first-child:nth-last-child(-n+K) 형태의 누적 범위
     선택자는 개수가 적을 때 여러 규칙이 동시에 매치되어(예: 자식이 2개면
     -n+2 도, -n+3 도 모두 매치) CSS 소스 순서상 더 뒤에 있는 규칙이
     이겨버리는 버그가 있었다 — 실제 영상 2개가 "3열 트랙 중 2칸만 채운"
     상태로 렌더링되어 왼쪽으로 쏠려 보인 원인이 이것이었다(Human Review
     에서 발견). :nth-child(N):last-child 는 "정확히 N개일 때만" 매치되는
     배타적 선택자라 이 문제가 없다 — .faces 에서 이미 검증된 패턴을
     그대로 재사용한다. */
  .video-gallery:has(> :nth-child(1):last-child) { grid-template-columns: minmax(0, 420px); justify-content: center; }
  .video-gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
  .video-gallery:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; }
  .video-gallery:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 280px)); }
}
.class-video {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(20, 4, 46, .22);
  background: #000;
}
.class-video__player { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.class-video__caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-soft);
  background: #fff;
}
.class-video__label { display: block; margin-bottom: 2px; font-weight: 800; color: var(--color-text-strong); }

/* ==========================================================================
   [B-2] PROBLEM
   ========================================================================== */
.pain-list { display: grid; gap: 10px; margin-top: var(--sp-3); }
.pain {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-sm);
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--color-text);
}
.pain::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #FEF2F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.turn {
  margin-top: var(--sp-3);
  padding: 24px 20px;
  border-radius: var(--r-lg);
  background: var(--tpl-purple-deep);
  color: #fff;
  text-align: center;
}
.turn p { font-size: 14.5px; color: rgba(255, 255, 255, .76); }
.turn strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -.025em;
}
.turn strong i { font-style: normal; color: var(--tpl-lavender); }


/* ==========================================================================
   [B-3] 수업 진행 방식 — 습관 Loop
   ========================================================================== */
.loop { display: grid; gap: 8px; margin-top: var(--sp-3); }
.loop__node {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--color-primary-border);
}
.loop__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--tpl-lavender-bg);
  color: var(--tpl-purple);
}
.loop__icon svg { width: 22px; height: 22px; }
.loop__node--goal { background: var(--tpl-purple-deep); border-color: var(--tpl-purple-deep); }
.loop__node--goal .loop__icon { background: rgba(201, 167, 255, .22); color: var(--tpl-lavender); }
.loop__node--goal .loop__title { color: #fff; }
.loop__node--goal .loop__desc { color: rgba(255, 255, 255, .76); }

.loop__title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--color-text-strong); }
.loop__desc  { margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--color-text-soft); }

.loop__arrow {
  justify-self: center;
  color: var(--tpl-purple-mid);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 0;
}

.loop-note {
  margin-top: var(--sp-3);
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--tpl-lavender-bg);
  border: 1px solid var(--tpl-lavender-mid);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--tpl-purple-deep);
  text-align: center;
  font-weight: 600;
}
.loop-note b { font-weight: 800; }

/* 수업 스펙 3칸 */
.class-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: var(--sp-3);
}
.class-spec {
  padding: 16px 10px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--color-primary-border);
  text-align: center;
}
.class-spec__value {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--tpl-purple);
  line-height: 1.25;
}
.class-spec__label { margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--color-text-soft); font-weight: 600; }


/* ==========================================================================
   [B-5] 챌린지 참여방법 — 참여 조건
   ========================================================================== */
.terms { display: grid; gap: 12px; margin-top: var(--sp-3); }

.term {
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-sm);
}
.term__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--color-line);
}
.term__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--tpl-purple-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.term__label { font-size: 14px; font-weight: 700; color: var(--color-text-soft); }

.term__specs { display: grid; gap: 8px; }
.term__spec {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  line-height: 1.5;
}
.term__spec dt { font-size: 12px; font-weight: 800; color: var(--color-text-faint); letter-spacing: -.01em; }
.term__spec dd { font-weight: 800; color: var(--color-text-strong); }
.term__spec dd em { font-style: normal; color: var(--tpl-purple); }


/* ==========================================================================
   [B-6] 인증 5스텝
   ========================================================================== */
.proof-lead {
  margin-top: var(--sp-3);
  padding: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--tpl-purple-deep) 0%, #6A20E0 100%);
  color: #fff;
  text-align: center;
}
.proof-lead strong {
  display: block;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -.025em;
}
.proof-lead span {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(201, 167, 255, .2);
  border: 1px solid rgba(201, 167, 255, .44);
  color: var(--tpl-lavender);
  font-size: 13.5px;
  font-weight: 800;
}

.steps-proof { display: grid; gap: 0; margin-top: var(--sp-3); }

.pstep {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding-bottom: 20px;
}
.pstep:last-child { padding-bottom: 0; }
.pstep:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 18px; top: 38px; bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, var(--tpl-lavender-mid), var(--color-line));
}
.pstep__no {
  position: relative;
  z-index: 1;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--tpl-purple);
  color: var(--tpl-purple);
  font-size: 13px;
  font-weight: 900;
}
.pstep--last .pstep__no { background: var(--tpl-purple); border-color: var(--tpl-purple); color: #fff; }
.pstep__title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--color-text-strong); padding-top: 7px; }
.pstep__desc  { margin-top: 5px; font-size: 14px; line-height: 1.6; color: var(--color-text-soft); }
.pstep__desc b { color: var(--tpl-purple-dark); font-weight: 800; }


/* ==========================================================================
   [B-7] INSTAGRAM REELS
   --------------------------------------------------------------------------
   embed 스크립트는 페이지에 한 번만 로드합니다.
   embed 가 실패해도 레이아웃이 무너지지 않도록 각 카드에 폴백을 둡니다.
   (Instagram 스크립트가 성공하면 blockquote 내용을 iframe 으로 교체하므로
    폴백은 자동으로 사라집니다)
   ========================================================================== */
.reels {
  display: grid;
  gap: 16px;
  margin-top: var(--sp-3);
}

.reel-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-primary-border);
  box-shadow: var(--sh-sm);
  min-height: 460px;            /* embed 로드 전에도 자리를 잡아 CLS 방지 */
  display: flex;
  flex-direction: column;
}

/* Instagram 이 주입하는 blockquote/iframe 폭 제어 */
.reel-card .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1 1 auto;
}
.reel-card iframe { max-width: 100% !important; }

/* ---------------------------------------------------------------------------
   폴백은 embed 위에 "덮어" 둔다.
   ★ 폴백을 blockquote 안에 넣으면 안 된다 — Instagram 스크립트가 blockquote
     내용을 통째로 교체하므로 폴백이 지워지고 빈 카드만 남는다.
   ★ 폴백을 넣겠다고 blockquote 를 1px 로 접어도 안 된다 — 그 안에 들어오는
     iframe 까지 같이 눌려서 "렌더링됐는지" 판별 자체가 불가능해진다.
   그래서 blockquote 는 정상 크기로 두고, 폴백을 absolute 로 위에 덮는다.
   landing.js 가 iframe 이 실제로 자리를 잡은 것을 확인하면 .is-embedded 를
   붙이고, 그때 폴백이 사라진다.
   --------------------------------------------------------------------------- */
.reel-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(164, 107, 255, .28) 0%, transparent 62%),
    linear-gradient(160deg, #3B0B84 0%, #6A20E0 100%);
  color: #fff;
}
.reel-card.is-embedded .reel-fallback { display: none; }
.reel-fallback__icon {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}
.reel-fallback__icon > svg { width: 26px; height: 26px; }

/* 재생 아이콘 — 영상임을 알리는 표시 */
.reel-fallback__play {
  position: absolute;
  right: -8px; bottom: -8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  color: var(--tpl-purple-deep);
  box-shadow: 0 4px 10px rgba(20, 4, 46, .35);
}
.reel-fallback__play svg { width: 15px; height: 15px; }
.reel-fallback__title { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.45; }
.reel-fallback__desc  { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.reel-fallback .btn {
  min-height: 46px;
  font-size: 14.5px;
  max-width: 220px;
  background: #fff;
  color: var(--tpl-purple-deep);
  box-shadow: none;
}

.reels-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-faint);
}


/* ==========================================================================
   [B-8] 후기 / 강사진
   ========================================================================== */
.faces {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-3);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.faces::-webkit-scrollbar { display: none; }

/* item-count responsive — 카드가 적을 때 왼쪽에 몰리고 오른쪽이 텅 비는
   문제를 막는다(사람 디자인 검수에서 발견됨). :has() 로 자식 개수를
   감지해 JS 없이 처리한다. teacher 카드(.faces)에 우선 적용했고,
   같은 "가로 스크롤 카드 목록" 구조라면 다른 곳에도 그대로 쓸 수 있다.
     1~3개  → 스크롤이 필요 없으므로 가운데 정렬하고 스크롤을 끈다
     4개 이상 → 기존 가로 스크롤 유지 (카드가 많을 땐 정상적인 패턴) */
@media (min-width: 640px) {
  .faces:has(> :first-child:nth-last-child(-n+3)) {
    justify-content: center;
    overflow-x: visible;
    scroll-snap-type: none;
    flex-wrap: wrap;
  }
}

.face {
  flex: 0 0 132px;
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-sm);
}
.face__photo { aspect-ratio: 264 / 300; background: linear-gradient(180deg, #F7F3FF, #EDE5FA); }
.face__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.face__body { padding: 10px 11px 12px; }
.face__name { font-size: 13.5px; font-weight: 800; color: var(--color-text-strong); letter-spacing: -.02em; }
.face__tag  { margin-top: 3px; font-size: 11.5px; color: var(--color-text-soft); font-weight: 600; }

/* .face--card — 이름/전문분야/인증뱃지가 이미 이미지 안에 들어있는
   완성형 마케팅 카드용 변형. 별도 텍스트를 덧그리지 않고 이미지 하나로
   카드를 완성한다(Brand Library 에 이 포맷으로만 있는 강사가 많아서
   생김 — .face__body 를 다시 만드는 대신 이미지를 그대로 신뢰한다). */
.face--card .face__photo { aspect-ratio: 300 / 290; background: #fff; }
.face--card .face__photo img { object-position: 50% 50%; }

.voice { display: grid; gap: 12px; margin-top: var(--sp-3); }
.voice__item {
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-sm);
}
.voice__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.voice__meta span {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--tpl-tint);
  border: 1px solid var(--tpl-lavender-mid);
  font-size: 11.5px; font-weight: 700; color: var(--tpl-purple-deep);
}
.voice__quote { font-size: 14.5px; line-height: 1.75; color: var(--color-text); }
.voice__quote::before { content: "“"; }
.voice__quote::after  { content: "”"; }

/* 실제 후기가 아직 없을 때의 정직한 안내문. Golden Reference 에도 마크업만
   있고 스타일이 없던 간극이라 여기서 채운다. */
.reviews__disclaimer {
  margin-top: var(--sp-3);
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--color-background-soft);
  border: 1px dashed var(--color-line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-text-faint);
  text-align: center;
}


/* ==========================================================================
   [B-8b] FREE CULTURE CLASS
   --------------------------------------------------------------------------
   교양수업 실사 이미지가 아직 없습니다. 가짜 사진을 만들지 않고
   카테고리 타이포 + 아이콘 카드로 구성했습니다.
   공식 이미지가 확보되면 .cclass__thumb 안에 <img> 를 넣고
   아래 배경/아이콘 규칙만 지우면 됩니다.
   ========================================================================== */
.cclass {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: var(--sp-3);
}

.cclass__card {
  padding: 20px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--color-primary-border);
  box-shadow: var(--sh-sm);
  text-align: center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.cclass__card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.cclass__thumb {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
}
.cclass__thumb svg { width: 26px; height: 26px; }

/* 카드마다 다른 퍼플 톤 — 단조로워 보이지 않게 */
.cclass__card--cook    .cclass__thumb { background: #F3EAFF; color: #6A20E0; }
.cclass__card--science .cclass__thumb { background: #EDE4FF; color: #4C1098; }
.cclass__card--game    .cclass__thumb { background: #F7F0FF; color: #8338FF; }
.cclass__card--book    .cclass__thumb { background: #EFE6FF; color: #5B21C9; }

.cclass__cat {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--tpl-purple-mid);
}
.cclass__title {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--color-text-strong);
}

.cclass__more {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-soft);
}


/* --------------------------------------------------------------------------
   신청 섹션 제목 — 데스크톱/태블릿에서 반드시 한 줄
   -------------------------------------------------------------------------- */
.h2--oneline { white-space: nowrap; }

/* 320~360px 처럼 아주 좁은 화면에서는 글자를 억지로 줄이지 않고
   자연스러운 줄바꿈을 허용합니다. */
@media (max-width: 400px) {
  .h2--oneline { white-space: normal; }
}

.cculture-close {
  margin-top: var(--sp-5);
  padding: 28px 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--tpl-purple-deep) 0%, #6A20E0 100%);
  color: #fff;
  text-align: center;
}
.cculture-close__title {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -.025em;
}
.cculture-close__desc {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
}


/* ==========================================================================
   [B-9] STARTER KIT
   ========================================================================== */
.kit-block {
  margin-top: var(--sp-3);
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(164, 107, 255, .28) 0%, transparent 60%),
    linear-gradient(160deg, #3B0B84 0%, #6A20E0 100%);
  color: #fff;
  box-shadow: var(--sh-lg);
}
.kit-block__shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}
.kit-block__shot img { display: block; width: 100%; height: auto; }
.kit-block__eyebrow { color: var(--tpl-lavender); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; }
.kit-block__title {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.025em;
}
.kit-block__desc {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
}
.kit-block__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.kit-block__tags li {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12.5px;
  font-weight: 700;
}


/* ==========================================================================
   [B-10] FORM 보조
   ========================================================================== */
.apply-summary {
  display: grid;
  gap: 9px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--tpl-purple-deep) 0%, var(--tpl-purple-dark) 100%);
  color: #fff;
}
.apply-summary li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; line-height: 1.45;
}
.apply-summary li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tpl-lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B0B84' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.preview-flag {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: #FFF8E6;
  border: 1px solid #F5D98B;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7A5300;
}
.preview-flag b { font-weight: 800; }


/* ==========================================================================
   반응형
   ========================================================================== */
@media (min-width: 768px) {
  /* 데스크톱 밀도 — 제목을 키우고 위계를 분명히 */
  .h2 { font-size: 36px; }
  .lead { font-size: 17.5px; }

  .cclass { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cclass__card { padding: 26px 18px; }
  .cclass__thumb { width: 64px; height: 64px; }
  .cclass__thumb svg { width: 30px; height: 30px; }
  .cclass__title { font-size: 19px; }
  .cculture-close { padding: 40px 32px; max-width: 760px; margin-inline: auto; }
  .cculture-close__title { font-size: 26px; }

  .hero--challenge { padding: 52px 0 76px; }
  .hero--challenge .hero__title { font-size: 46px; }
  .hero--challenge .hero__title em { font-size: 18px; }
  .hero__kicker { font-size: 18px; }
  .hero__sub-challenge { font-size: 16.5px; max-width: 520px; }
  .hero__benefits li { font-size: 14.5px; padding: 10px 15px; }
  .hero-shot { margin: 28px auto 0; max-width: 560px; }

  .pain-list { grid-template-columns: repeat(2, 1fr); }

  .loop { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .loop__arrow { display: none; }
  .class-specs { gap: 12px; }
  .class-spec__value { font-size: 24px; }

  .terms { grid-template-columns: repeat(2, 1fr); }

  .steps-proof { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }

  .reels { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .kit-block { grid-template-columns: 320px 1fr; align-items: center; padding: 28px; }
  .kit-block__title { font-size: 24px; }

  .voice { grid-template-columns: repeat(3, 1fr); }
  /* item-count responsive — 검증된 후기가 2개뿐인 캠페인에서 3열 중
     하나가 비어 보이지 않도록, 3개면 기존 3열을 그대로 쓰고 2개일 때만
     2열 가운데 정렬로 바꾼다(.faces/.benefit-grid 와 같은 :has() 패턴). */
  .voice:has(> :first-child:nth-last-child(-n+2)) { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
  .face { flex-basis: 156px; }

  .notice { max-width: var(--wrap-text); margin-inline: auto; }
  .apply-summary, .preview-flag { max-width: 620px; margin-inline: auto; }
}

@media (min-width: 1024px) {
  .h2 { font-size: 42px; }
  .section { padding-block: 112px; }

  .cclass__card { padding: 30px 20px; }
  .cculture-close__title { font-size: 30px; }

  .hero--challenge { padding: 80px 0 104px; }
  .hero--challenge .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 0 56px;
    align-items: start;
  }
  .hero__copy       { grid-column: 1; grid-row: 1; }
  .hero__benefits   { grid-column: 1; grid-row: 2; margin-top: 24px; }
  .hero__cta        { grid-column: 1; grid-row: 3; margin-top: 26px; max-width: 460px; }
  .hero-shot        { grid-column: 2; grid-row: 1 / span 3; margin: 0; max-width: none; align-self: center; }
  .hero--challenge .hero__title { font-size: 54px; }

  .loop { grid-template-columns: repeat(5, 1fr); }
  .loop__node { grid-template-columns: 1fr; gap: 12px; text-align: center; padding: 22px 16px; }
  .loop__icon { margin-inline: auto; }

  .steps-proof { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .pstep { grid-template-columns: 1fr; gap: 12px; padding-bottom: 0; }
  .pstep:not(:last-child)::before {
    left: 46px; right: -20px; top: 18px; bottom: auto;
    width: auto; height: 2px;
    background: var(--color-line);
  }
  .pstep__title { padding-top: 0; font-size: 15.5px; }
  .pstep__desc { font-size: 13.5px; }

  .kit-block { grid-template-columns: 400px 1fr; padding: 36px; }

  .faces {
    margin-inline: 0;
    padding-inline: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    overflow: visible;
  }
  .face { flex-basis: auto; }

  /* item-count responsive (데스크톱) — 카드 개수에 따라 실제 칼럼 수를
     맞추고 justify-content 로 그룹 자체를 가운데 놓는다.
     grid-template-columns 를 고정폭(minmax)으로 바꿔야 justify-content 가
     실제로 효과가 있다 — 1fr 트랙은 컨테이너를 항상 꽉 채우므로 정렬할
     여백 자체가 안 생긴다.
     5개 이상(교사 갤러리 8~12명 등)은 예전에 5열 고정을 썼는데, 개수가
     5의 배수가 아니면 마지막 줄이 다시 왼쪽으로 쏠렸다(요청서 6번 —
     "4-column × 2~3 rows 권장"과 같은 문제). 4열로 통일하면 8명 같은
     흔한 경우가 정확히 꽉 찬 2행이 되고, 나머지 경우도 5열보다 쏠림이
     덜하다. */
  .faces:has(> :nth-child(1):last-child) { grid-template-columns: minmax(0, 220px); justify-content: center; }
  .faces:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; }
  .faces:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; }
  .faces:has(> :nth-child(4):last-child),
  .faces:has(> :nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 200px)); justify-content: center; }
}
