/* ==========================================================================
   개구리 말차 카페 — 사전예약 랜딩 (/matcha/)
   전시장 QR 접속용 · 모바일 우선
   ========================================================================== */

:root {
  --ink: #23301f;
  --ink-2: #4a5844;
  --muted: #7d8a77;
  --line: #dfe6d6;
  --bg: #ffffff;
  --cream: #f6f8f0;
  --matcha: #6f9a5a;
  --matcha-dk: #4e7440;
  --matcha-lt: #eef3e4;
  --wrap: 560px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(35,48,31,.06), 0 6px 16px rgba(35,48,31,.08);
  --shadow-md: 0 2px 6px rgba(35,48,31,.07), 0 18px 40px rgba(35,48,31,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.75; color: var(--ink);
  background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--matcha-dk); outline-offset: 3px; border-radius: 6px; }

.pr-wrap { width: min(100% - 36px, var(--wrap)); margin-inline: auto; }

/* 한국어는 어절 단위로 끊고(keep-all), 일본어는 일반 줄바꿈 규칙을 씁니다.
   일본어에 keep-all 을 적용하면 한 줄이 끊기지 않아 가로 스크롤이 생깁니다. */
[data-doc="ja"] { word-break: normal; line-break: strict; }

/* ---------- 언어 전환 ---------- */
.pr-langs {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: 14px; z-index: 60;
  display: flex; gap: 2px; padding: 3px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(35,48,31,.09); border-radius: 999px;
  box-shadow: 0 2px 10px rgba(35,48,31,.10);
}
.pr-langs button {
  padding: 6px 11px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted);
  line-height: 1; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.pr-langs button[aria-pressed="true"] { background: var(--matcha); color: #fff; }

/* ---------- 히어로 ---------- */
.pr-hero {
  position: relative;
  background: linear-gradient(180deg, var(--matcha-lt) 0%, #f7faf2 62%, var(--bg) 100%);
  padding-bottom: 30px;
}
.pr-keyart {
  position: relative; overflow: hidden;
  aspect-ratio: 1024 / 500; background: var(--matcha-lt);
}
.pr-keyart img { width: 100%; height: 100%; object-fit: cover; }
.pr-keyart::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 46%;
  background: linear-gradient(180deg, rgba(238,243,228,0) 0%, var(--matcha-lt) 92%);
}

.pr-hero-in { position: relative; margin-top: -46px; text-align: center; }

.pr-icon {
  width: 92px; height: 92px; margin: 0 auto 16px;
  border-radius: 23%; overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  background: var(--cream);
}
.pr-icon img { width: 100%; height: 100%; object-fit: cover; }

.pr-title {
  font-size: clamp(26px, 7.6vw, 34px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.28;
}
.pr-title-sub {
  margin-top: 5px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--matcha-dk);
}
.pr-tagline {
  margin-top: 12px; font-size: 15.5px; font-weight: 600; color: var(--ink-2);
}
.pr-release {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 7px 15px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.pr-release span {
  padding: 3px 9px; border-radius: 999px;
  background: var(--matcha); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1.5;
}

/* ---------- 사전예약 CTA ---------- */
.pr-cta { padding: 8px 0 34px; text-align: center; }
.pr-cta-head {
  font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--matcha-dk);
}
.pr-cta-head::after {
  content: ""; display: block; width: 34px; height: 3px; margin: 10px auto 0;
  border-radius: 2px; background: var(--matcha);
}

/* 전시장에서 한 손으로 누르는 화면이라 모바일에서는 세로로 크게 쌓습니다 */
.pr-stores {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-top: 20px;
}
.pr-store {
  display: block; border-radius: 12px;
  transition: transform .18s var(--ease);
}
.pr-store img { height: 58px; width: auto; }
a.pr-store:active { transform: scale(.96); }

/* App Store 배지는 prereg.json 의 appstore 에 링크를 넣으면 나타납니다.
   스토어 배지는 색상·명암을 바꾸면 브랜드 가이드 위반이라 원본 그대로 씁니다. */

.pr-cta-note {
  margin-top: 22px; font-size: 13px; line-height: 1.7; color: var(--muted);
}

/* ---------- 섹션 ---------- */
.pr-sec { padding: 30px 0; border-top: 1px solid var(--line); }
.pr-sec:first-of-type { border-top: 0; }
.pr-sec h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -.015em; line-height: 1.4;
}
.pr-sec h2 + * { margin-top: 16px; }

.pr-lead {
  font-size: 15.5px; line-height: 1.9; color: var(--ink-2);
  padding: 18px 20px; border-radius: 16px;
  background: var(--cream); border: 1px solid var(--line);
}

/* ---------- 스크린샷 가로 스크롤 ---------- */
.pr-shots {
  --gutter: calc((100vw - min(100vw - 36px, var(--wrap))) / 2);
  display: flex; gap: 12px; margin-top: 16px;
  padding: 2px var(--gutter) 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scroll-padding-inline-start: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.pr-shots::-webkit-scrollbar { height: 6px; }
.pr-shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.pr-shots figure {
  flex: 0 0 auto; margin: 0; width: 172px;
  scroll-snap-align: start;
}
.pr-shots img {
  width: 100%; aspect-ratio: 720 / 1280; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--cream); box-shadow: var(--shadow-sm);
}

/* ---------- 특징 ---------- */
.pr-features { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.pr-features li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 16px; border-radius: 15px;
  background: var(--cream); border: 1px solid var(--line);
}
.pr-features li > div { min-width: 0; }   /* 긴 문장이 flex 아이템을 밀어내지 않도록 */
.pr-f-icon { font-size: 21px; line-height: 1.35; flex: 0 0 auto; }
.pr-features h3 { font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
.pr-features p { margin-top: 4px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 정보 표 ---------- */
.pr-info { margin-top: 16px; border-top: 1px solid var(--line); }
.pr-info > div {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.pr-info dt { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.pr-info dd { font-size: 14px; line-height: 1.65; color: var(--ink-2); min-width: 0; }

/* ---------- 푸터 ---------- */
.pr-foot {
  padding: 34px 0 calc(112px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--cream);
  text-align: center;
}
.pr-foot-link {
  display: block; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--matcha-dk);
}
.pr-foot-link:active { opacity: .6; }
.pr-foot-logo { width: 130px; margin: 22px auto 0; opacity: .5; }
.pr-copy { margin-top: 14px; font-size: 11.5px; color: var(--muted); }

/* ---------- 하단 고정 버튼 ---------- */
.pr-sticky {
  position: fixed; inset: auto 0 0 0; z-index: 55;
  display: flex; justify-content: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  animation: prUp .3s var(--ease);
}
.pr-sticky[hidden] { display: none; }
.pr-sticky-btn img { height: 52px; width: auto; }
.pr-sticky-btn:active { transform: scale(.96); }
@keyframes prUp { from { transform: translateY(100%) } to { transform: none } }

/* ---------- 데스크톱 ---------- */
@media (min-width: 720px) {
  body { font-size: 16.5px; }
  .pr-keyart { aspect-ratio: 1024 / 380; }
  .pr-icon { width: 110px; height: 110px; }
  .pr-sec { padding: 40px 0; }
  .pr-shots figure { width: 200px; }
  .pr-stores { flex-direction: row; align-items: flex-start; gap: 16px; }
  .pr-store img { height: 54px; }
  /* 마우스 환경에서는 하단 고정 버튼이 불필요 */
  .pr-sticky { display: none; }
}

@media (hover: hover) {
  a.pr-store:hover { transform: translateY(-3px); }
  .pr-foot-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
