/* ============================================================
   나랑 교구랑 — 시안 B (밝은 쇼룸)
   ============================================================ */

:root {
  --bg: #fffcf5;
  --ink: #18181c;
  --ink-2: #4c4b52;
  --ink-3: #6f6d75; /* 흰 바탕에서도 글씨가 또렷하도록 (명도 대비 4.5:1 이상) */
  --line: #e8e3d8;

  --teal: #08787a;
  --teal-soft: #d9eeec;
  --coral: #f23d63;
  --coral-soft: #fde3e8;
  --mustard: #ffc23d;
  --mustard-soft: #fff1cc;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 32px;
  --r-md: 20px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* 띠와 스티커가 화면 밖으로 삐져나가도 가로 스크롤이 생기지 않게 (clip을 모르는 옛 브라우저는 hidden) */
main { overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* 키보드로 이동할 때 지금 어디에 있는지 또렷하게 */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 0;
  background: rgba(255, 252, 245, 0.9);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-mark img { width: 36px; mix-blend-mode: multiply; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.04em; }

.nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

h1 {
  margin: 0;
  font-weight: 850;
  font-size: clamp(76px, 11vw, 164px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}
h1 .w { display: block; }
.w1 { color: var(--coral); }
.w2 { color: var(--teal); }
.period {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--mustard);
}

.hero-lede {
  max-width: 460px;
  margin: 32px 0 32px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-ghost { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* collage */
.collage {
  position: relative;
  aspect-ratio: 1 / 0.92;
}
.collage-photo {
  position: absolute;
  left: 4%;
  right: 2%;
  top: 27%;
  margin: 0;
  padding: 10px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 60px -24px rgba(24, 24, 28, 0.35);
  transform: rotate(-2.5deg);
}
.collage-photo img { width: 100%; border-radius: 20px; }

.sticker {
  position: absolute;
  width: 26%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 22px;
  box-shadow: 0 18px 40px -18px rgba(24, 24, 28, 0.4);
}
/* 점자블록은 사진 왼쪽 위 바깥으로 빼서 선생님 얼굴을 가리지 않게 */
.s1 { left: -7%; top: -3%; width: 23%; transform: rotate(-9deg); }
.s2 { right: 6%; top: 1%; width: 21%; transform: rotate(7deg); }
.s3 { right: -2%; bottom: 0; width: 26%; transform: rotate(-5deg); }

/* 로고 스티커 = 숨은 QR 버튼. 앞면은 로고, 뒷면은 QR 코드 */
.collage-logo {
  position: absolute;
  left: 10%;
  bottom: 2%;
  width: 21%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  perspective: 700px;
  transform: rotate(6deg);
}
.flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(24, 24, 28, 0.4);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.face.front img { width: 78%; border-radius: 50%; } /* 로고 그림의 네모난 흰 모서리가 원 밖으로 삐져나오지 않게 동그랗게 자름 */
.face.back { transform: rotateY(180deg); }
.face.back img { width: 66%; }
.collage-logo:hover .flip,
.collage-logo:focus-visible .flip { transform: rotateY(180deg); }
.collage-logo:focus-visible { outline-offset: 6px; }
/* 처음 들어왔을 때 한 번만 살짝 뒤집어 '뒷면이 있다'는 걸 알려 줌 */
.collage-logo.peek .flip { animation: peek 2.6s var(--ease); }
@keyframes peek {
  0%, 100% { transform: rotateY(0deg); }
  25%, 70% { transform: rotateY(180deg); }
}

/* ---------- QR 창 ---------- */

.qr-dialog {
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 44px 32px 32px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  overflow: auto;
}
.qr-dialog::backdrop { background: rgba(24, 24, 28, 0.6); }
.qr-dialog[open] { animation: pop 0.45s var(--ease); }
.qr-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.qr-close:hover { transform: rotate(90deg); }
.qr-close svg { width: 16px; height: 16px; }
.qr-kicker {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}
.qr-dialog h2 { margin: 14px 0 20px; font-size: clamp(24px, 4vw, 30px); letter-spacing: -0.045em; }
.qr-img { width: 100%; max-width: 380px; margin: 0 auto; }
.qr-url { margin: 14px 0 24px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qr-actions .btn { height: 50px; padding: 0 22px; font-size: 15px; cursor: pointer; border: 0; }

/* ---------- stats ---------- */

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: 0;
}
.st {
  display: flex;
  flex-direction: column;
  padding: 22px 26px 24px;
  border-radius: var(--r-md);
}
.st b { font-size: clamp(40px, 4.6vw, 60px); font-weight: 850; line-height: 1.1; letter-spacing: -0.05em; }
.st span { font-size: 14px; font-weight: 600; opacity: 0.8; }
.st-teal { background: var(--teal); color: #fff; }
.st-coral { background: var(--coral-soft); color: #b3183b; }
.st-mustard { background: var(--mustard); color: var(--ink); }
.st-ink { background: var(--ink); color: #fff; }

/* ---------- ribbon ---------- */

.ribbon {
  margin-top: clamp(64px, 8vw, 104px);
  overflow: hidden;
  background: var(--teal);
  color: #fff;
  transform: rotate(-1.2deg);
  width: 104%;
  margin-left: -2%;
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: slide 60s linear infinite;
}
/* 두 묶음이 똑같은 너비여야 이음매 없이 반복됨. 아주 넓은 화면에서도 화면 너비만큼은 채움 */
.ribbon-group {
  display: flex;
  flex-shrink: 0;
  min-width: 100vw;
  justify-content: space-around;
}
.ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0 16px 28px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ribbon span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mustard);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section scaffold ---------- */

.sec { padding-top: clamp(88px, 11vw, 144px); }

.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.label b {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}
.label-light { background: rgba(255, 255, 255, 0.16); padding-right: 14px; }

h2 {
  margin: 0;
  font-weight: 850;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}
.sec-desc { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); }

/* ---------- 교구 바로가기 ---------- */

.jump {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: -8px 0 24px;
}
.jump-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.jump-item:hover { background: var(--pbg); box-shadow: inset 0 0 0 1.5px var(--pac); transform: translateY(-2px); }
.jump-item img {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}
.jump-item span { font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; }
.jump-item b { display: block; font-size: 12px; font-weight: 800; color: var(--pac); letter-spacing: 0; }

/* ---------- product panels ---------- */

.panels { display: grid; gap: 20px; }

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: var(--r-lg);
  background: var(--pbg);
  overflow: hidden;
}
.panel:nth-child(even) .panel-media { order: -1; }

.panel-top { display: flex; align-items: center; gap: 14px; }
.panel-no {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--pac);
}
.panel-field {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--pac);
  font-size: 13px;
  font-weight: 700;
}

.panel h3 {
  margin: 22px 0 6px;
  font-weight: 850;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.055em;
}
.panel-tag { margin: 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; color: var(--pac); }
.panel-sum { max-width: 520px; margin: 16px 0 0; font-size: 16px; color: var(--ink-2); }

.panel-uses { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.panel-uses li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }

/* 1순위: 교구 소개 열기 */
.more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 8px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--pac);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px var(--pac);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.more small {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 600;
}
.more i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--pac);
  transition: transform 0.35s var(--ease);
}
.more svg { width: 16px; height: 16px; }
.more:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px var(--pac); }
.more:hover i { transform: rotate(90deg); }

