/* UniNotepad 랜딩 페이지 공용 스타일.
   index.html(한국어)과 en.html(영어)이 이 파일 하나를 공유한다.
   고칠 때는 두 HTML의 ?v= 숫자를 함께 올릴 것 — Vercel 엣지가 자산을 캐시한다. */

:root {
  /* 페이지 폭. 고정이 아니라 상한이다 — 창이 좁으면 창에 맞춰 줄어들고(아래 --gutter
     만큼의 여백은 항상 남는다), 넓어지면 여기서 멈춘다.
     상한을 87.5rem(1400px) 이상으로 올리지 말 것 — 스크린샷·데모 영상 자산의 원본
     가로폭이 1400px이라, 그보다 넓으면 히어로 영상이 확대되어 눈에 띄게 흐려진다.
     지금의 75rem(1200px)은 그 아래라 자산이 항상 축소되어 들어간다(선명하다).
     본문 텍스트는 이 폭을 따라가지 않는다 — .hero .lead(34rem), .section-lead(44rem),
     .faq(48rem), .dl-note(46rem)이 저마다 읽기 좋은 줄 길이를 따로 잡고 있다. */
  --page: 75rem;

  /* 좌우 여백. 고정값이 아니라 창 폭에 비례한다 — 고정 24px로 두면 --page 상한에
     닿기 전(대략 1340px 아래)까지는 내용이 화면 가장자리에 붙어 꽉 차 보인다.
     5vw = 좌우 합쳐 화면의 10%. clamp의 두 끝이 각각 다른 문제를 막는다:
       하한 1.5rem — 모바일에서 5vw(390px에서 19.5px)로 줄어 글이 테두리에 붙는 것
       상한 5rem   — 창이 약 1340px를 넘으면 --page 상한이 그보다 큰 여백을 만든다 */
  --gutter: clamp(1.5rem, 5vw, 5rem);

  --bg: #fdfcf7;
  --fg: #16161d;
  --muted: #5c5c6b;
  /* 본문용 중간 톤. --muted는 캡션·각주처럼 짧고 부차적인 글에 쓰는 색이라
     히어로 리드처럼 실제로 읽어야 하는 문단에 쓰면 흐리다(배경 대비 약 6:1).
     --fg보다는 물러서되 대비는 10:1을 넘겨, 위계는 지키고 읽히게 한다. */
  --fg-soft: #3a3a48;
  --card: #ffffff;
  --border: #16161d;
  --accent: #7c5cff;
  --accent-fg: #ffffff;
  --radius: 0;
  --shadow: 4px 4px 0 var(--border);
  --shadow-lg: 6px 6px 0 var(--border);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141a;
    --fg: #e6e6ef;
    --muted: #9a9aae;
    --fg-soft: #cdcddd;
    --card: #1e1e28;
    --border: #e6e6ef;
    --accent: #9d86ff;
    --accent-fg: #14141a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 var(--gutter) 5rem;
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-wrap: break-word;
}

/* 한글은 기본값이면 글자 단위로 끊긴다 — 어절을 유지하고,
   넘칠 위험이 있는 긴 영문/URL만 위의 break-word로 처리한다.
   anywhere가 아닌 break-word인 이유: anywhere는 grid 아이템의 min-content
   폭까지 줄여 auto-fit 열 폭이 흔들린다.
   CJK에만 의미가 있는 규칙이라 한국어 페이지로 한정한다. */
html[lang="ko"] body { word-break: keep-all; }

/* display를 지정한 요소(#macHint 등)가 hidden 속성을 이겨 버리지 않도록. */
[hidden] { display: none !important; }

/* 가운뎃점으로 이어 붙인 나열(Windows · macOS · Linux)이 점에서 끊기지 않도록. */
.nowrap { white-space: nowrap; }

/* 끝줄에 한 단어만 남는 고아 줄 방지. */
h1, h2, .tagline, figcaption, .dl-card h3, .feature .t { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--accent); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 2px; }

