/* 2026-10-27 수정: 기존 디자인은 그대로 두고, 지적된 부분만 고친다 */

/* 첫 화면 버튼: 주 버튼을 보통 크기로, '강사 소개'를 같은 높이의 테두리 버튼으로 */
.hero-actions { align-items: center; gap: 10px; }
.hero-actions .button.primary,
.hero-actions .text-link {
  min-height: 0; height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; border-radius: 3px; box-sizing: border-box; text-decoration: none;
}
.hero-actions .text-link { border: 1px solid #273953; color: #273953; background: #fff; }
.hero-actions .text-link:hover { background: #273953; color: #fff; }
@media (max-width: 640px) {
  .hero-actions .button.primary, .hero-actions .text-link { height: 46px; padding: 0 18px; font-size: 13px; }
}

/* 상단 '수업 상담' 버튼을 뺀 대신, 하단 상담 버튼을 컴퓨터 화면에서도 보이게 */
@media (min-width: 860.02px) {
  .kakao-fab { position: fixed; z-index: 60; right: 28px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 24px; background: #fee500; color: #191600; font: 600 15px/1 inherit; box-shadow: 0 8px 22px -8px rgba(0,0,0,.35), 0 0 0 1px rgba(25,22,0,.06); transform: translateY(90px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; cursor: pointer; }
  .kakao-fab svg { width: 19px; height: 19px; fill: currentColor; }
  .kakao-fab.show { transform: none; opacity: 1; pointer-events: auto; }

}

/* 학생 관리 플랫폼 소개 (수강 안내 안) */
.platform { margin: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); padding: clamp(28px, 4.5vw, 56px); background: #273953; color: #fff; border-radius: 4px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); }
.platform .eyebrow { color: #f2cf7e; }
.platform h3 { color: #fff; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.45; margin: 14px 0 16px; font-weight: 600; }
.platform-head > p:not(.eyebrow) { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.85; margin: 0; }
.platform-head > p:not(.eyebrow) + p { margin-top: 12px; color: #fff; }
.platform-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.platform-features li { padding: 20px 0 22px; border-top: 1px solid rgba(255,255,255,.16); }
.platform-features b { display: block; font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.platform-features span { display: block; font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.76); }
@media (max-width: 900px) {
  .platform { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .platform-features { grid-template-columns: 1fr; }
}

/* 플랫폼 실제 화면 미리보기 */
.platform-shots { grid-column: 1 / -1; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(255,255,255,.16); min-width: 0; }
.shots-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.shots-head .eyebrow { margin: 0; }
.shots-lead { margin: 0; font-size: 15px; color: #fff; }
.shots-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 20px; padding: 2px; }
.shots-tabs::-webkit-scrollbar { display: none; }
.shots-tabs [role="tab"] { flex: none; height: 36px; padding: 0 15px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: transparent; color: rgba(255,255,255,.78); font: inherit; font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.shots-tabs [role="tab"]:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.shots-tabs [role="tab"][aria-selected="true"] { background: #f2cf7e; border-color: #f2cf7e; color: #1d2a3d; font-weight: 600; }
.shots-tabs [role="tab"]:focus-visible { outline: 2px solid #f2cf7e; outline-offset: 2px; }
.platform-shots:not(.js) .shots-tabs { display: none; }
.platform-shots:not(.js) .shot + .shot { margin-top: 36px; }
.shot { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(20px, 3vw, 40px); align-items: center; }
.shot[hidden] { display: none; }
.shot-frame { display: block; color: inherit; text-decoration: none; }
.shot-browser { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef0f2; border-bottom: 1px solid #dfe3e7; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd5db; }
.shot-bar span { margin-left: 10px; font-size: 10.5px; letter-spacing: .12em; color: #8a94a0; }
.shot img { display: block; width: 100%; height: auto; }
.shot.is-phone .shot-frame { justify-self: center; width: min(100%, 260px); }
.shot-phone { padding: 10px; border-radius: 34px; background: #0f1724; box-shadow: 0 24px 48px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }
.shot-phone img { border-radius: 25px; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
.shot figcaption { display: flex; flex-direction: column; gap: 8px; }
.shot-no { font-size: 12px; letter-spacing: .14em; color: #f2cf7e; }
.shot figcaption b { font-size: 19px; font-weight: 600; color: #fff; line-height: 1.45; }
.shot figcaption span:last-child { font-size: 14.5px; line-height: 1.8; color: rgba(255,255,255,.8); }
.shots-note { margin: 22px 0 0; font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.55); }
@media (max-width: 900px) {
  .shot { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .shots-tabs { margin-left: -2px; margin-right: calc(-1 * clamp(28px, 4.5vw, 56px)); padding-right: 24px; }
  .shot-bar { height: 22px; padding: 0 9px; gap: 4px; }
  .shot-bar i { width: 6px; height: 6px; }
  .shot-bar span { font-size: 9px; }
  .shot figcaption b { font-size: 17px; }
}
.shot-frame { position: relative; }
.shot-frame::after { content: '크게 보기 ↗'; position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 14px; background: rgba(15,23,36,.78); color: #fff; font-size: 11.5px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.shot-frame:hover::after, .shot-frame:focus-visible::after { opacity: 1; }
.shot.is-phone .shot-frame::after { right: 18px; bottom: 18px; }
@media (hover: none), (pointer: coarse) { .shot-frame::after { opacity: 1; transition: none; } }
.shots-tabs { flex-wrap: wrap; align-items: center; }
.shots-group { flex: none; font-size: 11.5px; letter-spacing: .14em; color: #f2cf7e; padding: 0 4px 0 2px; }
.shots-group + [role="tab"] { margin-left: 0; }
.shots-tabs [role="tab"] + .shots-group { margin-left: 14px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
@media (max-width: 600px) {
  .shots-tabs { flex-wrap: nowrap; }
  .shots-tabs [role="tab"] + .shots-group { margin-left: 8px; padding-left: 10px; }
}
.shot-badge { display: inline-block; margin-right: 8px; padding: 2px 8px; border: 1px solid rgba(242,207,126,.6); border-radius: 10px; font-style: normal; font-size: 11px; letter-spacing: .02em; color: #f2cf7e; }

/* 하단 법정 표기 */
.footer { flex-wrap: wrap; }
.footer-legal { flex-basis: 100%; margin-top: 4px; padding-top: 18px; border-top: 1px solid rgba(101,118,92,.22); font-size: 11.5px; line-height: 1.9; color: #65765c; }
.footer-legal p { margin: 0; }
.footer-legal i { font-style: normal; margin: 0 7px; color: rgba(101,118,92,.45); }
@media (max-width: 600px) { .footer-legal { font-size: 10.5px; order: 4; } .footer-legal i { margin: 0 4px; } }
.footer-legal .refund { margin-top: 10px; }
.footer-legal .refund summary { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 11.5px; line-height: 1.9; color: #4f6346; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-legal .refund summary::after { content: '+'; text-decoration: none; display: inline-block; transition: transform .2s; }
.footer-legal .refund[open] summary::after { transform: rotate(45deg); }
.refund-body { max-width: 640px; margin-top: 10px; padding: 16px 18px; background: rgba(101,118,92,.06); border-radius: 4px; }
.refund-body .refund-law { margin: 0 0 10px; }
.refund-body table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.refund-body th, .refund-body td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(101,118,92,.18); font-weight: 400; }
.refund-body th { color: #4f6346; font-weight: 600; }
.refund-body ul { margin: 0; padding-left: 16px; }
.refund-body li { margin: 2px 0; }
@media (max-width: 600px) { .refund-body { padding: 12px 12px; } .refund-body th, .refund-body td { padding: 5px 4px; } }

/* 2026-10-27 점검 수정 */
/* 구형 Safari(iOS 15.3 이하)에서 닫힌 창이 본문에 보이지 않도록 */
dialog:not([open]) { display: none; }
/* 맛보기 창: 페이지 이미지가 화면보다 커져 닫기·넘기기 버튼이 밀려나지 않도록 */
.actual-sample img { max-height: 64vh; max-height: 64dvh; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
.dialog .close-dialog { position: sticky; top: 0; float: right; z-index: 3; }
/* 상담 버튼: font 단축 속성 오류 수정, 숨김 상태는 초점·낭독에서도 제외 */
.kakao-fab { font-family: inherit !important; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; }
.kakao-fab:not(.show) { visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
@media (min-width: 860.02px) { .kakao-fab { font-size: 15px; } }
/* 교재 목록 가로 스크롤이 화면 밖으로 몇 px 튀어나오지 않도록 실제 여백만큼만 확장 */
@media (max-width: 760px) {
  .catalog-rail { margin-right: calc((100% - 100vw) / 2); padding-right: calc((100vw - 100%) / 2); }
}
/* 모바일 바로가기: 항목이 6개라 좁은 화면에서는 옆으로 넘겨 보기 */
@media (max-width: 850px) {
  .mobile-sections { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .mobile-sections::-webkit-scrollbar { display: none; }
  .mobile-sections a { flex: none; padding-inline: 9px; }
}
@media (min-width: 520px) and (max-width: 850px) { .mobile-sections { justify-content: space-around; } }
/* 하단 정보 글자 대비 보강, 반환 기준 펼침 표시 */
.footer-legal { color: #56664e; }
.footer-legal .refund summary { text-decoration: none; }
.footer-legal .refund summary > span { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .shots-tabs { scroll-behavior: auto; } }
#sample-counter { white-space: nowrap; }

/* ===== 2026-10-27 디자인 정리: 강조색 2가지(남색 + 벽돌색), 숫자 영역, 하단 상담 바 ===== */
:root { --accent: #b04a3a; --accent-dark: #9b4e40; --accent-tint: #ebbaaa; }
/* 제목 강조는 벽돌색 하나로 */
h1 em, h2 em, h3 em { color: var(--accent) !important; }
/* 금색 배지 → 남색 테두리 배지 */
.exam-ready { background: #eef1f5 !important; border-color: #cbd3de !important; color: var(--ink, #273953) !important; box-shadow: none !important; }
.exam-ready span, .exam-ready strong { color: var(--ink, #273953) !important; }
/* 어두운 배경 위 포인트는 연한 벽돌색 하나로 */
.platform .eyebrow, .shots-group, .shot-no, .difference-section .eyebrow, .challenge-label, .challenge-label span, .contact-section .eyebrow { color: var(--accent-tint) !important; border-color: var(--accent-tint) !important; }
.shots-tabs [role="tab"][aria-selected="true"] { background: var(--accent-tint); border-color: var(--accent-tint); color: #1d2a3d; }
.shots-tabs [role="tab"]:focus-visible { outline-color: var(--accent-tint); }
.shot-badge { color: var(--accent-tint); border-color: rgba(235,186,170,.6); }
.difference-number { color: var(--accent-tint) !important; }
.difference-toggle, .difference-example { color: rgba(255,255,255,.6) !important; }
/* 밝은 배경 위 작은 라벨은 진한 벽돌색 하나로 (갈색·금색·올리브 정리) */
.journey-period, .origin-bridge .eyebrow, .answer-label, .review-topic, .lesson-flow li > span, .course-facts dt, .tag, .text-link > span { color: var(--accent-dark) !important; }
.journey-stages { border-color: rgba(176,74,58,.35) !important; }
.journey-stages li::before { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
.faq-toggle { color: #526780 !important; }
/* 맨 위 안내 줄: 노란색은 카카오 아이콘에만 */
.kakao-bar b { color: #fff; }

/* 숫자 영역: 네 칸을 같은 모양으로 */
.proof-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.proof-strip > div, .proof-strip > div:nth-child(3) { background: #fff !important; color: inherit !important; }
.proof-strip > div strong, .proof-strip > div:nth-child(3) strong { color: var(--ink, #273953) !important; }
.proof-strip > div p { color: #6d6b6b !important; }
.proof-strip .proof-pre { font-size: 15px !important; margin: 0 6px 0 0 !important; letter-spacing: 0; color: var(--accent-dark); }
@media (max-width: 600px) {
  .proof-strip { grid-template-columns: 1fr 1fr !important; }
  .proof-strip .proof-pre { font-size: 13px !important; }
}

/* 플랫폼 소개: 기능 목록 대신 제목·설명 2단 + 실제 화면 */
.platform { grid-template-columns: 1fr !important; }
.platform-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(28px, 4vw, 56px); align-items: start; }
.platform-title h3 { margin-bottom: 0; }
.platform-copy p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.85; margin: 0; }
.platform-copy p + p { margin-top: 12px; color: #fff; }
.platform-shots { border-top: 1px solid rgba(255,255,255,.16); }
@media (max-width: 900px) { .platform-head { grid-template-columns: 1fr; } }

/* 강사의 여정: 휴대폰에서 접기 */
.journey-details > summary { display: none; }
@media (max-width: 860px) {
  .journey-details > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 16px 0; border-top: 1px solid var(--line, #e2dfda); border-bottom: 1px solid var(--line, #e2dfda); font-size: 14px; color: var(--ink, #273953); }
  .journey-details > summary::-webkit-details-marker { display: none; }
  .journey-details[open] > summary { border-bottom: 0; }
  .journey-details[open] > summary > span { transform: rotate(45deg); }
  .journey-details > summary > span { transition: transform .2s; font-size: 18px; }
}

/* 휴대폰 하단 고정 상담 바 (카카오톡 상담만) */
@media (max-width: 860.01px) {
  .kakao-fab { left: 0; right: 0; bottom: 0; width: 100%; height: calc(54px + env(safe-area-inset-bottom, 0px)); padding: 0 16px env(safe-area-inset-bottom, 0px); border-radius: 0; justify-content: center; gap: 8px; font-size: 15px; box-shadow: 0 -4px 16px -8px rgba(0,0,0,.3); transform: translateY(100%); }
  .kakao-fab svg { width: 20px; height: 20px; }
}
.exam-ready > span[aria-hidden], .exam-ready > span:first-child { color: #fff !important; background: var(--ink, #273953) !important; }
