/* ---------- 디자인 토큰 ---------- */
:root {
  --bg: #fbf9f4;          /* 종이 */
  --bg-subtle: #f3efe5;
  --surface: #ffffff;
  --text: #1d1b18;        /* 잉크 */
  --text-muted: #615b52;
  --border: #1d1b18;
  --border-soft: #ddd6c8;
  --accent: #2f6fd0;      /* 빗방울 파랑 */
  --highlight: #ffe867;   /* 형광펜 */
  --blush: #ffb4b4;

  --hand: "Gaegu", "Noto Sans KR", cursive;
  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;  /* 손으로 그린 듯한 모서리 */
  --shadow: 4px 4px 0 var(--border);
  --header-h: 68px;
  --container: 1100px;

  color-scheme: light;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2.5px dashed var(--accent); outline-offset: 4px; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- 유령 ---------- */
.ghost { display: block; overflow: visible; }
.ghost-body { fill: #fff; stroke: var(--border); stroke-width: 3.5; stroke-linejoin: round; }
.ghost-eye { fill: var(--text); }
.ghost-blush { fill: var(--blush); opacity: 0.85; }
.ghost-line { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--border-soft);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo .ghost { width: 28px; height: 33px; transform: rotate(-8deg); }
.logo .ghost-body { stroke-width: 7; }
.logo .ghost-blush, .logo .ghost-line { display: none; }
.logo .ghost-eye { transform-box: fill-box; transform-origin: center; transform: scale(1.5); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 6px 12px;
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover { background: linear-gradient(transparent 55%, var(--highlight) 55%); }

@media (max-width: 640px) {
  .nav-link { display: none; }
}

@media (max-width: 360px) {
  .logo { font-size: 23px; }
  .btn-sm { padding: 0 12px; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  padding: 0 26px;
  border: 2px solid var(--border);
  border-radius: var(--wobble);
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--border); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--border); }

.btn-ghost { background: var(--surface); color: var(--text); }

.btn-sm {
  height: 40px;
  margin-left: 6px;
  padding: 0 16px;
  font-size: 19px;
  box-shadow: 3px 3px 0 var(--border);
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 56px;
}

/* 비 내리는 배경 */
.rain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='160'%3E%3Cg stroke='%237aa7e0' stroke-width='2.2' stroke-linecap='round' fill='none'%3E%3Cpath d='M20 14l-5 16'/%3E%3Cpath d='M92 40l-5 16'/%3E%3Cpath d='M54 92l-5 16'/%3E%3Cpath d='M124 118l-5 16'/%3E%3Cpath d='M10 132l-4 12'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 95%);
  mask-image: linear-gradient(#000 40%, transparent 95%);
  animation: rain 9s linear infinite;
  pointer-events: none;
}
@keyframes rain {
  from { background-position: 0 0; }
  to { background-position: -45px 160px; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  padding: 2px 14px;
  border: 2px solid var(--border);
  border-radius: var(--wobble);
  background: var(--surface);
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-2deg);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.hl {
  padding: 0 0.12em;
  background: linear-gradient(100deg, transparent 2%, var(--highlight) 4%, var(--highlight) 96%, transparent 98%) 0 72% / 100% 42% no-repeat;
}

.hero-lead {
  max-width: 32em;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-art {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 64px;
}
.hero-art .ghost { width: 190px; height: auto; animation: float 4.5s ease-in-out infinite; }
.hero-art .shadow {
  width: 120px;
  height: 14px;
  margin-top: 10px;
  border-radius: 50%;
  background: rgba(29, 27, 24, 0.12);
  animation: shadow 4.5s ease-in-out infinite;
}

.bubble {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 30px 30px 30px 6px / 26px 26px 26px 6px;
  background: var(--surface);
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  transform: rotate(4deg);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.8); opacity: 0.6; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 64px 0 0;
  padding-top: 28px;
  border-top: 2px dashed var(--border-soft);
}
.stat { display: flex; flex-direction: column-reverse; }
.stat dd {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
}
.stat dt { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 820px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; justify-self: start; padding-top: 0; padding-right: 180px; }
  .hero-art .ghost { width: 96px; }
  .hero-art .shadow { width: 60px; height: 8px; }
  .bubble { top: 6px; right: 0; font-size: 19px; }
  .stats { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .stat { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- 섹션 공통 ---------- */
.section { padding: 96px 0; }

.section-label {
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

@media (max-width: 820px) {
  .section { padding: 64px 0; }
}

/* ---------- 앱 ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
  margin-top: 40px;
}

.app-card {
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 18px 24px 20px 26px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--border);
  transition: transform 0.15s;
}
.tilt-0 { transform: rotate(-0.6deg); }
.tilt-1 { transform: rotate(0.5deg); }
.tilt-2 { transform: rotate(0.4deg); }
.tilt-3 { transform: rotate(-0.5deg); }
.app-card:hover { transform: rotate(0) translateY(-3px); }

.app-banner {
  width: 100%;
  height: auto; /* img의 height 속성이 고정 높이로 적용돼 좌우가 잘리지 않도록 */
  aspect-ratio: 832 / 406;
  object-fit: contain;
  border-bottom: 2px solid var(--border);
  background: var(--bg-subtle);
}

.app-card-body { padding: 20px 22px 22px; }

.app-head { display: flex; align-items: center; gap: 14px; }
.app-head h3 { font-size: 19px; font-weight: 750; }

.app-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg-subtle);
}

.app-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 0 6px;
  background: var(--highlight);
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.app-card-body > p { margin-top: 14px; color: var(--text-muted); font-size: 15.5px; }

.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.store-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.12s;
}
.store-btn:hover { background: var(--highlight); }

.sub-title {
  margin-top: 72px;
  font-family: var(--hand);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  font-weight: 700;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 20px;
}

.mini-app {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.12s;
}
.mini-app:hover { border-color: var(--border); }
.mini-app .app-icon { width: 52px; height: 52px; border-radius: 13px; }
.mini-app-text { min-width: 0; }
.mini-app h4 { margin: 0;  font-size: 15px; font-weight: 700; line-height: 1.4; }
.mini-app p { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }

.mini-links { display: flex; gap: 10px; margin-top: 4px; }
.mini-link {
  display: inline-block;
  margin: -6px -4px;
  padding: 6px 4px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.mini-link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .app-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 소개 (공책) ---------- */
.section-note { background: var(--bg-subtle); border-block: 2px dashed var(--border-soft); }

.note {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: 44px 44px 44px 72px;
  border: 2px solid var(--border);
  border-radius: 6px 10px 8px 12px;
  background:
    linear-gradient(90deg, transparent 50px, #f2a7a7 50px, #f2a7a7 52px, transparent 52px),
    repeating-linear-gradient(transparent 0 33px, #dfe7f3 33px 34px),
    var(--surface);
  background-position: 0 0, 0 18px, 0 0;
  box-shadow: 6px 6px 0 var(--border);
  transform: rotate(-0.4deg);
}
.note .section-title { font-family: var(--hand); font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); font-weight: 700; }
.prose { margin-top: 18px; font-size: 17px; line-height: 2; }
.prose p + p { margin-top: 12px; }
.note-en {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--border-soft);
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .note { padding: 32px 22px 32px 46px; background-position: -22px 0, 0 18px, 0 0; }
}

/* ---------- 문의 (편지) ---------- */
.letter {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: 48px 44px 56px;
  border: 2px dashed var(--border);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}
.letter .section-title { font-family: var(--hand); font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); font-weight: 700; }
.letter-note { max-width: 30em; margin: 14px auto 0; color: var(--text-muted); }

.letter-email {
  display: inline-block;
  margin-top: 26px;
  padding: 0 8px;
  background: linear-gradient(transparent 58%, var(--highlight) 58%);
  font-family: var(--hand);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.letter-email:hover { text-decoration: underline wavy var(--accent) 2px; text-underline-offset: 6px; }

.letter-ghost {
  position: absolute;
  right: 28px;
  bottom: -26px;
  transform: rotate(10deg);
}
.letter-ghost .ghost { width: 64px; }

@media (max-width: 640px) {
  .letter { padding: 36px 20px 52px; }
  .letter-ghost { right: 16px; bottom: -22px; }
  .letter-ghost .ghost { width: 50px; }
}

/* ---------- 푸터 ---------- */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: 2px dashed var(--border-soft);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}

.logo-sm { color: var(--text); font-size: 22px; }
.logo-sm .ghost { width: 22px; height: 26px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-privacy { color: var(--text); font-weight: 700; }

.biz-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 20px 0 0;
  line-height: 1.6;
}
.biz-info div { display: flex; gap: 6px; }
.biz-info div:not(:last-child)::after {
  content: "";
  align-self: center;
  width: 1px;
  height: 11px;
  margin: 0 12px;
  background: var(--border-soft);
}
.biz-info dt { font-weight: 600; }
.biz-info dd { margin: 0; }

.copyright { margin-top: 14px; }

/* ---------- 문서 페이지 (개인정보처리방침) ---------- */
.doc { padding: 64px 0 96px; }
.doc .container { max-width: 760px; }

.doc h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.doc-meta { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

.doc-intro {
  margin-top: 28px;
  padding: 20px 24px;
  border: 2px solid var(--border);
  border-radius: 14px 18px 16px 20px;
  background: var(--surface);
}

.toc { margin-top: 28px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; color: var(--text-muted); }
.toc li { break-inside: avoid; padding: 2px 0; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
}

.doc section { margin-top: 52px; }
.doc h2 { margin-bottom: 14px; font-size: 21px; font-weight: 750; }
.doc section > p + p, .doc section > ul + p, .doc section > div + p { margin-top: 14px; }
.doc section ul { margin: 12px 0 0; padding-left: 1.25em; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }

.transfer {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface);
}
.transfer h3 { font-size: 17px; font-weight: 700; }

.transfer dl, .officer {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 8px 16px;
  margin: 14px 0 0;
}
.transfer dt, .officer dt { color: var(--text-muted); font-weight: 600; }
.transfer dd, .officer dd { margin: 0; }

@media (max-width: 560px) {
  .transfer { padding: 18px; }
  .transfer dl, .officer { grid-template-columns: 1fr; gap: 0; }
  .transfer dd, .officer dd { margin-bottom: 10px; }
}

/* ---------- 404 ---------- */
.notfound { padding: 112px 0; text-align: center; }
.notfound .ghost { width: 110px; margin: 0 auto 20px; animation: float 4.5s ease-in-out infinite; }
.notfound h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; }
.notfound p:not(.section-label) { margin: 12px 0 32px; color: var(--text-muted); }