section { max-width: var(--page); margin: 0 auto; }
h2 {
  width: fit-content;
  margin: 4rem auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: center;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.4rem 1rem;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---- Language switcher ---------------------------------------------- */
/* 어느 위치에서 읽고 있든 전환할 수 있도록 화면에 고정. 히어로 상단 여백이
   4rem이라 최상단에서도 앱 아이콘과 겹치지 않는다. */
.lang-switch {
  position: fixed; top: 0.75rem; right: 0.75rem; z-index: 20;
  /* 1fr 1fr — 라벨 길이가 달라도(EN vs 한국어) 두 칸이 넓은 쪽 기준으로 같은 폭이 된다.
     flex로 두면 칸 폭이 글자 수를 그대로 따라가 좌우가 어긋난다. */
  display: grid; grid-template-columns: 1fr 1fr;
  border: 3px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.lang-switch a {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem; font-weight: 800; line-height: 1.4;
  color: var(--fg); text-decoration: none; text-align: center;
}
.lang-switch a + a { border-left: 3px solid var(--border); }
.lang-switch a[aria-current="page"] { background: var(--accent); color: var(--accent-fg); }
.lang-switch a:not([aria-current="page"]):hover { background: var(--bg); }

@media (max-width: 560px) {
  .lang-switch { top: 0.5rem; right: 0.5rem; border-width: 2px; box-shadow: 2px 2px 0 var(--border); }
  .lang-switch a { padding: 0.25rem 0.5rem; font-size: 0.72rem; }
  .lang-switch a + a { border-left-width: 2px; }
}

/* ---- Hero ---------------------------------------------------------- */
/* 폭은 section과 같은 --page — 히어로 갤러리가 아래 다운로드 3단 카드와 같은
   좌우 선에 떨어진다. 본문(.lead 34rem)과 안내 카드(.ext-strip 40rem)는 저마다
   더 좁은 max-width를 갖고 있어 이 폭이 넓어져도 읽는 폭은 그대로다. */
.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 4rem 0 1rem;
  text-align: center;
}
.hero img.icon { width: 96px; height: 96px; }
.hero h1 { margin: 1rem 0 0.35rem; font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
/* 페이지에서 가장 먼저 읽히는 한 줄 — h1 다음 가는 크기와 굵기를 준다.
   1.25rem/600이던 이전 값은 아래 .lead(1rem)와 차이가 작아 한 덩어리로 뭉쳐 보였다. */
.hero .tagline { margin: 0; font-size: clamp(1.35rem, 3.4vw, 1.7rem); color: var(--fg); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
/* 핵심 약속은 아래 .recovery 블록이 지고, 여기는 "무엇인가"를 한 문장으로 말하는
   자리다. 두세 줄짜리 짧은 문장이라 중앙 정렬해도 시작점이 흔들려 보이지 않는다
   (한 문단을 통째로 중앙 정렬하는 것과는 다르다). 색은 --muted가 아니라 --fg-soft —
   훑고 지나가는 캡션이 아니라 실제로 읽는 문장이다. */
.hero .lead {
  margin: 1.75rem auto 0; max-width: 40rem;
  font-size: 1.0625rem; line-height: 1.7; color: var(--fg-soft);
}

/* ---- 상황 → 결과 ---------------------------------------------------- */
/* 이 제품이 하는 일은 "이런 일이 있어도 그대로"라는 한 문장인데, 문단으로 풀면
   훑어보는 눈에 걸리지 않는다. 상황 셋을 같은 무게의 카드로 끊고, 화살표로 잇고,
   결론만 반전 배너로 세운다 — 히어로에서 시선이 멈추는 지점을 하나 만든다. */
.hero .recovery { max-width: 46rem; margin: 2rem auto 0; }
.hero .cases {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.hero .cases li {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.9rem 0.6rem;
  border: 3px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  font-size: 0.95rem; font-weight: 700; line-height: 1.4; text-align: center;
}
.hero .cases .ic { font-size: 1.5rem; line-height: 1; }
/* 카드와 배너를 잇는 연결어. 셋과 하나 사이의 인과를 눈으로 보이게 하는 줄이라
   글자는 작게, 화살표만 크게. */
.hero .arrow {
  margin: 0.85rem 0 0; font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.02em; color: var(--muted);
}
.hero .arrow span { font-size: 1.15rem; vertical-align: -0.1em; color: var(--accent); }
/* 결론 배너. 배경을 --accent로 두면 라이트 테마에서 흰 글자 대비가 4.7:1까지
   떨어진다 — 페이지에서 가장 중요한 한 줄이므로 전경/배경을 통째로 뒤집어
   양쪽 테마 모두 15:1 위로 올린다. 강조색은 글자 밑줄에만 남긴다. */
.hero .result {
  margin: 0.85rem 0 0; padding: 0.9rem 1.1rem;
  border: 3px solid var(--border); border-left: 10px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--fg); color: var(--bg);
  font-size: 1.1rem; font-weight: 700; line-height: 1.5;
}
.hero .result b {
  font-weight: 900;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 4px; text-underline-offset: 3px;
}
/* 셋으로 나뉜 칸이 두세 글자마다 줄바꿈될 만큼 좁아지기 전에 세로로 쌓고,
   그때는 아이콘을 왼쪽에 두어 목록처럼 읽히게 한다. */
@media (max-width: 560px) {
  .hero .cases { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero .cases li { flex-direction: row; justify-content: flex-start; gap: 0.6rem; padding: 0.7rem 0.85rem; text-align: left; }
  .hero .cases .ic { font-size: 1.25rem; }
  .hero .result { font-size: 1rem; }
}

.cta { margin: 2rem 0 0.75rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 3px solid var(--border); background: var(--card); color: var(--fg);
  box-shadow: var(--shadow);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }

/* 카드 안에 놓는 한 단계 작은 버튼. 히어로의 Download가 페이지에서 유일한 primary로
   남아야 하므로, 부가 동선(VS Code 확장)은 색이 아니라 크기로 위계를 낮춘다. */
.btn.sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; border-width: 2px; box-shadow: 2px 2px 0 var(--border); }
.btn.sm:hover { background: var(--accent); color: var(--accent-fg); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--border); }
.btn.sm:active { transform: translate(2px, 2px); box-shadow: none; }
.hero .sub { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--fg-soft); min-height: 1.2em; }

/* VS Code 확장 안내 — 히어로의 다운로드 동선을 가리지 않도록 CTA 줄이 아니라
   본문 폭의 좁은 카드로. .mac-guide와 같은 왼쪽 강조선 어법.
   설명은 왼쪽, 마켓플레이스로 가는 버튼은 오른쪽에 따로 세운다 — 문장 속 인라인
   링크는 같은 줄의 "자세히"(#preview)와 경쟁해 클릭이 페이지 안쪽으로 샜다. */
/* .hero 밖에서도 같은 어법을 쓸 수 있도록 .hero로 스코프하지 않는다 —
   원래 히어로 전용이었지만 지금은 공용 "안내 카드" 클래스. */
.ext-strip {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  max-width: 40rem; margin: 1.75rem auto 0; padding: 0.85rem 0.95rem;
  border: 3px solid var(--border); border-left: 10px solid var(--accent);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  text-align: left;
}
/* 16rem 아래로는 줄바꿈이 너무 잦아진다 — 그 전에 버튼을 아랫줄로 내린다. */
.ext-strip .txt { flex: 1 1 16rem; min-width: 0; margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--fg-soft); }
.ext-strip .btn { flex: 0 0 auto; }
.ext-strip b { color: var(--fg); font-weight: 800; }
/* 좁은 화면에서 버튼이 아랫줄로 내려가면 탭 대상으로 넓게 편다. */
@media (max-width: 560px) {
  .ext-strip .btn { flex: 1 1 100%; justify-content: center; }
}

