/* SUIT 전용 — 다른 서체 혼용 금지 */
@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.css");

/* ===== Design tokens ===== */
:root {
  --paran-blue: #0B53E0;
  --paran-blue-dark: #0A3FA8;
  --paran-blue-soft: #4d86f0;
  --ink: #111315;
  --ink-soft: #4a4f55;
  --ink-faint: #8a9099;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-glow: #eef3ff;

  --header-h: 64px;
  --maxw: 1120px;
  /* 레퍼런스(flatten)식 미니멀 — 라운드 더 작게, 그림자 없음 */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: none;
  --shadow-lg: none;

  --font: "SUIT Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ===== Intro (index 진입 연출 — 스크롤 구동 sticky) =====
   #intro-zone 높이만큼의 스크롤이 O 확대/축소(zoom)를 만든다. */
#intro-zone {
  position: relative;
  /* 1화면 높이. --app-vh(JS가 px로 고정) > svh > vh 순으로 폴백 →
     카카오 인앱처럼 svh가 불안정한 웹뷰에서도 툴바 변화에 안 흔들림. */
  height: 100vh;
  height: 100svh;
  height: var(--app-vh, 100svh);
  background: #fff;
}
#intro-stage {
  /* position: sticky 였으나, 풀하이트 sticky는 모바일 주소창 접힘/펼침 시
     브라우저가 위치를 재계산하며 "확확 튀는" 원인. 포털이 트리거 애니메이션으로 바뀌어
     sticky가 더는 필요 없으므로 relative 로 → 일반 블록처럼 스크롤되어 튐 제거. */
  position: relative;
  height: 100vh;
  height: 100svh;
  height: var(--app-vh, 100svh);
  overflow: hidden;
  background: #fff;
}
/* SVG(원 그리기/O)와 HERO를 같은 중앙 프레임에 겹쳐 둠 */
#intro-svg,
#intro-hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#intro-svg { z-index: 1; }
/* hero는 고정 헤더 높이만큼 위 여백을 둬 헤더에 안 가리고 그 아래 영역 기준 중앙 정렬 */
#intro-hero { z-index: 2; pointer-events: none; padding-top: calc(var(--header-h) + 28px); }   /* 숨김 동안 클릭은 아래(그리기)로 통과 */
body.hero-in #intro-hero { pointer-events: auto; }
/* 포털 통과(O 흩어짐) 시 중앙에서 확대되며 피어나는 HERO */
#intro-hero .container {
  opacity: 0;
  transform: scale(0.8);
  transform-origin: center center;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* 포털 통과 직후 바로 등장(약간의 딜레이만) */
body.hero-in #intro-hero .container {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
/* hero 뒤 물결 배경 — 파동 중앙을 키워드 허브(중앙 점)에 맞춤.
   .promo-keywords 의 허브 좌표(left/top)에 중심을 두고 크게 깔아 hero 전반에 퍼지게,
   radial 마스크로 가장자리를 페이드시켜 섹션 경계에서 딱 잘리지 않게. */