/* =========================================================
   비 오는 날 창가 테마
   ========================================================= */
:root {
  --sky-top: #c9dbef;
  --sky-bottom: #eef4fb;
  --note-yellow: #fff1a1;
  --note-pink: #ffdbe0;
  --note-blue: #d8eafd;
  --night: #1b2230;
}

body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 유령 옷자락 모양 섹션 경계 */
.wave-top { position: relative; }
.wave-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -21px;
  height: 22px;
  background: inherit;
  background-image: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='22'%3E%3Cpath d='M0 22V12C7 2 14 2 21 10C28 18 35 18 42 10C47 4 52 4 56 8V22Z'/%3E%3C/svg%3E") repeat-x bottom / 56px 22px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='22'%3E%3Cpath d='M0 22V12C7 2 14 2 21 10C28 18 35 18 42 10C47 4 52 4 56 8V22Z'/%3E%3C/svg%3E") repeat-x bottom / 56px 22px;
  pointer-events: none;
}
.section { background-color: var(--bg); }
.section-subtle { background-color: var(--bg-subtle); border-block: 0; }

/* ---------- 히어로 ---------- */
.hero { padding: 72px 0 96px; overflow: visible; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; }

.scene {
  position: relative;
  height: 420px;
  isolation: isolate;
}

.window {
  position: absolute;
  inset: 0 18px 46px;
  border: 3px solid var(--border);
  border-radius: 22px 26px 18px 28px;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  overflow: hidden;
  box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 13px var(--border);
}