/* 같은 패밀리 앱 배지 — UniFinder 랜딩이 UniNotepad를 가리킬 때 쓰는 것과 같은
   자리(히어로 CTA 바로 아래)·같은 알약 배지 어법. 톤이 전부 보라 accent인 이 페이지
   안에서 눈에 띄어야 하므로 라이트/다크 공통으로 고정된 amber를 쓴다 — --accent를
   쓰면 다른 보라색 요소들 사이에 묻힌다. */
.family-card {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 1.5rem auto 0; padding: 0.55rem 1.2rem;
  border: 3px solid var(--border); border-radius: 999px;
  background: #ffd966; color: #1a1a1a;
  font-weight: 800; font-size: 0.9rem; text-decoration: none;
  box-shadow: var(--shadow);
}
.family-card:hover { background: #ffcc33; box-shadow: var(--shadow-lg); transform: translate(-2px, -2px); }
.family-card:active { box-shadow: none; transform: translate(2px, 2px); }
.family-icon { font-size: 1.05rem; }

.hero .shot { margin: 2.5rem auto 0; max-width: 56rem; }
.hero .shot img { width: 100%; border-radius: var(--radius); border: 3px solid var(--border); box-shadow: var(--shadow-lg); }
/* lead-shot의 데모 영상. 위 규칙이 img만 잡으므로 video는 따로 준다 — 테두리·그림자는
   같은 값을 써서 아래 스크린샷 두 장과 한 세트로 보이게 한다. display:block 이 없으면
   인라인 baseline 여백이 figcaption 위에 몇 px 생긴다. */
.hero .shot video { width: 100%; display: block; border-radius: var(--radius); border: 3px solid var(--border); box-shadow: var(--shadow-lg); background: var(--card); }
/* 히어로 갤러리 — 지금은 데모 영상 한 장(.lead-shot)만 들어간다. 2열 격자를 남겨 두는
   이유는 .lead-shot이 1/-1로 걸쳐 페이지 폭(--page)을 그대로 쓰기 때문 · 나중에 보조
   스크린샷을 다시 넣으면 아래 칸에 나란히 붙는다. 다만 전폭 이미지를 여러 장 쌓지는
   말 것 — 히어로만 2,000px을 넘어 다운로드 섹션이 스크롤 한참 뒤로 밀린다. */
/* max-width: none — .hero(--page)를 그대로 다 쓴다. 여기에 값을 두면 .hero .shot의
   56rem을 덮어쓰기만 하고 결국 다시 좁아진다. */
.hero .shot.gallery { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.hero .shot.gallery .lead-shot { grid-column: 1 / -1; }
.hero .shot.gallery figure { border: none; border-radius: 0; background: transparent; overflow: visible; }
.hero .shot.gallery figcaption { padding: 0.6rem 0 0; text-align: center; border-top: none; }
/* 반으로 나뉜 칸이 스크린샷을 알아볼 수 없을 만큼 좁아지기 전에 한 줄씩으로. */
@media (max-width: 700px) {
  .hero .shot.gallery { grid-template-columns: 1fr; }
}

/* ---- Download cards ------------------------------------------------ */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.dl-card {
  border: 3px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
  background: var(--card); box-shadow: var(--shadow);
}
.dl-card.recommended { box-shadow: 6px 6px 0 var(--accent); }
.dl-card h3 { margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 0.4rem; }
.dl-card .tag {
  font-size: 0.7rem; font-weight: 800; color: var(--accent-fg); background: var(--accent);
  padding: 0.15rem 0.5rem; border-radius: var(--radius); border: 2px solid var(--border); margin-left: auto;
}
.dl-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.dl-card a.dl {
  display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius);
  border: 2px solid var(--border); text-decoration: none; color: var(--fg);
  font-size: 0.95rem; font-weight: 600;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.06s ease;
}
.dl-card a.dl:hover { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.dl-note { max-width: 46rem; margin: 1.25rem auto 0; font-size: 0.85rem; color: var(--muted); text-align: left; }
.dl-note code { background: var(--card); border: 2px solid var(--border); padding: 0.1rem 0.35rem; border-radius: var(--radius); }
/* macOS 카드 안의 경고 줄 — 카드에서 안내로 시선을 넘긴다. */
.dl-card .warn {
  margin: 0.75rem 0 0; padding: 0.4rem 0.55rem; font-size: 0.82rem; font-weight: 700;
  border: 2px solid var(--border); background: var(--accent); color: var(--accent-fg);
}
.dl-card .warn a { color: inherit; }

/* ---- macOS 첫 실행 안내 -------------------------------------------- */
/* 공증되지 않은 앱이라 macOS가 "손상됨"이라며 막는다 — 이 한 줄을 놓치면 앱을
   아예 못 여니, 각주(.dl-note)가 아니라 건너뛸 수 없는 카드로 세운다. */
.mac-guide {
  max-width: 46rem; margin: 1.5rem auto 0; padding: 1.1rem 1.25rem;
  border: 3px solid var(--border); border-left: 10px solid var(--accent);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  scroll-margin-top: 1.5rem;
}
/* 방문 OS가 macOS일 때만 강조 — 다른 OS 사용자에게는 조용히 남아 있다. */
.mac-guide.for-you { box-shadow: 6px 6px 0 var(--accent); }
.mac-guide .t { margin: 0; font-size: 1.05rem; font-weight: 800; }
.mac-guide .why { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.mac-guide ol { margin: 0.9rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.6rem; font-size: 0.95rem; }
/* grid 아이템의 자동 최소 크기는 min-content — 안에 든 nowrap 명령줄이 좁은 화면에서
   카드를 밀어낸다. 0으로 낮춰 명령줄 자신이 가로 스크롤되게 한다. */
.mac-guide ol li { min-width: 0; }
.mac-guide ol b { font-weight: 800; }
.mac-guide .after { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--muted); }
/* 본문 속 짧은 코드 조각. .cmd code(복사용 한 줄)와 겹치지 않도록 li의 직계만 잡는다. */
.mac-guide li > code, .mac-guide .why code, .mac-guide .after code, details p code {
  background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 0.05rem 0.3rem; font-size: 0.85em; white-space: nowrap;
}
.cmd { display: flex; gap: 0.5rem; align-items: stretch; margin: 0.5rem 0 0; }
.cmd code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  padding: 0.5rem 0.6rem; font-size: 0.9rem;
  background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius);
}
.copy-btn {
  flex: 0 0 auto; padding: 0.45rem 0.7rem; font: inherit; font-size: 0.85rem; font-weight: 700;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--fg); cursor: pointer; box-shadow: 2px 2px 0 var(--border);
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.06s ease;
}
.copy-btn:hover { background: var(--accent); color: var(--accent-fg); }
.copy-btn:active { transform: translate(2px, 2px); box-shadow: none; }
/* 좁은 화면에서는 명령을 가로 스크롤 뒤에 숨기지 말고 두 줄로 펼친다. */
@media (max-width: 560px) {
  .cmd { flex-wrap: wrap; }
  .cmd code { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; }
}