/* 2순위: 판매처 바로가기 */
.shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(24, 24, 28, 0.12);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.shop small { font-size: 12px; font-weight: 500; color: var(--ink-3); transition: color 0.2s; }
.shop i {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
}
.shop svg { width: 12px; height: 12px; }
.shop:hover { transform: translateY(-2px); background: var(--ink); color: #fff; box-shadow: none; }
.shop:hover small { color: rgba(255, 255, 255, 0.65); }
.shop:hover i { background: rgba(255, 255, 255, 0.14); }

.panel-shops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.panel-media { position: relative; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; }
.panel-media img {
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(24, 24, 28, 0.45);
  transform: rotate(var(--tilt, 3deg));
  transition: transform 0.6s var(--ease);
}
.panel:hover .panel-media img,
.panel.in-view .panel-media img { transform: rotate(0deg) scale(1.02); } /* in-view: 휴대폰에서 화면에 들어올 때 */
.panel-media .blob {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pac);
  opacity: 0.14;
}

/* ---------- material tiles ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip-n {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] .chip-n { color: rgba(255, 255, 255, 0.7); }

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--ink); }

.tile-top { display: flex; justify-content: space-between; align-items: center; }
.ftype {
  display: inline-grid;
  place-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}
.ftype[data-type="PPT"] { background: var(--coral); }
.ftype[data-type="PDF"] { background: var(--teal); }
.ftype[data-type="HWP"] { background: #2f6fd0; }
.tile-size { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.tile h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 750; line-height: 1.4; letter-spacing: -0.035em; }
.tile-prod { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.tile-prod::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pac, var(--ink-3)); }

.tile-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin-top: 22px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tile-dl svg { width: 15px; height: 15px; }
.tile-dl:hover { background: var(--ink); color: #fff; box-shadow: none; }
.tile-wrap { margin-top: auto; }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
}
.about-main {
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--r-lg);
  background: var(--teal);
  color: #fff;
}
.about-main blockquote {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 750;
  line-height: 1.42;
  letter-spacing: -0.05em;
  text-wrap: balance; /* 줄 길이를 고르게 해서 마지막 줄에 한 단어만 남지 않게 */
}
.nb { white-space: nowrap; }
.about-main em {
  font-style: normal;
  color: var(--ink);
  background: var(--mustard);
  padding: 0 0.18em;
  border-radius: 0.2em;
}
.about-text { margin: 32px 0 0; max-width: 620px; font-size: 16px; line-height: 1.8; opacity: 0.85; }

