/* ======================================================================
   하위 페이지 — 홈 컨셉(Shopify식 구조 + MindFin 블루 네온) 공통 층 (2026-10-14)
   대표 결정: '검정 머리 + 흰 본문' · 범위 = 가이드·유형 페이지 + 서비스 페이지 (구 B2B·관리자·보고서 제외)
   옵트인: <body class="... sx-sub"> + <link rel="stylesheet" href="/css/sx-sub.css"> (+ 머리 네온: /js/sx-neon.js)
   · 상단바: 홈과 같은 아코디언 내비(css/sx-nav.css · js/sx-nav.js, 마크업은 scripts/sync-nav.js 가 홈에서 복사)
   · 검정 머리(.sxs-hero): 페이지 제목. 뒤에 블루 네온(sx-neon.js, WebGL 불가 시 정적 빛)
   · 흰 본문: 앰비언트 배경 끔, 카드 12px + 잔 그림자 겹, 코랄 틴트 → 무채색, 강조 상자(.cta·.pivot)는 검정 + 위쪽 네온 빛
   · 버튼은 알약: 흰 바탕 검정 알약 · 검정 바탕 흰 알약 · 검정 푸터(.lp-foot)는 홈과 같은 마크업
   · 글자 대비(네온 최악 조건 계산, 네온은 상단 바 아래부터): 머리 제목 흰색 10.5:1↑, 아이브로 #BBD0FF 6.3:1↑, 작은 글씨 #d4d4d8 5.7:1↑,
     서비스 검정 띠(위 여백 36px) 아이브로 5.3:1·제목 9.6:1·본문 8:1
     (홈 히어로와 같은 셰이더 상한 knee. 머리 안에 #a1a1aa 같은 더 어두운 회색은 쓰지 말 것 — 바 바로 아래에서 3.7:1)
   ====================================================================== */