/* 섹션 도입부 — 각주(.dl-note)보다 크고, 본문처럼 읽히는 폭. */
.section-lead { max-width: 44rem; margin: 0 auto; font-size: 1.05rem; color: var(--muted); text-align: left; }

/* ---- Feature grid -------------------------------------------------- */
/* 최소폭 320px: 페이지 상한 1200px에서 3열(카드 389px)이 된다. 260px로 두면 4열이
   되면서 카드가 288px로 좁아진다 — 제목 한 줄 + 서너 줄 설명이 들어가는 카드에는
   좁다. 밀도를 높이려면 이 값을 280px로 내리면 4열이 된다. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.feature { border: 3px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--card); box-shadow: var(--shadow); }
.feature .t { font-weight: 800; margin: 0 0 0.35rem; }
.feature .d { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature .d code { background: var(--bg); border: 2px solid var(--border); padding: 0.05rem 0.3rem; border-radius: var(--radius); font-size: 0.85em; white-space: nowrap; }
/* 항목이 여럿인 설명은 문장으로 이어 붙이지 않고 목록으로 — 훑어보기 쉽게. */
.feature .keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.feature .keys li { padding-left: 0.9rem; text-indent: -0.9rem; }
.feature .keys li::before { content: "· "; color: var(--accent); font-weight: 800; }
/* 설명 카드가 행동으로 끝나야 하는 경우(VS Code 확장)의 버튼. */
.feature .btn { margin-top: 0.9rem; }