.about-side {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--mustard-soft);
}
.about-logo {
  align-self: flex-end;
  width: clamp(120px, 14vw, 180px);
  margin-top: auto;
  padding-top: 32px;
  mix-blend-mode: multiply;
  transform: rotate(-8deg);
}
.about-side h3 { margin: 0 0 20px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.people { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.people li {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------- footer ---------- */

.foot { margin-top: clamp(88px, 11vw, 144px); padding: 40px 0 48px; border-top: 1.5px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand-foot .brand-name { display: flex; flex-direction: column; line-height: 1.3; }
.brand-foot small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.foot p { margin: 0; font-size: 13px; color: var(--ink-3); }

/* ---------- product sheet ---------- */

.sheet {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
}
.sheet::backdrop { background: rgba(24, 24, 28, 0.55); }
.sheet[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } }

.sheet-hero {
  position: relative;
  padding: 40px 40px 0;
  background: var(--pbg);
}
/* 높이 0인 막대를 창 맨 위에 붙여 두고, 닫기 버튼만 그 아래로 보이게 해서 스크롤해도 따라오게 함 */
.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 0;
  display: flex;
  justify-content: flex-end;
}
.sheet-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: 16px 16px 0 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(24, 24, 28, 0.35);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.sheet-close:hover { transform: rotate(90deg); }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-hero .panel-top { margin-bottom: 4px; }
.sheet-hero .panel-no { font-size: 56px; }
.sheet h2 { margin: 16px 0 4px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.055em; }
.sheet h2:focus { outline: none; }
.sheet-hero .panel-tag { margin-bottom: 28px; }
.sheet-hero img { width: 100%; border-radius: 18px 18px 0 0; }

.sheet-body { padding: 8px 40px 40px; }
.sblock { margin-top: 32px; }
.sblock h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sblock h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pac); }
.sblock > p { margin: 0 0 10px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.sblock > p:last-child { margin-bottom: 0; }
.sblock .panel-uses { margin: 0; }
.sblock .panel-uses li { background: var(--pbg); }
.sblock > p.spec { font-size: 15px; }

/* 이렇게 활용해요 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.steps li {
  position: relative;
  padding: 16px 18px 16px 66px;
  border-radius: 16px;
  background: var(--pbg);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pac);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.steps b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.steps b small {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--pac);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.steps p { margin: 4px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* 게임으로 체험해요 — 흰 바탕에 교구 색 테두리 */
.game {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--pac);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.game:hover { transform: translateY(-2px); background: var(--pbg); }
.game-ico {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--pac);
  color: #fff;
}
.game-ico svg { width: 28px; height: 28px; }
.game-text { min-width: 0; }
.game-text b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.game-text span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.game i {
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pbg);
  color: var(--pac);
  transition: background 0.2s, color 0.2s;
}
.game:hover i { background: var(--pac); color: #fff; }
.game i svg { width: 14px; height: 14px; }
.sblock .panel-actions { margin: 0; }
.sblock .shop { height: 52px; padding-left: 20px; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--ink); }

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  transition: transform 0.3s var(--ease);
}
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video:hover .video-play { transform: scale(1.08); }

.smats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.smats a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.smats a:hover { background: var(--line); }
.smats .ftype { flex: none; }
.smat-title { flex: 1; min-width: 0; }
.smats .tile-size { flex: none; }
.smats a > svg { flex: none; width: 16px; height: 16px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .collage { max-width: 640px; }
  .collage-photo { top: 30%; }
  .s1 { left: 0; top: -2%; width: 21%; }
  .s3 { right: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .br-desk { display: none; }
  /* 바로가기는 옆으로 밀어서 보기 */
  .jump {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(208px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .jump::-webkit-scrollbar { display: none; }
  .jump-item { scroll-snap-align: start; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel { grid-template-columns: 1fr; }
  .panel .panel-media,
  .panel:nth-child(even) .panel-media { order: -1; }
  .panel-media img { width: min(72%, 300px); }
}

@media (max-width: 560px) {
  .top { padding: 8px 0; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark img { width: 30px; }
  .brand-name { font-size: 16px; }
  .nav { padding: 3px; }
  .nav a { padding: 7px 11px; font-size: 13px; }
  .hero-lede { font-size: 16px; }
  /* 좁은 화면에서는 억지 줄바꿈을 풀어 한 단어만 홀로 남지 않게 */
  .br-wide { display: none; }
  .btn { height: 52px; padding: 0 22px; font-size: 15px; }
  .st { padding: 18px 18px 20px; }
  .tiles { grid-template-columns: 1fr; }
  .shop { height: 46px; flex: 1 1 auto; }
  .shop i { margin-left: auto; }
  .more { width: 100%; justify-content: space-between; padding-left: 22px; }
  .more small { display: none; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .sheet-close { margin: 12px 12px 0 0; }
  .sheet-hero { padding: 28px 22px 0; }
  .sheet-body { padding: 4px 22px 32px; }
  .steps li { padding: 14px 16px 14px 60px; }
  .steps li::before { left: 14px; width: 34px; height: 34px; }
  .game { gap: 12px; padding: 14px; }
  .game-ico { width: 44px; height: 44px; border-radius: 14px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

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