.promo-keywords::before {
  content: "";
  position: absolute;
  left: 48%;   /* 키워드 허브 center.x */
  top: 46%;    /* 키워드 허브 center.y */
  /* 뷰포트(vh/svh) 기준이면 모바일에서 화면 높이 변화에 배경이 커지거나 드리프트함.
     키워드 박스 기준 %로 고정 → 화면 높이와 완전히 무관(절대 안 커짐). */
  width: 240%;
  height: 240%;
  transform: translate(-50%, -34%);
  z-index: -1;
  pointer-events: none;
  background: url("/asset/review-hero-bg.png") center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  -webkit-mask-image: radial-gradient(circle at center, #000 16%, transparent 56%);
          mask-image: radial-gradient(circle at center, #000 16%, transparent 56%);
}
body.hero-in .promo-keywords::before { opacity: 0.22; }
@media (prefers-reduced-motion: reduce) {
  .promo-keywords::before { transition: none; }
}
/* ===== 키워드 hero 를 서브페이지(/review 등)에 정적으로 쓰기 위한 래퍼 =====
   인트로 스크롤 연출 없이 일반 섹션으로 배치. */
.promo-hero {
  position: relative;
  isolation: isolate;          /* ::before(z-index:-1)가 페이지 뒤로 사라지지 않도록 */
  overflow-x: clip;            /* 큰 리플이 가로 스크롤을 만들지 않게 (세로는 자연스럽게 번짐) */
  /* svh: 모바일 주소창 접힘/펼침에 영향 안 받는 고정 단위 → 스크롤 시 hero 흔들림 방지 (vh 폴백) */
  padding: clamp(40px, 7vh, 88px) 0 clamp(32px, 5vh, 64px);
  padding: clamp(40px, 7svh, 88px) 0 clamp(32px, 5svh, 64px);
}
.promo-hero .promo-keywords { height: min(48vh, 400px); height: min(48svh, 400px); width: auto; aspect-ratio: 1 / 1; }
.promo-hero .promo-keywords::before { opacity: 0.22; } /* hero-in 게이트 없이 바로 표시 (크기는 base의 박스기준 %) */
.promo-hero .promo-cover { height: min(45vh, 368px); height: min(45svh, 368px); width: auto; justify-self: start; }
/* 표지 애니메이션 ① — 헤일로 글로우(빛의 고리 호흡) + 미세 플로팅. (cover형 hero 전체) */
.promo-cover {
  animation: coverFloat 4s ease-in-out infinite alternate,
             coverGlow 3.2s ease-in-out infinite;
  will-change: transform, box-shadow;
}
@keyframes coverFloat {
  from { transform: translateY(7px); }
  to   { transform: translateY(-7px); }
}
@keyframes coverGlow {
  0%, 100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 0 42px 0 rgba(77, 134, 240, 0.10); }
  50%      { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 0 92px 14px rgba(77, 134, 240, 0.42); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-cover { animation: none; }
}
/* 인트로 동안 스크롤 잠금 (원 그리기 + 포털 통과 전까지) —
   iOS/카카오 인앱 웹뷰는 body{overflow:hidden}이 안 먹혀 스크롤이 새고
   "스크롤바만 움직이고 내용은 안 움직이는" 상태가 됨 → position:fixed 로 확실히 잠금.
   인트로는 항상 최상단(scrollY 0)에서 진행 → 스크롤 위치 저장/복원 불필요. */
body.intro-active,
body.intro-portal-lock {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* 개발용 인트로 스킵(localStorage.skipIntro): 스크롤 연출 없이 hero를 일반 섹션으로 배치 */
body.intro-skip #intro-zone   { height: auto; }
body.intro-skip #intro-stage  { position: static; height: auto; overflow: visible; }
body.intro-skip #intro-svg    { display: none; }
body.intro-skip #intro-hero   { position: static; }
/* hero 완성 시 스크롤 고정은 JS(휠/터치 preventDefault + 위치 재고정)로 처리.
   .hero-lock 은 상태 마커(필요 시 스타일 훅) */

/* ===== Reset ===== */
* { box-sizing: border-box; }
/* 모바일 탭 시 파란/회색 하이라이트 플래시 제거 */
* { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }   /* .btn/.unlock-form 등 display 규칙이 hidden 속성을 덮지 않도록 */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== /n-je → /n-je/eclipse 전환 (흰 화면 다리) =====
   클릭 → /n-je 하얗게 → 이클립스 페이지 하얗게 시작 → 검은 배경으로 → 요소 등장 */
/* (1) /n-je 나갈 때: 화면이 하얗게 덮임 */
.nav-fade {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
.nav-fade.show { opacity: 1; pointer-events: auto; }
/* (2) eclipse 진입: 첫 페인트부터 흰 화면으로 덮고 콘텐츠는 숨김 (JS가 흰→검 전환 후 등장) */
.enter-cover {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; opacity: 0; pointer-events: none;
}
html.eclipse-enter .enter-cover { opacity: 1; }
html.eclipse-enter .nje-eclipse .eclipse-sec .container { opacity: 0; transform: translateY(10px); }
html.eclipse-revealed .nje-eclipse .eclipse-sec .container {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .nav-fade, .enter-cover { display: none; }
  html.eclipse-enter .nje-eclipse .eclipse-sec .container { opacity: 1; transform: none; }
}

/* ===== Header ===== */
/* 서브페이지(홈 외): 헤더를 감싼 #site-header 래퍼가 헤더 높이만큼이라
   내부 sticky 가 버틸 공간이 없어 스크롤 시 같이 사라짐 → 래퍼를 sticky 로 고정. */
body:not(.has-intro) #site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 24px; width: auto; }
.brand .brand-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.active { color: var(--paran-blue); }
/* 개발 중(준비중) 메뉴 — 흐리게 */
.nav a.soon { opacity: 0.4; }
.nav a.soon:hover { opacity: 0.6; }
.mm-sub.soon { opacity: 0.4; }
.mm-sub.soon::after {
  content: "준비중";
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

/* 인트로 페이지(index)에서만: 헤더를 fixed로 두고, 포털 통과 시 상단에 고정 등장.
   (스크롤 ↑로 O가 작아지면 다시 숨김 — 가역) 서브페이지는 위 sticky 헤더 그대로. */
body.has-intro .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}
body.has-intro.portal-passed .site-header {
  transform: translateY(0);
  opacity: 1;
}

/* 헤더 색 토글 — 다크 섹션 위를 지날 때 흰 로고/흰 네비(레퍼런스식) */
.site-header,
.site-header .brand img,
.brand .brand-sub,
.nav a {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
}
body.header-on-dark .site-header {
  background: rgba(10, 10, 10, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.header-on-dark .site-header .brand img { filter: brightness(0) invert(1); } /* 로고 → 흰색 */
body.header-on-dark .site-header .brand .brand-sub { color: rgba(255, 255, 255, 0.85); }
body.header-on-dark .site-header .nav a { color: rgba(255, 255, 255, 0.82); }
body.header-on-dark .site-header .nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
body.header-on-dark .site-header .nav a.active { color: #fff; }
body.header-on-dark .site-header .nav-toggle { color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--paran-blue); color: #fff; }
.btn-primary:hover { background: var(--paran-blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn:disabled,
.btn.is-disabled { background: var(--bg-soft); color: var(--ink-faint); box-shadow: none; cursor: not-allowed; pointer-events: none; }

/* ===== Halo glow background (재사용 유틸) =====
   밝은 블루 radial glow — Linear/Vercel의 '헤드라인 뒤 광원'을 밝은 톤으로. */
.halo-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.halo-bg::before {
  /* 빛 번짐 광원 */
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 620px;
  background:
    radial-gradient(620px 420px at 50% 8%, rgba(11, 83, 224, 0.18), transparent 70%),
    radial-gradient(900px 500px at 50% -160px, rgba(120, 170, 255, 0.28), transparent 72%);
  z-index: -2;
  pointer-events: none;
}
.halo-bg::after {
  /* 동심원 링 모티프 (HALO) */
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(11, 83, 224, 0.07) 0 1px,
      transparent 1px 58px);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 55%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 0 55%, transparent 72%);
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}

/* ===== Hero (홈) ===== */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--paran-blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.25;
}
.hero p.lead {
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Page hero (서브페이지 공통, 작게) ===== */
.page-hero {
  padding: 72px 0 40px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--paran-blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; }
.page-hero p { margin: 0 auto; max-width: 600px; color: var(--ink-soft); font-size: 17px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(26px, 3.5vw, 36px); }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ===== Cards (진입 카드 그리드) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(11, 83, 224, 0.25); }
.card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--paran-blue);
  background: rgba(11, 83, 224, 0.09);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .card-foot {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--paran-blue);
}

/* ===== Teaser banner (N제 떡밥) ===== */
.teaser {
  margin: 8px auto 0;
  max-width: var(--maxw);
}
.teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(11, 83, 224, 0.35);
  background: linear-gradient(120deg, var(--bg-glow), #fff);
}
.teaser-inner .t-copy { display: flex; flex-direction: column; gap: 4px; }
.teaser-inner .t-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--paran-blue); }
.teaser-inner .t-title { font-size: 18px; font-weight: 800; }

/* ===== Download / 자료 리스트 ===== */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.dl-item .dl-meta { display: flex; flex-direction: column; gap: 2px; }
.dl-item .dl-name { font-size: 17px; font-weight: 700; }
.dl-item .dl-sub { font-size: 13px; color: var(--ink-faint); }
.dl-count { font-size: 13px; color: var(--ink-faint); }

/* 아카이브 리스트 (학력평가 해설) */
.entry-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.entry {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.18s, transform 0.18s;
}
.entry:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.entry .e-date { font-size: 13px; font-weight: 700; color: var(--paran-blue); }
.entry .e-title { margin: 6px 0 0; font-size: 19px; font-weight: 800; }
.entry .e-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ===== Unlock UI (N제 시즌1 잠금해제) ===== */
.unlock {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-glow), #fff);
}
.unlock h3 { margin: 0 0 10px; font-size: 24px; }
.unlock p { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }
.unlock-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.unlock-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 0.18em;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.unlock-form input:focus { outline: 2px solid rgba(11, 83, 224, 0.4); border-color: transparent; }
.unlock-msg { margin-top: 16px; font-size: 14px; font-weight: 600; min-height: 20px; }
.unlock-msg.ok { color: #138a4e; }
.unlock-msg.err { color: #d23b3b; }

/* ===== Coming soon (판매 자리 프레임) ===== */
.coming-soon {
  text-align: center;
  padding: 56px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.coming-soon .cs-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.coming-soon h3 { margin: 0 0 8px; font-size: 22px; color: var(--ink); }

/* ===== Generic content blocks (구조 프레임) ===== */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p { color: var(--ink-soft); }
.placeholder-note {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--paran-blue);
  color: #fff;
  text-align: center;
  padding: 68px 0;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 360px;
  background: radial-gradient(500px 260px at 50% 0, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 0 0 26px; opacity: 0.92; }
.cta-band .btn-primary { background: #fff; color: var(--paran-blue); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef2ff; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #1c1c1c;
  background: #0a0a0a;
  color: #fff;
  padding: 56px 0 40px;
}
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: start;
}
.site-footer .brand img { height: 22px; }
.footer-contact { display: grid; gap: 6px; font-size: 14px; }
.footer-contact .fc-head { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #7a7a7a; text-transform: uppercase; }
.footer-contact .fc-row { display: flex; gap: 12px; color: #b8b8b8; }
.footer-contact .fc-row span:first-child { width: 76px; color: #7a7a7a; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #b8b8b8; }
.footer-links a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; font-size: 13px; color: #7a7a7a; border-top: 1px solid #1c1c1c; padding-top: 18px; }

/* =========================================================
   Home — reference(flatten) 스타일
   초대형 타이포 + 다크/라이트 교차 + 화살표 리스트 + 넉넉한 여백
   ========================================================= */
.home .eyebrow,
.h-hero .eyebrow,
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paran-blue);
}

/* Hero */
.h-hero { padding: clamp(32px, 6vh, 72px) 0 clamp(24px, 4.5vh, 56px); }
.h-hero .eyebrow { margin-bottom: 22px; }
.h-hero h1 {
  margin: 0 0 30px;
  font-weight: 900;
  font-size: clamp(52px, 11vw, 150px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}
.h-hero .lead {
  margin: 0 0 38px;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-soft);
}
.h-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Statement (dark) */
.statement { background: #0a0a0a; color: #fff; padding: clamp(96px, 17vh, 190px) 0; }
.statement .label { color: #6f9bff; margin-bottom: 24px; }
.statement h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

/* Section (home) */
.h-sec { padding: clamp(72px, 12vh, 140px) 0; }
.h-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.h-sec-head .label { margin-bottom: 10px; }
.h-sec-head h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.02;
}
.h-sec-head .note { margin: 0; color: var(--ink-faint); font-size: 15px; }

/* Solutions list (화살표 행) */
.sol-list { border-top: 1px solid var(--ink); }
.sol-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 42px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, background 0.25s ease;
}
.sol-row .idx { font-size: 14px; font-weight: 800; color: var(--ink-faint); }
.sol-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paran-blue);
  margin-bottom: 10px;
}
.sol-title {
  display: block;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.05;
  color: var(--ink);
  transition: color 0.2s ease;
}
.sol-desc {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.4vw, 17px);
}
.sol-arrow {
  font-size: clamp(26px, 3.4vw, 42px);
  color: var(--ink-faint);
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}
a.sol-row:hover {
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(11, 83, 224, 0.05), transparent 55%);
}
a.sol-row:hover .sol-title { color: var(--paran-blue); }
a.sol-row:hover .sol-arrow { transform: translateX(10px); color: var(--paran-blue); }