body.sx-sub {
    --sx-night: #000; --sx-night-2: #0a0a0a; --sx-hair-d: #1e2c31; --sx-hair-l: #e4e4e7;
    --sx-shade-30: #d4d4d8; --sx-shade-40: #a1a1aa; --sx-shade-50: #71717a;
    --sx-shadow: 0 8px 8px rgba(0,0,0,.05), 0 4px 4px rgba(0,0,0,.05), 0 2px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.06);
    --sxs-w: 800px;
}
/* 흰 본문 — 앰비언트(연블루 머리·양옆 웨이브) 끔 */
body.sx-sub.mf-ambient { background: #fff; background-image: none; }
body.sx-sub.mf-ambient::before, body.sx-sub.mf-ambient::after { display: none; }

/* ── 검정 머리 ── */
/* 2026-10-14: 머리 안 상단 바(.sxs-bar)를 걷고, 위에 홈과 같은 고정 아코디언 상단바(<header class="mf-appbar sxn">, 60px)를 둔다.
   머리는 그 바로 아래에서 시작 — 머리 위 경계가 네온관(예전 '바 아래 60px'과 화면상 같은 자리, 글자 대비 계산 그대로) */
.sxs-hero { position: relative; overflow: hidden; color: #fff; padding: 0 0 52px;
    background: radial-gradient(30% 440px at 50% 0, rgba(43,108,246,.30), rgba(11,58,143,.12) 55%, transparent 100%), linear-gradient(180deg, rgba(43,108,246,.32) 0, transparent 22px), var(--sx-night); }
.sxs-neon { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sxs-head { position: relative; z-index: 1; max-width: var(--sxs-w); margin: 0 auto; padding: 40px 20px 0; } /* 위 여백 40px↑: 네온관 바로 아래 글자 대비(최악 5.3:1↑) */
.sxs-hero a:focus-visible, .sx-sub .lp-foot a:focus-visible { outline: 2px solid var(--mf-primary-200); outline-offset: 2px; }
@media (min-width: 900px) { .sxs-hero { padding-bottom: 68px; } .sxs-head { padding-top: 48px; } }

/* 네온 로고 — 홈 상단바와 같은 처리(흰 심 + 블루 빛번짐 3겹, 히어로와 같은 박자로 점화) */
.sx-sub .mf-brand { color: #fff; font-size: 24px; text-shadow: 0 0 12px rgba(43,108,246,.45); }
.sx-sub .mf-brand::before { width: 38px; height: 30px;
    filter: brightness(0) invert(1) drop-shadow(0 0 1px var(--mf-primary-200)) drop-shadow(0 0 4px var(--mf-primary)) drop-shadow(0 0 10px rgba(43,108,246,.75)); }
@media (prefers-reduced-motion: no-preference) {
    .sx-sub .mf-brand::before { animation: sxs-logo-ignite 1.1s steps(1, end) both; }
    @keyframes sxs-logo-ignite { 0% { opacity: .6; } 11% { opacity: .25; } 41% { opacity: .9; } 53% { opacity: .3; } 82%, 100% { opacity: 1; } }
}

/* 머리 안 제목 블록 — 페이지마다 쓰던 .top · .hd · .hero · h1 · .sub 를 검정 위 색으로 */
.sx-sub .sxs-head .top { padding: 0 0 14px; font-size: 13px; }
.sx-sub .sxs-head .top a { color: var(--sx-shade-30); font-weight: 500; text-decoration: none; }
.sx-sub .sxs-head .top a:hover { color: #fff; }
.sx-sub .sxs-head .hd { padding: 0; }
.sx-sub .sxs-head .hd__k, .sx-sub .sxs-head .hero__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--mf-primary-200); opacity: 1; }
.sx-sub .sxs-head h1, .sx-sub .sxs-head .hero__title { margin: 12px 0 14px; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.14; font-weight: 340; letter-spacing: -.03em; color: #fff; }
.sx-sub .sxs-head .hd__s, .sx-sub .sxs-head .hero p, .sx-sub .sxs-head .sub, .sx-sub .sxs-head .hero__one { font-size: 16.5px; line-height: 1.65; color: var(--sx-shade-30); opacity: 1; }
.sx-sub .sxs-head .hd__s b, .sx-sub .sxs-head .hero p b, .sx-sub .sxs-head .sub b { color: #fff; }
.sx-sub .sxs-head .hd__m { margin-top: 16px; font-size: 12.5px; color: var(--sx-shade-30); }
.sx-sub .sxs-head .hero { background: none; border-radius: 0; padding: 0; color: #fff; }
/* 유형 페이지 머리 — 캐릭터가 자기 색 빛을 두르고 선다(--c = 유형 색) */
.sx-sub .sxs-head .hero__chr { position: relative; width: 132px; height: 132px; }
.sx-sub .sxs-head .hero__chr::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, rgba(43,108,246,.5), transparent 68%); background: radial-gradient(circle, color-mix(in srgb, var(--c, #2B6CF6) 60%, transparent), transparent 68%); }
.sx-sub .sxs-head .hero__chr img { filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)); }
@media (min-width: 720px) { .sx-sub .sxs-head .hero__chr { width: 168px; height: 168px; } }

/* ── 흰 본문 ── */
body.sx-sub.mf-article .wrap { margin: 0 auto; padding-top: 40px; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
@media (min-width: 900px) { body.sx-sub.mf-article .wrap { margin: 0 auto 24px; padding-left: 20px; padding-right: 20px; } }
.sx-sub .wrap > h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; letter-spacing: -.02em; color: #000; }
/* 카드 — 12px + 잔 그림자 겹 (회색 상자 → 흰 카드) */
.sx-sub :is(.card, .faq__item, .step, .ct, .ty, .kind, .prob, .inc__i, .sit__i, .g, .hub-card) { background: #fff; border-color: var(--sx-hair-l); border-radius: 12px; box-shadow: var(--sx-shadow); }
/* 요약·강조 상자 — 블루 틴트 유지, 모서리만 맞춤 */
.sx-sub :is(.note, .tldr, .ax) { border-radius: 12px; }
/* 코랄 틴트 → 무채색 (홈에서 코랄을 쓰지 않음) */
.sx-sub :is(.rule, .pick, .ask) { background: #f4f4f5; border-color: var(--sx-hair-l); border-radius: 12px; }
.sx-sub .warn { border-radius: 12px; }
/* 검정 강조 상자 — 위쪽에 네온 빛, 버튼은 흰 알약 */
.sx-sub :is(.cta, .pivot) { border-radius: 16px; border: 1px solid var(--sx-hair-d);
    background: radial-gradient(80% 120% at 50% 0%, rgba(43,108,246,.38), rgba(11,58,143,.12) 45%, transparent 70%), var(--sx-night); }
.sx-sub .cta :is(h2, h3) { font-size: clamp(22px, 3vw, 28px); font-weight: 340; letter-spacing: -.02em; color: #fff; }
.sx-sub .cta p { color: var(--sx-shade-30); opacity: 1; }
.sx-sub .cta a { background: #fff; color: #000; border-radius: 9999px; font-weight: 600; }
.sx-sub .cta a:hover { background: #e4e4e7; }

/* ── 버튼 (서비스 페이지 공통 클래스) — 알약 ── */
.sx-sub .mf-btn { border-radius: 9999px; }
.sx-sub .mf-btn--accent, .sx-sub .mf-btn--primary { background: #000; color: #fff; border-color: #000; box-shadow: none; }
.sx-sub .mf-btn--accent:hover, .sx-sub .mf-btn--primary:hover { background: #3f3f46; border-color: #3f3f46; box-shadow: none; }
.sx-sub .mf-btn--accent::after { display: none; }
.sx-sub .sxs-dark .mf-btn--accent, .sx-sub .sxs-dark .mf-btn--primary { background: #fff; color: #000; border-color: #fff; }
.sx-sub .sxs-dark .mf-btn--accent:hover, .sx-sub .sxs-dark .mf-btn--primary:hover { background: #e4e4e7; border-color: #e4e4e7; }

/* ── 상단바(서비스 페이지의 .mf-appbar) — 홈과 같은 전체 폭 검정 바 ── */
body.sx-sub .mf-appbar { background: var(--sx-night); border-bottom: 1px solid var(--sx-hair-d); -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 0; pointer-events: auto; }
body.sx-sub .mf-appbar.is-scrolled { box-shadow: none; }
body.sx-sub .mf-appbar .mf-appbar__inner { height: 60px; max-width: 1160px; padding: 0 20px; background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.sx-sub .mf-appbar__nav a { color: var(--sx-shade-30); font-weight: 500; }
body.sx-sub .mf-appbar__nav a:hover { color: #fff; }
body.sx-sub .mf-appbar .mf-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
body.sx-sub .mf-appbar .mf-btn--ghost:hover { background: rgba(255,255,255,.08); }
body.sx-sub .mf-appbar .mf-btn--quiet, body.sx-sub .mf-appbar .mf-back { color: var(--sx-shade-30); }

/* 서비스 페이지의 검정 구간(페이지 첫 구간을 감싸는 .sxs-dark) */
.sxs-dark { position: relative; overflow: hidden; background: var(--sx-night); color: #fff; }
.sxs-dark > :not(.sxs-neon) { position: relative; z-index: 1; }

/* ── 검정 푸터 — 홈 .lp-foot 와 같은 마크업·모양 ── */
.sx-sub .lp-foot { margin-top: 0; padding: 56px 0 40px; background: var(--sx-night); color: #fff; }
.sx-sub .lp-foot .lp-wide { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sx-sub .lp-foot__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; padding-bottom: 32px; border-bottom: 1px solid var(--sx-hair-d); }
.sx-sub .lp-foot__h { margin: 0; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; font-weight: 340; letter-spacing: -.025em; color: #fff; }
.sx-sub .lp-foot__go { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 24px; border-radius: 9999px; background: #fff; color: #000; font-size: 15px; font-weight: 600; text-decoration: none; }
.sx-sub .lp-foot__go:hover { background: #e4e4e7; }
.sx-sub .lp-foot__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding: 32px 0; }
.sx-sub .lp-foot__ch { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--sx-shade-40); }
.sx-sub .lp-foot__cols a { display: block; padding: 6px 0; font-size: 14px; color: #9dabad; text-decoration: none; }
.sx-sub .lp-foot__cols a:hover { color: #fff; }
.sx-sub .lp-foot__bottom { padding-top: 24px; border-top: 1px solid var(--sx-hair-d); font-size: 12px; line-height: 1.7; color: #9797a2; }
.sx-sub .lp-foot__bottom p { margin: 0; }
.sx-sub .lp-foot__brand { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 15px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.sx-sub .lp-foot__brand img { height: 18px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 1px var(--mf-primary-200)) drop-shadow(0 0 4px rgba(43,108,246,.8)); }
.sx-sub .lp-foot__disc { margin-bottom: 8px !important; color: #bdbdca; }
@media (min-width: 860px) { .sx-sub .lp-foot__cols { grid-template-columns: repeat(4, 1fr); } }

/* ── 사이드 독(content-aside.js) — 홈과 같은 어두운 카드 ── */
.sx-sub .mf-dock-light { padding: 10px; background: rgba(10,10,10,.94); border: 1px solid var(--sx-hair-d); border-radius: 16px; }
.sx-sub .mf-dock-h { color: var(--sx-shade-40); }
.sx-sub .mf-dock-test { background: #111; border-color: var(--sx-hair-d); box-shadow: none; }
@media (hover: hover) { .sx-sub .mf-dock-test:hover { border-color: #2c3c42; box-shadow: none; } }
.sx-sub .mf-dock-test__n { color: #fff; }
.sx-sub .mf-dock-test__h { color: var(--sx-shade-40); }
.sx-sub .mf-dock-test__go { color: var(--mf-primary-200); }
.sx-sub .mf-dock-test__chrs span { border-color: #111; }

/* ── 서비스 페이지 검정 띠(.sxs-band) — 상단바 바로 아래, 페이지 첫 구간(제목·인트로)을 검정 + 네온으로 ── */
/* 위 여백 36px↑: 네온관(맨 위 ~28px) 바로 아래 글자는 대비가 무너진다(4px 1.6:1 → 36px 5.3:1, 최악 조건 계산) */
.sxs-band { padding: 36px 0 40px; }
.sx-sub .sxs-band > .sxs-band__in { position: relative; z-index: 1; max-width: var(--sxs-w, 760px); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .sxs-band { padding: 44px 0 60px; } }
.sx-sub .sxs-band .wc-hero { padding-top: 0; }
.sx-sub .sxs-band .sm-hero { padding-top: 0; }
.sx-sub .sxs-band .ab-hero { padding-top: 8px; padding-bottom: 8px; }
.sx-sub .sxs-band h1 { color: #fff; font-size: clamp(30px, 5.4vw, 46px); line-height: 1.18; font-weight: 340; letter-spacing: -.03em; }
.sx-sub .sxs-band h1 b { color: var(--mf-primary-200); font-weight: 400; }
.sx-sub .sxs-band p { color: var(--sx-shade-30); }
.sx-sub .sxs-band p b { color: #fff; }
.sx-sub .sxs-band :is(.wc-hero__eyebrow, .sm-eyebrow, .ab-eyebrow, .eyebrow, .sxs-band__k) { display: inline-block; padding: 4px 12px; border-radius: 9999px; background: transparent; border: 1px solid rgba(255,255,255,.22); color: var(--mf-primary-200); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.sxs-band__h1 { margin: 14px 0 0; }
/* 월드컵 — 대결이 시작되면(인트로 숨김) 검정 띠도 함께 숨긴다 */
.sxs-band:has(#wc-intro.hidden) { display: none; }
.sx-sub .sxs-band .wc-note { color: var(--sx-shade-30); }
/* 하락장 멘탈 — 코랄 버튼 → 흰 알약, 배지 칩은 어두운 바탕, 인라인 색 회색 문단도 밝게 */
.sx-sub .sxs-band .sm-cta { background: #fff; color: #000; border-radius: 9999px; font-weight: 600; }
.sx-sub .sxs-band .sm-cta:hover { background: #e4e4e7; }
.sx-sub .sxs-band .sm-badges span { background: rgba(10,10,10,.75); border-color: var(--sx-hair-d); color: var(--sx-shade-30); }
.sx-sub .sxs-band .sm-hero > p[style] { color: var(--sx-shade-30) !important; }
.sx-sub .sxs-band .sm-hero > p[style] b { color: #fff !important; }

/* ── 기능 페이지(검사·결제·로그인·마이페이지·AI 코치 등) — 검정 상단바 + 흰 본문 + 12px 카드 ── */
.sx-sub .mf-card { border-radius: 12px; border-color: var(--sx-hair-l); box-shadow: var(--sx-shadow); }
.sx-sub .mf-h1 { font-weight: 400; letter-spacing: -.025em; color: #000; }
.sx-sub .rounded-2xl.shadow-lg { border-radius: 12px; box-shadow: var(--sx-shadow); }
/* 월드컵 — 인트로만 보일 때(대결·결과 숨김) 본문 칸의 빈 여백 제거 */
.sx-sub main.wc-wrap:not(:has(> section:not(.hidden))) { padding: 0; }
/* 포트폴리오 점검 — 머리 안 아이브로 알약 */
.sx-sub .sxs-head .eyebrow { display: inline-block; padding: 4px 12px; border-radius: 9999px; background: transparent; border: 1px solid rgba(255,255,255,.22); color: var(--mf-primary-200); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