.glass {
  position: absolute;
  inset: 13px;
  border-radius: 10px;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='120'%3E%3Cg stroke='%23ffffff' stroke-width='2' stroke-linecap='round' opacity='.9'%3E%3Cpath d='M14 6l-4 16'/%3E%3Cpath d='M62 30l-4 16'/%3E%3Cpath d='M36 74l-4 16'/%3E%3Cpath d='M82 92l-3 12'/%3E%3C/g%3E%3C/svg%3E");
  animation: rain-fall 1.1s linear infinite;
}
@keyframes rain-fall {
  to { background-position: -30px 120px; }
}

/* 유리창을 타고 흐르는 물방울 */
.drop {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(255, 255, 255, 0.35);
  animation: drip 7s ease-in infinite;
}
.drop:nth-child(1) { left: 14%; animation-delay: 0s; }
.drop:nth-child(2) { left: 32%; animation-delay: 2.4s; animation-duration: 9s; }
.drop:nth-child(3) { left: 58%; animation-delay: 1.1s; }
.drop:nth-child(4) { left: 74%; animation-delay: 3.6s; animation-duration: 8s; }
.drop:nth-child(5) { left: 88%; animation-delay: 5s; }
.drop:nth-child(6) { left: 46%; animation-delay: 4.3s; animation-duration: 10s; }
@keyframes drip {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translateY(120px); }
  55% { transform: translateY(130px); }
  100% { transform: translateY(380px); opacity: 0.2; }
}