/* Feature (dark) */
.feature { background: #0a0a0a; color: #fff; padding: clamp(90px, 15vh, 170px) 0; }
.feature .label { color: #6f9bff; margin-bottom: 22px; }
.feature h2 {
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 1.0;
}
.feature p {
  margin: 0 0 34px;
  color: #b8b8b8;
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 460px;
}

/* Final CTA (light) */
.h-cta { padding: clamp(80px, 13vh, 150px) 0; text-align: center; }
.h-cta .label { margin-bottom: 18px; }
.h-cta h2 {
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 5vw, 60px);
}
.h-cta p { margin: 0 0 30px; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 18px); }

/* Button — 다크 섹션용 라이트 버튼 */
.btn-light { background: #fff; color: #0a0a0a; box-shadow: none; }
.btn-light:hover { background: #e9e9e9; }

/* ===== 섹션 공통 타이틀 (Our product › / About › / FAQ ›) ===== */
.sec-title {
  margin: 0 0 clamp(32px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
}
.sec-title .chev { color: var(--ink-faint); font-weight: 400; }
/* 클릭 가능한 섹션 제목(Our product=메뉴 열기, About=소개 링크) */
.sec-title--action { cursor: pointer; }
.sec-title-link { color: inherit; text-decoration: none; cursor: pointer; }
.sec-title--action .chev,
.sec-title-link .chev { display: inline-block; transition: transform 0.2s ease; }
.sec-title--action:hover .chev,
.sec-title-link:hover .chev { transform: translateX(5px); }

/* ===== N제 Season 1 프로모 ===== */
.promo-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(12px, 2.4vw, 32px);
  align-items: center;
}
.promo-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: #fff;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}
.promo-copy { text-align: center; }
.promo-copy h1 {
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  font-size: clamp(30px, 4vw, 52px);
}
.promo-copy p { margin: 0 0 34px; color: var(--ink-soft); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; }
/* 밑줄형 CTA(박스 없이 가벼운 강조) — review hero 등 */
.cta-underline {
  display: inline-block;
  color: var(--paran-blue);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.cta-underline:hover { text-decoration-thickness: 2px; }
/* 페이지 내 앵커(#method)로 스크롤 시 상단 헤더에 가리지 않게 여유 */
#method { scroll-margin-top: 84px; }
/* hero(포털 중앙)로 쓸 때 표지 높이 제한해 화면에 맞춤 (svh로 모바일 주소창 변화 무시) */
#intro-hero .promo-cover { aspect-ratio: 3 / 4; height: min(45vh, 368px); height: min(45svh, 368px); width: auto; justify-self: start; }

/* ===== 해설hero: 키워드 흩뿌림 비주얼 ===== */
.promo-keywords {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  justify-self: center;
}
#intro-hero .promo-keywords { height: min(56vh, 460px); height: min(56svh, 460px); width: auto; aspect-ratio: 1 / 1; }

/* 단어와 선이 같은 타이밍/위상으로 움직이게 묶는 컨테이너(애니는 자식에) */
.promo-keywords .pk-item { position: absolute; inset: 0; }

/* 가속도: ease-in-out + alternate → 위/아래 끝에서 느려지고 중간에서 빨라짐 */
/* 선 — 중앙 끝(transform-origin)은 고정, 바깥 끝만 단어를 따라 회전 */
.promo-keywords .pk-line {
  position: absolute;
  height: 1.5px;
  margin-top: -0.75px; /* 세로 중심을 중앙 점에 정렬 */
  background: #000;
  border-radius: 3px;
  transform-origin: 0 50%; /* 중앙 끝을 축으로 회전 → 그 끝은 항상 고정 */
  animation: pkLine var(--fdur, 4s) cubic-bezier(0.65, 0, 0.35, 1) var(--fd, 0s) infinite alternate;
  will-change: transform;
  /* GPU 합성 레이어로 승격 → 회전 시 서브픽셀 보간이 매끄러워져 선 두께 떨림 완화 */
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
@keyframes pkLine {
  from { transform: rotate(var(--rd)) translateZ(0); }
  to   { transform: rotate(var(--ru)) translateZ(0); }
}
/* 단어 — 위아래로 흔들림(흔들림 폭 = --amp) */
.promo-keywords .pk-word {
  position: absolute;
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.1em;
  font-size: clamp(22px, 3.6vw, 42px);
  transform: translate(-50%, -50%);
  animation: pkWord var(--fdur, 4s) cubic-bezier(0.65, 0, 0.35, 1) var(--fd, 0s) infinite alternate;
  will-change: transform;
}
@keyframes pkWord {
  from { transform: translate(-50%, calc(-50% + var(--amp, 16px))); }
  to   { transform: translate(-50%, calc(-50% - var(--amp, 16px))); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-keywords .pk-line,
  .promo-keywords .pk-word { animation: none; }
}

/* ===== Our product 리스트 ===== */
.prod-list { border-top: 1px solid var(--ink); }
.prod-item {
  display: block;
  padding: clamp(28px, 3.6vw, 44px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, background 0.25s ease;
}
/* hover 반응은 마우스(PC)에서만 — 모바일 탭에서 hover가 들러붙어 파랗게 반응하던 문제 방지 */
@media (hover: hover) and (pointer: fine) {
  a.prod-item:hover {
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(11, 83, 224, 0.05), transparent 55%);
  }
  a.prod-item:hover .prod-name { color: var(--paran-blue); }
}
.prod-name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 4.6vw, 60px);
  color: var(--ink);
  transition: color 0.2s ease;
}
.prod-logo { height: clamp(28px, 4vw, 48px); width: auto; }
.prod-desc { margin: 16px 0 0; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 19px); max-width: 680px; line-height: 1.5; }
.prod-status { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; }
.ps-row { display: inline-flex; align-items: center; gap: 10px; }
.ps-label { min-width: 64px; font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 2px;
}
.badge-live { background: var(--paran-blue); color: #fff; }
.badge-soon { background: var(--bg-soft); color: var(--ink-faint); border: 1px solid var(--line); }
.badge-new { background: var(--paran-blue-dark); color: #fff; }

/* ===== About paran.lab (다크) ===== */
.about { background: #0a0a0a; color: #fff; }
.about .sec-title { color: #fff; }
.about .sec-title .chev { color: rgba(255, 255, 255, 0.5); }
.about-logo { height: clamp(126px, 15vw, 210px); width: auto; margin: 8px 0 28px; }
.about-copy { margin: 0 0 32px; max-width: 560px; color: #b8b8b8; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; }

/* ===== FAQ (다크, About에 이어짐) ===== */
.faq { background: #0a0a0a; color: #fff; padding-top: 0; }
.faq .sec-title { color: #fff; }
.faq .sec-title .chev { color: rgba(255, 255, 255, 0.5); }
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 40px);
  background: #fff;
  color: var(--ink);
}
.faq-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.faq-card-title { font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; color: var(--ink); }
.faq-card-count { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.06em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 2px;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
}
.faq-idx { font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.faq-text { flex: 1; font-size: clamp(16px, 1.9vw, 21px); font-weight: 700; }
.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-faint);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.faq-q[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); color: var(--paran-blue); border-color: var(--paran-blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { margin: 0 2px 20px; max-width: 680px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* ===== N제 Eclipse 잠금 해제 (식蝕 — 달이 지나간다) ===== */
.eclipse-sec {
  background: radial-gradient(125% 85% at 50% 0%, #14183a 0%, #0a0a16 55%, #060608 100%);
  color: #fff;
  text-align: center;
  padding: clamp(72px, 13vh, 150px) 0;
}
.eclipse {
  position: relative;
  width: clamp(150px, 42vw, 210px);
  aspect-ratio: 1;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.ecl-corona {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 255, 0.45);
  box-shadow: 0 0 30px rgba(111, 155, 255, 0.3);
  opacity: 0.45;
  transition: opacity 0.9s ease, box-shadow 0.9s ease;
}
.ecl-sun {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #eaf1ff, #6f9bff 50%, #0b53e0 78%, #0a2a6e);
  filter: brightness(0.5) saturate(0.85);
  transition: filter 0.9s ease;
}
.ecl-moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #070709;
  box-shadow: inset 6px 0 14px rgba(255, 255, 255, 0.05);
  transform: translateX(-12%);   /* 가림: 빛의 초승달만 남김 */
  transition: transform 1.5s cubic-bezier(0.55, 0, 0.2, 1), opacity 1.2s ease;
}
/* 조각을 맞출수록 해가 단계적으로 드러남 (달이 비켜나며 빛 회복) */
.eclipse[data-found="1"] .ecl-sun { filter: brightness(0.62) saturate(0.9); }
.eclipse[data-found="2"] .ecl-sun { filter: brightness(0.78) saturate(0.95); }
.eclipse[data-found="3"] .ecl-sun { filter: brightness(0.9) saturate(1); }
.eclipse[data-found="1"] .ecl-corona { opacity: 0.6; box-shadow: 0 0 38px rgba(111, 155, 255, 0.4); }
.eclipse[data-found="2"] .ecl-corona { opacity: 0.78; box-shadow: 0 0 48px rgba(111, 155, 255, 0.55); }
.eclipse[data-found="3"] .ecl-corona { opacity: 0.92; box-shadow: 0 0 58px rgba(111, 155, 255, 0.7); }
/* 해제: 달이 오른쪽으로 지나가고 빛(코로나)이 회복 */
.eclipse.removed .ecl-moon { transform: translateX(-180%); opacity: 0; }
.eclipse.removed .ecl-sun { filter: none; }
.eclipse.removed .ecl-corona { opacity: 1; box-shadow: 0 0 64px rgba(111, 155, 255, 0.8); }
/* 오답: 흔들림 */
.eclipse.shake { animation: ecl-shake 0.5s; }
@keyframes ecl-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.eclipse-ui .ecl-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #6f9bff;
  margin-bottom: 16px;
}
.eclipse-sec h2 { margin: 0 0 18px; font-weight: 900; letter-spacing: -0.03em; font-size: clamp(28px, 5vw, 52px); }
.ecl-story { max-width: 500px; margin: 0 auto 30px; color: #b8b8b8; font-size: clamp(14px, 1.5vw, 16px); line-height: 1.75; }
.ecl-story p { margin: 0 0 10px; }
.eclipse-sec .unlock-form { justify-content: center; max-width: 440px; margin: 0 auto; }
.eclipse-sec .unlock-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  letter-spacing: 0.18em;
}
.eclipse-sec .unlock-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.eclipse-sec .unlock-msg.err { color: #ff9a9a; }
.eclipse-sec .unlock-msg.ok { color: #8ad0ff; }
.eclipse-sec .ecl-open { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) {
  .ecl-moon, .ecl-sun, .ecl-corona { transition: none; }
  .eclipse.shake { animation: none; }
}

/* ===== N제 랜딩 (/n-je) — exam/lab 디자인 계열 ===== */
.nje-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paran-blue);
}
.nje-intro-sec { padding-top: clamp(8px, 2vw, 16px); }

/* 안내(위장) CTA — 눈에 띄지 않는 담담한 notice 톤 */
.nje-cta { padding: clamp(32px, 5vw, 56px) 20px clamp(48px, 7vw, 88px); }
.nje-cta-box {
  padding: clamp(22px, 3.5vw, 32px) clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.nje-cta-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.nje-cta-title { margin: 0 0 10px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.nje-cta-desc { margin: 0 0 18px; max-width: 540px; color: var(--ink-soft); font-size: clamp(14px, 1.6vw, 16px); line-height: 1.7; }

/* 식(蝕) — 빛의 조각 4개(트럼프 무늬) + 달의 단계적 후퇴.
   12시(♠)→3시(◆)→6시(♣)→9시(♥) 시계방향(스·다·클·하)으로 점등 */
.ecl-shards { position: absolute; inset: 0; pointer-events: none; }
.ecl-shard {
  position: absolute;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  opacity: 0.2;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s ease, text-shadow 0.5s ease;
}
.ecl-shard[data-shard="0"] { top: -12px; left: 50%; margin-left: -12px; }    /* 12시 ♠ 스 */
.ecl-shard[data-shard="1"] { top: 50%; right: -12px; margin-top: -12px; }    /* 3시 ◆ 다 */
.ecl-shard[data-shard="3"] { bottom: -12px; left: 50%; margin-left: -12px; } /* 6시 ♣ 클 */
.ecl-shard[data-shard="2"] { top: 50%; left: -12px; margin-top: -12px; }     /* 9시 ♥ 하 */
/* 무늬 색 — 다이아·하트 웜, 스페이드·클로버 쿨 (카드와 일관) */
.ecl-shard[data-shard="1"], .ecl-shard[data-shard="2"] { color: #ff8fb1; }
.ecl-shard[data-shard="0"], .ecl-shard[data-shard="3"] { color: #9fc0ff; }
.ecl-shard.lit {
  opacity: 1;
  transform: scale(1);
  text-shadow: 0 0 14px currentColor;
}

/* 퍼즐 전용 페이지(/n-je/eclipse) — 화면을 꽉 채움 */
.nje-eclipse .eclipse-sec { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
/* 상단 헤더 바를 페이지 배경(식 蝕 상단 톤)과 동일하게 — 흰 바 제거, 이음새 없이 */
body.eclipse-page .site-header {
  background: #14183a;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

/* 비밀번호 조각 — 트럼프 4무늬 STAGE 캐러셀 (한 장씩, 맞아야 다음으로) */
.pw { max-width: 440px; margin: 0 auto; }
/* 진행 점 — 탭하면 해당 STAGE로 이동 */
.pw-dots { display: flex; gap: 9px; justify-content: center; margin-bottom: 20px; }
.pw-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.pw-dot:focus-visible { outline: 2px solid rgba(111, 155, 255, 0.6); outline-offset: 3px; }
.pw-dot.active { background: rgba(207, 224, 255, 0.6); transform: scale(1.25); }
.pw-dot.done { background: #cfe0ff; box-shadow: 0 0 10px rgba(143, 178, 255, 0.9); }
/* 뷰포트 + 트랙 (좌우 화살표·스와이프로 자유 이동) */
.pw-viewport { overflow: hidden; position: relative; }
/* touch-action:none — 트랙이 가로/세로 제스처를 모두 독점.
   pan-y였을 땐 가로 스와이프 중 손가락이 살짝 위로 흔들리면 브라우저가 세로 스크롤을 시작해
   인앱 브라우저(카카오 등) 하단 UI가 튀어나오고 뷰포트 높이가 바뀌어 트랙이 어긋났다.
   이제 첫 움직임 방향으로 가로/세로를 락(JS)하고, 세로 의도일 때만 JS가 페이지를 스크롤한다. */
.pw-track { display: flex; transition: transform 0.55s cubic-bezier(0.55, 0, 0.2, 1); touch-action: none; cursor: grab; }
.pw-track.dragging { transition: none; cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .pw-track { transition: none; } }
/* 좌우 이동 화살표 — 뷰포트 양쪽 가장자리 */
.pw-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 20, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.8); font-size: 20px; line-height: 1; cursor: pointer;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.pw-arrow:hover { background: rgba(20, 24, 38, 0.7); }
.pw-arrow.prev { left: 6px; }
.pw-arrow.nextc { right: 6px; }
.pw-arrow[disabled] { opacity: 0; pointer-events: none; }
.pw-card {
  flex: 0 0 auto; /* 폭은 JS가 viewport 실측 px로 지정 (flex-basis % 모호성 제거) */
  box-sizing: border-box;
  padding: clamp(26px, 5vw, 38px) clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}
.pw-card.wrong { animation: ecl-shake 0.45s; border-color: rgba(255, 154, 154, 0.6); }
/* 무늬 아이콘 — 다이아/하트 웜, 스페이드/클로버 쿨 */
.pw-suit { font-size: clamp(44px, 11vw, 68px); line-height: 1; transition: filter 0.4s ease, transform 0.4s ease; }
.pw-card[data-suit="diamond"] .pw-suit,
.pw-card[data-suit="heart"] .pw-suit { color: #ff8fb1; }
.pw-card[data-suit="spade"] .pw-suit,
.pw-card[data-suit="clover"] .pw-suit { color: #9fc0ff; }
.pw-stage-name { margin: 12px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.pw-stage-sub { margin: 0 0 20px; font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.pw-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.12em;
}
.pw-input::placeholder { color: rgba(255, 255, 255, 0.4); letter-spacing: 0.04em; }
.pw-input:focus { outline: 2px solid rgba(111, 155, 255, 0.5); border-color: transparent; }
.pw-input:disabled { opacity: 0.9; }
/* CTA — 각 카드의 '정답 맞추기' */
.pw-submit { min-width: 200px; margin-top: 18px; }
/* 맞은 조각 → 무늬가 빛남 */
.pw-card.found { border-color: rgba(143, 178, 255, 0.55); background: linear-gradient(180deg, rgba(111, 155, 255, 0.18), rgba(111, 155, 255, 0.05)); }
.pw-card.found .pw-suit { filter: drop-shadow(0 0 16px currentColor); transform: scale(1.06); }
.pw-card.found .pw-input { border-color: rgba(143, 178, 255, 0.5); background: rgba(111, 155, 255, 0.12); }
.pw-card.found .pw-submit { opacity: 0.85; }

/* ===== 공개 페이지 (/n-je/halo) — 토큰 게이트 ===== */
.halo-reveal { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; }
.hr-state { width: 100%; display: flex; align-items: center; }
.hr-checking-text { text-align: center; color: var(--ink-faint); padding: 120px 0; font-size: 16px; width: 100%; }
.hr-open { text-align: center; padding: clamp(72px, 14vh, 160px) 0; }
.hr-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--paran-blue);
}
.hr-title { margin: 0 0 20px; font-size: clamp(36px, 6vw, 72px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.06; }
.hr-sub { margin: 0 auto 32px; max-width: 520px; color: var(--ink-soft); font-size: clamp(16px, 1.9vw, 20px); line-height: 1.7; }
.hr-download { font-size: 16px; padding: 12px 22px; }
.hr-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-faint); }

/* ===== 모바일 풀스크린 네비게이션 ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  padding: clamp(84px, 14vh, 120px) 28px 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mm-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.mm-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 5vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.mm-top,
.mm-head {
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}
.mm-group { display: flex; flex-direction: column; gap: 8px; }
.mm-head { margin-bottom: 2px; }
.mm-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 5.2vw, 24px);
  font-weight: 600;
  color: var(--ink);
}
.mm-sub::before { content: "›"; color: var(--ink-faint); font-weight: 400; }
.mm-top.is-active,
.mm-sub.is-active { color: var(--paran-blue); }
body.menu-open { overflow: hidden; }
@media (min-width: 761px) { .mobile-menu { display: none; } }

/* ===== HALO 모의고사 페이지 (/exam) ===== */
.container.narrow { max-width: 740px; }
.exam-hero { padding: clamp(48px, 8vh, 88px) 0 clamp(24px, 4vw, 36px); text-align: left; overflow-x: clip; }
/* 로고: 해무리 사진을 뒤에 깔고 중앙 정렬.
   해무리 링 중심(이미지 기준 ≈ 46%/49%)을 로고 중앙에 정확히 맞춤. */
.exam-logo-wrap {
  position: relative;
  isolation: isolate;            /* 뒤 이미지(z-index:-1)가 페이지 뒤로 사라지지 않게 */
  display: flex;
  align-items: center;           /* 로고를 글로우 영역 세로 중앙에 → 많이 내려옴 */
  justify-content: center;
  /* 글로우 영역 세로 높이 = review hero 비주얼과 동일 (데스크톱 48svh, 모바일은 아래 미디어쿼리서 vw) */
  min-height: min(48svh, 400px);
  margin-bottom: clamp(20px, 3vw, 36px);
}
/* 로고 뒤 부드러운 해무리 글로우 — 투명 PNG라 가장자리가 자연 소멸해 경계가 안 보임 */
.exam-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(135vw, 560px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(0.62);
  z-index: -1;
  pointer-events: none;
  background: url("/asset/halo-glow.png") center / contain no-repeat;
  opacity: 0;
  /* 로고 등장(reveal .in) 시 글로우가 피어나듯 확대+페이드 */
  transition: opacity 1s ease 0.12s, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s;
}
.exam-logo-wrap.in::before { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
/* 로고 이미지도 살짝 확대되며 등장 */
.exam-logo-img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s; }
.exam-logo-wrap:not(.in) .exam-logo-img { transform: scale(0.92); }
@media (prefers-reduced-motion: reduce) {
  .exam-logo-wrap::before { opacity: 0.9; transform: translate(-50%, -50%); transition: none; }
  .exam-logo-wrap .exam-logo-img { transform: none; transition: none; }
}
.exam-logo-img { display: block; height: clamp(96px, 18vw, 160px); width: auto; margin: 0; }
/* 로고: 이미지 + 보조텍스트(해설 등) */
.exam-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 40px); }
.exam-logo img { height: clamp(44px, 7vw, 68px); width: auto; }
.exam-logo span { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em; }
/* review hero(.promo-copy h1/p)와 글씨/행간/자간 통일 */
.exam-headline { margin: 0 0 24px; font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.25; text-align: center; }
.exam-sub { margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; text-align: center; }

/* 표지 패널: 연한 박스 위에 표지를 그림자와 함께 띄움 */
.exam-cover-box {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
  margin: clamp(28px, 5vw, 52px) 0 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.exam-cover {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.10);
}
.exam-intro { margin: 0 0 6px; font-size: clamp(16px, 1.7vw, 19px); font-weight: 700; line-height: 1.6; }
.exam-intro-sub { margin: 0; color: var(--ink-soft); font-size: clamp(14px, 1.5vw, 16px); }

.exam-dl {
  padding: clamp(32px, 5vw, 56px) 20px clamp(64px, 9vw, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  scroll-margin-top: calc(var(--header-h) + 16px);   /* hero CTA(#download) 점프 시 헤더에 안 가리게 */
}
.exam-dl .dl-block { border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 32px); }
.exam-dl .dl-block h3 { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.01em; }
.exam-dl .dl-block p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.exam-dl .dl-count { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-faint); }
/* 최신 회차 강조 카드 */
.exam-dl .dl-block--new {
  border-top: 2px solid var(--paran-blue);
  background: var(--bg-glow);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}
.exam-dl .dl-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paran-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ===== Paran Lab 페이지 (/lab) — exam 형식 계열, SUIT 전용 ===== */
.lab .exam-hero { text-align: left; padding-bottom: clamp(8px, 2vw, 20px); position: relative; isolation: isolate; }
/* 로고 뒤 물결 배경 — 옅게 깔고 가장자리는 radial 마스크로 페이드 */
.lab .exam-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/asset/lab-hero-bg.jpg") center / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 70% at center, #000 20%, transparent 72%);
}
.lab-hero-logo {
  display: block;
  width: clamp(150px, 20vw, 240px);
  height: auto;
  margin: 0 auto clamp(20px, 3.5vw, 36px);
}
/* 빗금 3개: 왼쪽부터 위→아래로 '그려지듯' 순차 등장 */
.lab-hero-logo .lhl-bar {
  clip-path: inset(0 0 100% 0);
  animation: lhlDraw 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.lab-hero-logo .lhl-bar3 { animation-delay: 0.05s; }  /* 왼쪽 */
.lab-hero-logo .lhl-bar2 { animation-delay: 0.22s; }  /* 가운데 */
.lab-hero-logo .lhl-bar1 { animation-delay: 0.39s; }  /* 오른쪽 */
/* 워드마크: 빗금 뒤에 부드럽게 따라 올라옴 */
.lab-hero-logo .lhl-word {
  opacity: 0;
  transform: translateY(10px);
  animation: lhlWord 0.6s ease 0.62s forwards;
}
@keyframes lhlDraw {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes lhlWord {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-hero-logo .lhl-bar  { clip-path: none; animation: none; }
  .lab-hero-logo .lhl-word { opacity: 1; transform: none; animation: none; }
}
/* 히어로 헤드라인: 로고(빗금→워드마크 ~1.22s)가 다 그려진 뒤 등장 (스크롤 reveal과 무관한 로드 기반 연출) */
.lab .exam-hero .exam-headline {
  text-align: center;                         /* 중앙 정렬 */
  margin-top: clamp(40px, 8vw, 88px);         /* 로고와 간격 — 아래로 많이 내림(하단 섹션도 그만큼 내려감) */
  opacity: 0;
  transform: translateY(20px);
  animation: labHeadline 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.25s forwards;
}
@keyframes labHeadline { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lab .exam-hero .exam-headline { opacity: 1; transform: none; animation: none; }
}
.lab-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paran-blue);
}
.lab-sec { padding: clamp(40px, 6vw, 72px) 20px; border-top: 1px solid var(--line); }
/* 마지막 섹션은 푸터와 너무 붙지 않게 아래 여백 추가 */
.lab .lab-sec:last-child { padding-bottom: clamp(88px, 14vw, 160px); }
/* 섹션 헤더: 큰 번호 + (라벨/제목 2행) 좌측 정렬 */
.lab-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  margin-bottom: clamp(20px, 3vw, 28px);
}
.lab-num {
  font-size: clamp(56px, 11vw, 112px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #1a3170;
}
.lab-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.lab-label b { color: var(--paran-blue); font-weight: 800; margin-right: 8px; }
.lab-head .lab-title { margin: 0; }
.lab-title {
  margin: 0 0 24px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lab-body p { margin: 0 0 14px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; color: var(--ink-soft); }
.lab-body p:last-child { margin-bottom: 0; }
.lab-body .muted { color: var(--ink-faint); }

.lab-principles { display: flex; flex-direction: column; gap: clamp(20px, 3.2vw, 32px); padding-left: clamp(12px, 3vw, 32px); }
.lab-pr {
  display: grid;
  grid-template-columns: clamp(28px, 4vw, 40px) 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: baseline;
  padding-top: clamp(18px, 2.6vw, 26px);
}
.lab-pr-num {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-variant-numeric: lining-nums;
}
.lab-pr-name { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.01em; }
.lab-pr-copy { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }

.lab-cta { padding: 0 20px clamp(64px, 9vw, 100px); }

/* ===== N제 Coming Soon 페이지 (/n-je) ===== */
.cs-hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
  padding: clamp(64px, 12vh, 140px) 0;
}
.cs-hero .container { display: flex; flex-direction: column; align-items: center; }
.cs-eyebrow {
  display: inline-block;
  font-size: clamp(12px, 1.6vw, 14px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paran-blue);
}
.cs-title {
  margin: 18px 0 28px;
  font-size: clamp(64px, 16vw, 184px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.cs-sub {
  margin: 0 0 36px;
  max-width: 540px;
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ===== Text+line CTA (박스 없는 밑줄형 링크) ===== */
.exam-hero-cta { margin-top: clamp(24px, 3vw, 32px); text-align: left; }
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.link-cta .arrow { transition: transform 0.15s ease; }
.link-cta:hover { color: var(--paran-blue); border-color: var(--paran-blue); gap: 12px; }
.link-cta:hover .arrow { transform: translateX(3px); }

/* ===== 해설 방식 섹션 (preview 변환) — 다크 밴드로 구분 ===== */
.method-sec {
  background: #0e0f12;
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 100px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.method-head {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.method-note {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* 대표 문항 */
.method-problem { margin: 0 0 clamp(40px, 6vw, 64px); }
.mp-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* 터치-공개 이미지 프레임 */
.reveal-img {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.reveal-img img { width: 100%; height: auto; }
.reveal-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
}
.reveal-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 20, 24, 0.55);
}
.reveal-cover > * { position: relative; z-index: 1; }
.reveal-img.is-revealed .reveal-cover { opacity: 0; pointer-events: none; }

/* 정답 보기 */
.answer-zone { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.answer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.answer-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.answer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.answer-pill .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paran-blue-soft);
}
.answer-zone.is-on .answer-pill { opacity: 1; transform: none; }

/* 탭: 풀이전 가이드 | 전체 해설 */
.method-tabs {
  display: flex;
  gap: 4px;
  margin: clamp(40px, 6vw, 64px) 0 clamp(24px, 3vw, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.method-tab {
  position: relative;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}
.method-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.method-tab:hover { color: rgba(255, 255, 255, 0.78); }
.method-tab.is-on { color: #fff; }
.method-tab.is-on::after { transform: scaleX(1); }
.method-pane.is-hidden { display: none; }

/* 해설 방식 리스트 */
.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.method-item { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: clamp(20px, 3vw, 28px); }
.mi-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mi-num {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}
.mi-name { font-size: clamp(17px, 2vw, 21px); font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.mi-name .en { color: var(--paran-blue-soft); margin-right: 6px; }

/* ===== Scroll reveal (fadeup) — 레퍼런스식 진입 애니메이션 ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.22s; }
.reveal.d4 { transition-delay: 0.30s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .sol-row { grid-template-columns: 1fr auto; }
  .sol-row .idx { display: none; }
  .h-sec-head { align-items: flex-start; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-cover { max-width: 320px; }
  .promo-keywords { max-width: 360px; }
  /* 모바일: hero 비주얼을 가로폭(vw) 기준으로 고정 → 주소창 접힘/펼침(뷰포트 높이 변화)에 흔들리지 않음 */
  .promo-hero .promo-cover { width: min(64vw, 300px); height: auto; }
  .promo-hero .promo-keywords { width: min(82vw, 360px); height: auto; }
  /* home 인트로 히어로(#intro-hero)도 동일하게 — 포털 통과 후 스크롤 시 표지 크기 변동 방지 */
  #intro-hero .promo-cover { width: min(58vw, 280px); height: auto; }
  #intro-hero .promo-keywords { width: min(82vw, 360px); height: auto; }
  /* exam 로고 영역 세로도 review 키워드 비주얼과 동일(모바일 vw 기준) */
  .exam-logo-wrap { min-height: min(82vw, 360px); }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 8px; }
  .cards, .cards.cols-3, .entry-list { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* 모바일·인앱 웹뷰(카카오 등) 스크롤 끊김 방지:
   sticky 헤더의 backdrop-filter(blur)는 스크롤 매 프레임마다 뒤 배경을 다시 블러 처리해
   인앱 WebView에서 심한 버벅임을 만든다. 터치(거친 포인터) 환경에선 블러를 끄고
   불투명 배경으로 대체해 합성 비용을 없앤다(데스크톱은 기존 프로스티드 효과 유지). */
@media (hover: none) and (pointer: coarse) {
  .site-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
}

/* ===== 해설 아카이브 상태 메시지 ===== */
.archive-status { color: var(--ink-faint); font-size: 15px; padding: 8px 0; }

/* ===== 해설 상세 페이지 (/review/article.html) ===== */
.article { padding: clamp(32px, 5vw, 56px) 20px clamp(64px, 9vw, 100px); }
.article-loading, .article-empty { color: var(--ink-faint); padding: 40px 0; }
.article-head { margin-bottom: clamp(28px, 4vw, 44px); }
.article-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.article-back:hover { color: var(--paran-blue); }
.article-meta {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paran-blue);
  text-transform: uppercase;
}
.article-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.article-date { margin: 0; font-size: 14px; color: var(--ink-faint); }

.article-body { max-width: none; margin: 0 0 clamp(40px, 6vw, 64px); }
.article-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 14px; }
.article-body h3 { font-size: clamp(18px, 2.2vw, 22px); margin: 28px 0 10px; }
.article-body p { color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.8; margin: 0 0 16px; }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-left: 22px; margin: 0 0 16px; line-height: 1.8; }
.article-body img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 8px 0; }
.article-body a { color: var(--paran-blue); text-decoration: underline; }
.article-body blockquote {
  margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--line);
  color: var(--ink-soft); background: var(--bg-soft); border-radius: 0 6px 6px 0;
}
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }

.article-h2 { font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; margin: 0 0 16px; }
.article-gallery, .article-files { margin-top: clamp(40px, 6vw, 56px); }
/* PDF 다운로드를 본문 위로 올린 경우: 위 여백 제거 + 본문과의 간격 */
.article-files--top { margin-top: 0; margin-bottom: clamp(32px, 5vw, 48px); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-cell { margin: 0; }
.gallery-cell img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  cursor: zoom-in; transition: opacity 0.15s ease;
}
.gallery-cell img:hover { opacity: 0.88; }
.gallery-cell figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-faint); }

.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px;
}
.file-label { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; word-break: keep-all; }
/* 다운로드 버튼은 항상 한 줄(줄바꿈 방지) */
.file-row .btn { flex: none; white-space: nowrap; }
/* 아이콘 전용 다운로드 버튼(정사각형, 글씨 없음) */
.file-dl { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; }
.file-dl svg { display: block; }

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 12, 15, 0.88);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer;
}
/* 넘겨보기 화살표 — 이미지가 2장 이상(.has-nav)일 때만 표시 */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox.has-nav .lightbox-nav { display: flex; }
.lightbox-count {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
}
