/* jinjja.win 소개 페이지 */
body.home .wrap { max-width: 1120px; padding-bottom: 40px; }
.home .top { border-bottom: 0; padding-bottom: 0; }
.eyebrow { font: 500 12px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--hong); font-weight: 500; }

/* 첫 화면 */
.hero { display: grid; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(40px, 7.4vw, 80px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.hero h1:lang(ko), .hero h1 .t:lang(ko) { line-height: 1.16; letter-spacing: -0.05em; }
.hero h1 em { font-style: normal; color: var(--hong); }
.hero .sub { max-width: 30em; font-size: 18px; line-height: 1.65; color: var(--ink2); margin: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border: 1.5px solid var(--ink); border-radius: 14px; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.1; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store small { display: block; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* 크게 보여 주기 데모: 라디오 + :checked 로 카드 전환(JS 없음) */
.demo { position: relative; container-type: inline-size; }
.demo input { position: absolute; opacity: 0; pointer-events: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs label { padding: 8px 14px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
#d1:checked ~ .tabs [for="d1"], #d2:checked ~ .tabs [for="d2"], #d3:checked ~ .tabs [for="d3"] { background: var(--ink); color: var(--bg); }
#d1:focus-visible ~ .tabs [for="d1"], #d2:focus-visible ~ .tabs [for="d2"], #d3:focus-visible ~ .tabs [for="d3"] { outline: 2px solid var(--hong); outline-offset: 2px; }
.bigc { display: none; position: relative; padding: 7cqi 7cqi 8cqi; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 40px 80px -40px rgba(17, 17, 17, 0.28); overflow: hidden; animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bigc::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--sd); }
#d1:checked ~ .c1, #d2:checked ~ .c2, #d3:checked ~ .c3 { display: block; }
.bigc .hint { font: 600 2.6cqi/1.4 "IBM Plex Sans KR", sans-serif; color: var(--hong); }
.bigc .say { margin: 3cqi 0 2.6cqi; font-size: 7.4cqi; line-height: 1.24; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.bigc .tr { font-size: max(13px, 2.7cqi); line-height: 1.5; color: var(--muted); }
.bigc .ans { display: flex; flex-wrap: wrap; gap: 1.6cqi; margin-top: 4cqi; }
.bigc .ans span { padding: 1.6cqi 3.2cqi; border-radius: 999px; background: var(--nam); color: #fff; font-size: max(13px, 3cqi); font-weight: 700; }
.bigc .ans small { flex-basis: 100%; font-size: max(12px, 2.3cqi); font-weight: 700; color: var(--hong); }
.demo .cap { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* 순서대로 나타나기 */
.hero > * > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > * > :nth-child(2) { animation-delay: 0.06s; }
.hero > * > :nth-child(3) { animation-delay: 0.12s; }
.hero > * > :nth-child(4) { animation-delay: 0.18s; }
.hero > * > :nth-child(5) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 기능 네 가지 */
.tour { padding: 88px 0; border-top: 1px solid var(--line); }
.tour > h2, .split h2, .rules h2 { margin: 12px 0 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -0.04em; }
.tour > h2:lang(ko), .tour > h2 .t:lang(ko) { line-height: 1.25; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 28px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shot { scroll-snap-align: start; margin: 0; }
.frame { padding: 6px; border-radius: 34px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 30px 60px -36px rgba(17, 17, 17, 0.35); }
.frame img { display: block; width: 100%; height: auto; border-radius: 28px; }
.shot figcaption { margin-top: 18px; }
.shot .n { font: 500 12px/1 var(--mono); color: var(--hong); }
.shot b { display: block; margin: 8px 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.shot p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* 도장·지도 */
.split { display: grid; gap: 40px; align-items: center; padding: 88px 0; border-top: 1px solid var(--line); }
.split p { max-width: 30em; font-size: 17px; color: var(--ink2); }
.count { display: flex; align-items: center; gap: 28px; }
.count img { width: 120px; height: auto; }
.count .num { font-size: clamp(88px, 14vw, 168px); font-weight: 700; line-height: 0.9; letter-spacing: -0.06em; }
.count .num small { display: block; margin-top: 14px; font: 500 13px/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.mapbox { justify-self: center; width: min(520px, 100%); }
.mapbox img { display: block; width: 100%; height: auto; }
.cities { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cities li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cities li span:last-child { font: 500 12.5px/1.6 var(--mono); color: var(--muted); }
.cities li.on b { color: var(--hong); }

/* 규칙 */
.rules { padding: 88px 0 40px; border-top: 1px solid var(--line); }
.rules ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.rules li { margin: 0; padding: 20px 0 24px; border-top: 2px solid var(--ink); font-size: 15.5px; color: var(--ink2); }
.rules li b { display: block; margin-bottom: 6px; font: 500 12px/1 var(--mono); color: var(--hong); }

/* 끝 */
.end { display: grid; justify-items: center; gap: 18px; padding: 72px 0 24px; text-align: center; }
.end img { width: 168px; height: auto; }
.end p { margin: 0; font-size: 17px; color: var(--ink2); }
.home .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.home .foot nav.pages { margin: 0; }

@media (min-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-top: 96px; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split.flip > :first-child { order: 2; }
}
/* 좁은 화면 머리, 한글 라벨은 고정폭 글꼴 대신 본문 글꼴로 */
.brand b, .lang button { white-space: nowrap; }
.eyebrow .t:lang(ko), .store small:lang(ko), .count .num small .t:lang(ko), .cities li span:lang(ko) { font-family: "IBM Plex Sans KR", sans-serif; letter-spacing: 0; }
@media (max-width: 440px) { .brand span { display: none; } .lang button { padding: 7px 10px; } }

/* 언어 메뉴: details 로 열고 닫는다(JS 없음) */
.langmenu { position: relative; }
.langmenu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langmenu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px; min-width: 300px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 24px 48px -20px rgba(17, 17, 17, 0.3); }
.langmenu li { margin: 0; }
.langmenu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.langmenu a:hover { background: var(--panel); }
.langmenu a[aria-current="page"] { font-weight: 700; color: var(--hong); }
.bigc .tap { margin: 3cqi 0 0; font-size: max(12.5px, 2.4cqi); color: var(--hong); font-weight: 700; }
.bigc .say, .bigc .ans { direction: ltr; text-align: left; }
.lnote { flex-basis: 100%; margin: 0; font-size: 12.5px; }

/* 휴대폰 화면 */
@media (max-width: 600px) {
  .hero { gap: 36px; padding: 32px 0 56px; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 46px); }
  .hero .sub { font-size: 16.5px; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; }
  .store { justify-content: center; padding: 0 10px; font-size: 15px; }
  .tabs label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
  .bigc { border-radius: 18px; }
  .tour, .split, .rules { padding: 56px 0; }
  .end { padding: 48px 0 16px; }
  .shots { grid-auto-columns: 74%; gap: 16px; margin-top: 32px; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); scroll-padding-inline: 20px; }
  .count img { width: 84px; }
  .home .foot { flex-direction: column; }
  .langmenu ul { min-width: min(300px, calc(100vw - 40px)); }
}
/* 영어가 아닌 언어: 라벨에 고정폭 글꼴·넓은 자간·대문자를 쓰지 않는다(아랍어 글자 끊김, 키릴 대문자 방지) */
html:not([lang="en"]) .eyebrow, html:not([lang="en"]) .store small, html:not([lang="en"]) .count .num small, html:not([lang="en"]) .cities li span:last-child { font-family: var(--ff, "IBM Plex Sans KR"), "IBM Plex Sans KR", sans-serif; letter-spacing: 0; text-transform: none; }
.hero h1 em { white-space: nowrap; }
.hero h1, .tour > h2, .split h2, .rules h2 { text-wrap: balance; }
/* 하단 로고: 그림 대신 글자로 그려 어떤 화면에서도 선명하게 */
.wordmark { display: inline-grid; justify-items: center; gap: 12px; color: var(--nam); }
.wordmark b { font: 700 88px/0.92 "IBM Plex Sans KR", sans-serif; letter-spacing: -0.035em; padding-inline-end: 0.035em; }
.wordmark i { display: block; width: 100%; height: 6px; background: var(--sd); }
.wordmark span { font: 500 15px/1 var(--mono); letter-spacing: 0.16em; margin-inline-end: -0.16em; }
.end .wordmark + p { margin-top: 6px; }
.end p, .fine, .cap, .eyebrow { text-wrap: balance; }
