/* PATCH_20260707E: index 라이트/다크 최종 보정 — 모든 시트보다 마지막에 로드되어 캐스케이드 순서 문제를 종결합니다 */

/* --- 라이트 기본값 재고정 (외부 시트가 어긋나도 원래 디자인 유지) --- */
.trust-item{background:rgba(255,255,255,.72);border:1px solid rgba(226,232,240,.9)}
.process-step{background:rgba(255,255,255,.72)}
.course-card.premium-course{background:rgba(255,255,255,.86);border:1px solid #e2e8f0}
.final-cta{background:linear-gradient(135deg,#0f172a,#172638);color:#fff}
.final-cta h2{color:#fff}
.final-cta p{color:#cbd5e1}
.trust-compact h2{color:#fff}

/* --- 다크: 카드 배경/테두리 (기존 보정이 글자만 바꿔 밝은카드+밝은글자가 되던 문제 해결) --- */
html.dark .trust-item,html[data-theme="dark"] .trust-item{background:rgba(16,24,39,.82);border-color:#233044;box-shadow:0 10px 26px rgba(0,0,0,.35)}
html.dark .trust-item strong,html[data-theme="dark"] .trust-item strong{color:#eef4ff}
html.dark .trust-item span,html[data-theme="dark"] .trust-item span{color:#9fb0c9}

html.dark .process-step,html[data-theme="dark"] .process-step{background:rgba(16,24,39,.82);border-color:#233044}
html.dark .process-step b,html[data-theme="dark"] .process-step b{background:rgba(96,165,250,.22);color:#93c5fd}
html.dark .process-step h3,html[data-theme="dark"] .process-step h3{color:#eef4ff}
html.dark .process-step p,html[data-theme="dark"] .process-step p{color:#9fb0c9}

html.dark .course-card.premium-course,html[data-theme="dark"] .course-card.premium-course{background:rgba(16,24,39,.85);border-color:#233044}
html.dark .course-card .course-top span,html[data-theme="dark"] .course-card .course-top span{background:rgba(96,165,250,.22);color:#93c5fd}
html.dark .course-card .course-top strong,html[data-theme="dark"] .course-card .course-top strong{color:#eef4ff}
html.dark .course-card p,html[data-theme="dark"] .course-card p{color:#9fb0c9}
html.dark .course-card em,html[data-theme="dark"] .course-card em{color:#60a5fa}

html.dark .audience-strip span,html[data-theme="dark"] .audience-strip span{background:#101827;border-color:#233044;color:#c4d2e7}

/* trust-compact/final-cta 는 두 모드 모두 다크 패널 유지 (배지·버튼 대비 보정) */
html.dark .trust-compact,html[data-theme="dark"] .trust-compact{background:linear-gradient(135deg,#0b1220,#132033)}
.trust-mini-grid article{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:14px}
.trust-mini-grid article strong{color:#fff}
.trust-mini-grid article span{color:#cbd5e1}
.final-cta .btn{background:#fff;color:#0f172a}
html.dark .final-cta .btn,html[data-theme="dark"] .final-cta .btn{background:#eef4ff;color:#0f172a}
.premium-badge{background:rgba(255,255,255,.12);color:#dbeafe}

/* stage23 기업 재무 카드 (하얀 블록 현상) */
html.dark .stage23-finance-card,html[data-theme="dark"] .stage23-finance-card{background:#101827;border-color:#233044}
html.dark .stage23-finance-card strong,html[data-theme="dark"] .stage23-finance-card strong{color:#eef4ff}
html.dark .stage23-finance-card span,html[data-theme="dark"] .stage23-finance-card span{color:#9fb0c9}
html.dark .stage23-finance-card b,html[data-theme="dark"] .stage23-finance-card b{background:rgba(96,165,250,.14);color:#93c5fd}

/* 히어로 보조 텍스트/그라데이션 제목 */
html.dark .hero p,html[data-theme="dark"] .hero p{color:#9fb0c9}
html.dark .hero h1 span,html[data-theme="dark"] .hero h1 span{background:linear-gradient(135deg,#bfdbfe 5%,#60a5fa 55%,#34d399 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