/* ---- Screenshots --------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
figure { margin: 0; border: 3px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
figure img { display: block; width: 100%; }
figcaption { padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--muted); border-top: 3px solid var(--border); }
figcaption b { color: var(--fg); font-weight: 800; }

/* ---- Lightbox ------------------------------------------------------ */
.grid figure img, .hero .shot img { cursor: zoom-in; }
.lightbox { border: none; outline: none; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; border: none; border-radius: 0; background: transparent; overflow: visible; }
/* 썸네일이 아닌 본 이미지에만 적용되도록 ID로 한정.
   무대를 꽉 채우고 비율은 contain으로 지킨다 — 원본 비율이 달라도 확대 크기는 항상 같다. */
#lightboxImg { display: block; width: 100%; height: 100%; object-fit: contain; background: #0d0d0d; border: 3px solid #fff; border-radius: 0; cursor: zoom-out; }
.lightbox figcaption { text-align: center; color: #eee; padding: 0.6rem 0 0; font-size: 0.9rem; }
.lightbox figcaption b { color: #fff; }
/* 확대 이미지는 스크린샷 비율(14:9) 고정 박스 안에 들어간다 — 어떤 장을 열어도 크기가 같다. */
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, calc(68vh * 14 / 9)); aspect-ratio: 14 / 9; margin: 0 auto; }
/* 화살표는 이미지가 아니라 무대(stage)에 고정 — 이미지 비율이 달라도 위치가 흔들리지 않는다. */
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; border-radius: 0; background: rgb(0 0 0 / 65%); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: var(--accent); }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-count { text-align: center; color: #bbb; font-size: 0.8rem; margin: 0.35rem 0 0; }
.lb-thumbs { display: flex; gap: 0.5rem; justify-content: center; overflow-x: auto; padding: 0.7rem 0.2rem 0.2rem; }
.lb-thumbs button { flex: 0 0 auto; padding: 0; line-height: 0; border: 3px solid transparent; border-radius: 0; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.15s, border-color 0.15s; }
.lb-thumbs button:hover { opacity: 0.85; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.lb-thumbs img { display: block; width: 96px; height: 60px; object-fit: cover; border-radius: 0; }
@media (max-width: 560px) {
  .lb-nav { width: 36px; height: 36px; font-size: 1.4rem; }
  .lb-thumbs img { width: 64px; height: 42px; }
}

/* ---- FAQ ----------------------------------------------------------- */
.faq { max-width: 48rem; }
details { border: 3px solid var(--border); border-radius: var(--radius); padding: 0.5rem 1rem; margin: 0.8rem 0; background: var(--card); box-shadow: var(--shadow); }
details summary { cursor: pointer; font-weight: 700; padding: 0.4rem 0; }
details p { color: var(--muted); margin: 0.6rem 0; }
details p + p { margin-top: 0.8rem; }

footer { max-width: var(--page); margin: 4rem auto 0; padding-top: 2rem; border-top: 3px solid var(--border); text-align: center; color: var(--muted); font-size: 0.9rem; }