.mullion { position: absolute; background: var(--border); }
.mullion-v { top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); }
.mullion-h { left: 0; right: 0; top: 48%; height: 3px; }

.sill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 22px;
  border: 3px solid var(--border);
  border-radius: 6px 8px 6px 10px;
  background: #fff;
  z-index: 3;
}

.ghost-btn {
  position: absolute;
  left: 22%;
  bottom: 40px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: float 4.5s ease-in-out infinite;
}
.ghost-btn .ghost { width: 150px; height: auto; }
.ghost-btn:focus-visible { outline-offset: 2px; border-radius: 40%; }
.ghost-btn.boing .ghost { animation: boing 0.5s ease; }
@keyframes boing {
  30% { transform: scale(1.08, 0.92); }
  60% { transform: scale(0.96, 1.06); }
}
.ghost-eyes { transition: transform 0.12s ease-out; }
.scene .ghost-eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink {
  0%, 46%, 50%, 100% { transform: scaleY(1); }
  48% { transform: scaleY(0.1); }
}

.book {
  position: absolute;
  left: calc(22% + 20px);
  bottom: 44px;
  width: 112px;
  z-index: 4;
  fill: #fff;
  stroke: var(--border);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.book .book-line { fill: none; stroke-width: 1.6; stroke-linecap: round; }

.mug {
  position: absolute;
  right: 16%;
  bottom: 48px;
  width: 54px;
  z-index: 4;
  fill: #fff;
  stroke: var(--border);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.mug .mug-handle, .mug .steam { fill: none; stroke-linecap: round; }
.mug .steam { stroke: var(--text-muted); stroke-width: 2; animation: steam 2.6s ease-in-out infinite; }
.mug .steam-2 { animation-delay: 1.3s; }
@keyframes steam {
  0%, 100% { opacity: 0; transform: translateY(4px); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.scene .bubble {
  top: 34px;
  right: 34px;
  z-index: 5;
  max-width: 220px;
  white-space: normal;
}
.bubble.pop { animation: pop 0.35s ease; }
@keyframes pop {
  0% { transform: rotate(4deg) scale(0.85); }
  70% { transform: rotate(4deg) scale(1.06); }
  100% { transform: rotate(4deg) scale(1); }
}

/* 포스트잇 숫자 */
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 56px 0 0;
}
.post-it {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  min-height: 132px;
  padding: 26px 22px 18px;
  background: var(--note-yellow);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 10px 18px -8px rgba(0, 0, 0, 0.18);
  transform: rotate(-1.6deg);
}
.post-it:nth-child(2) { background: var(--note-pink); transform: rotate(1.4deg) translateY(6px); }
.post-it:nth-child(3) { background: var(--note-blue); transform: rotate(-0.8deg); }
.post-it::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 72px;
  height: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateX(-50%) rotate(-3deg);
}
.post-it dd {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}
.post-it dt { margin-top: 8px; color: #4d473f; font-size: 14.5px; }

/* ---------- 폴라로이드 대표 앱 ---------- */
.polaroids {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 44px;
  margin-top: 48px;
}
.polaroid {
  position: relative;
  padding: 14px 14px 20px;
  background: #fff;
  border: 1.5px solid #e6e0d4;
  border-radius: 6px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05), 0 18px 34px -16px rgba(0, 0, 0, 0.28);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease;
}
.polaroid:nth-child(even) { margin-top: 56px; }
.polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 1;
  width: 96px;
  height: 26px;
  background: rgba(255, 232, 103, 0.75);
  transform: translateX(-50%) rotate(-2.5deg);
}
.polaroid .app-banner { border: 1.5px solid var(--border); border-radius: 4px; }
.polaroid .app-card-body { padding: 18px 6px 0; }

/* ---------- 스티커 벽 ---------- */
.stickers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 36px 20px;
  margin-top: 32px;
}
.sticker { text-align: center; }
.sticker-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border: 4px solid #fff;
  border-radius: 22px;
  outline: 1.5px solid #ddd6c8;
  background: #fff;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease;
}
.sticker:hover .sticker-icon { transform: rotate(0deg) translateY(-4px) scale(1.05); }
.sticker h4 { margin: 14px 0 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.sticker p { margin-top: 2px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.sticker .mini-links { justify-content: center; gap: 12px; }

/* ---------- 공책 소개 ---------- */
.note {
  padding-left: 84px;
  background:
    radial-gradient(circle at 26px 50%, var(--bg) 7px, var(--border) 7.5px, var(--border) 9px, transparent 9.5px) 0 14px / 52px 40px repeat-y,
    linear-gradient(90deg, transparent 62px, #f2a7a7 62px, #f2a7a7 64px, transparent 64px),
    repeating-linear-gradient(transparent 0 33px, #dfe7f3 33px 34px),
    var(--surface);
  background-position: 0 14px, 0 0, 0 18px, 0 0;
}

/* ---------- 에어메일 편지 ---------- */
.airmail {
  max-width: 820px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 12px;
  background: repeating-linear-gradient(-45deg, #e5625a 0 14px, #fff 14px 24px, #4f86d9 24px 38px, #fff 38px 48px);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.6deg);
}
.airmail .letter {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 56px 40px 52px;
  border: 0;
  border-radius: 6px;
  background: #fffdf8;
  text-align: center;
}
.stamp {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 92px;
  background: var(--note-blue);
  -webkit-mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 10px 10px;
  mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 10px 10px;
  transform: rotate(6deg);
}
.stamp .ghost { width: 46px; }
.postmark {
  position: absolute;
  top: 34px;
  right: 82px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(47, 111, 208, 0.55);
  border-radius: 50%;
  color: rgba(47, 111, 208, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-14deg);
}

/* ---------- 비 오는 밤 푸터 ---------- */
.site-footer {
  margin-top: 0;
  padding-top: 24px;
  background-color: var(--night);
  border-top: 0;
  color: #b9c0cc;
  overflow: hidden;
}
.night-rain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='140'%3E%3Cg stroke='%2390a6c8' stroke-width='1.6' stroke-linecap='round' opacity='.35'%3E%3Cpath d='M18 10l-4 14'/%3E%3Cpath d='M80 44l-4 14'/%3E%3Cpath d='M46 96l-4 14'/%3E%3Cpath d='M108 118l-3 10'/%3E%3C/g%3E%3C/svg%3E");
  animation: rain-fall 1.6s linear infinite;
  pointer-events: none;
}
.site-footer .container { position: relative; }
.bye { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 28px; }
.bye .ghost { width: 58px; transform-origin: 50% 90%; animation: wave-hi 2.4s ease-in-out infinite; }
.bye .ghost-body { fill: #f4f6fb; stroke: #f4f6fb; }
.bye .ghost-eye, .bye .ghost-line { fill: var(--night); stroke: var(--night); }
.bye .ghost-line { fill: none; }
.bye p { margin-bottom: 10px; color: #f4f6fb; font-family: var(--hand); font-size: 26px; font-weight: 700; }
@keyframes wave-hi {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
.site-footer .footer-top { border-bottom-color: #343d4f; }
.site-footer .logo-sm, .site-footer .footer-privacy { color: #f4f6fb; }
.site-footer .logo-sm .ghost-body { fill: var(--night); stroke: #f4f6fb; }
.site-footer .logo-sm .ghost-eye { fill: #f4f6fb; }
.site-footer .biz-info div:not(:last-child)::after { background: #3d4659; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { display: none; }
  .scene { width: 100%; max-width: 440px; height: 360px; margin-inline: auto; }
  .ghost-btn .ghost { width: 124px; }
  .book { width: 92px; }
}

@media (max-width: 820px) {
  .polaroids { grid-template-columns: 1fr; gap: 40px; }
  .polaroid:nth-child(even) { margin-top: 0; }
  .notes { grid-template-columns: 1fr; gap: 22px; max-width: 360px; }
  .post-it { min-height: 0; }
}

@media (max-width: 560px) {
  .scene { height: 320px; }
  .window { inset: 0 8px 46px; }
  .scene .bubble { top: 20px; right: 16px; font-size: 19px; }
  .ghost-btn { left: 14%; }
  .book { left: calc(14% + 14px); }
  .stickers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note { padding-left: 58px; background-position: -12px 14px, -14px 0, 0 18px, 0 0; }
  .airmail .letter { padding: 112px 20px 40px; }
  .stamp { right: 50%; margin-right: -38px; top: 16px; }
  .postmark { display: none; }
}

/* ---------- 언어 전환 ---------- */
.lang-switch {
  margin-left: 4px;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { background: var(--highlight); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 360px) {
  .lang-switch { padding: 3px 8px; font-size: 12px; }
}
