/* 꼬닥이 홍보 홈페이지 v3 — 앱 F안(포근한 일러스트)과 같은 톤.
   크림 바탕 · 둥근 카드 + 부드러운 그림자 · 젤리 버튼 · 주아체(Jua, SIL OFL, 사이트에 쓰는 글자만 담은 woff2) 제목.
   외부 글꼴·추적 스크립트 없음. 이미지는 비율 고정(height:auto + aspect-ratio)으로 찌그러지지 않는다. */
@font-face {
  font-family: "Jua";
  src: url("Jua-site.woff2") format("woff2");
  font-display: swap;
}
:root {
  --ink: #3a2d4f;
  --paper: #fff6ec;
  --shell: #f3ebf4;
  --mint: #e8f8f1;
  --mint-d: #2f9a73;
  --pink: #f7849f;
  --pink-d: #e5677f;
  --cyan: #5cc6b0;
  --yellow: #fdc15a;
  --purple: #8e7cf0;
  --orange: #ffa36c;
  --muted: #6f6385;
  --line: #f0e2d0;
  --g-common: #a19daf;
  --g-uncommon: #3d8bff;
  --g-rare: #9b5cff;
  --g-unique: #f0475a;
  --g-epic: #ffc21a;
  --shadow: 0 10px 28px rgba(110, 74, 58, .12), 0 2px 6px rgba(110, 74, 58, .08);
  --shadow-lg: 0 24px 60px rgba(90, 60, 110, .20), 0 4px 12px rgba(90, 60, 110, .10);
  --round: "Jua", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .round { font-family: var(--round); font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── 상단 바 (반투명 흰 띠) ── */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 250, 244, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(240, 226, 208, .9);
}
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 1.3rem/1 var(--round); white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow); }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.bar nav a { text-decoration: none; padding: 7px 12px; border-radius: 99px; color: var(--muted); font-weight: 700; }
.bar nav a:hover { background: var(--shell); color: var(--ink); }
.bar nav a.lang { background: var(--ink); color: #fff; margin-left: 6px; }
.bar nav a.lang:hover { background: var(--pink-d); }

/* ── 젤리 버튼 ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; min-height: 54px; border-radius: 18px;
  background: linear-gradient(180deg, #ffd27c, var(--yellow)); color: var(--ink);
  box-shadow: 0 6px 0 #e3a43a, 0 12px 22px rgba(227, 164, 58, .3);
  font: 1.08rem/1 var(--round); text-decoration: none; white-space: nowrap;
}
.btn.ghost { background: linear-gradient(180deg, #fff, #fbf3ff); box-shadow: 0 6px 0 #e4d7ee, 0 12px 22px rgba(142, 124, 240, .18); }
.btn small {
  font: 700 .72rem/1 var(--sans); background: rgba(58, 45, 79, .1); color: var(--ink); padding: 5px 8px; border-radius: 99px;
}

/* ── 히어로 ── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 380px at 88% 18%, rgba(253, 193, 90, .32), transparent 70%),
    radial-gradient(620px 420px at 6% 92%, rgba(92, 198, 176, .22), transparent 70%),
    linear-gradient(160deg, #fff6ec 0%, #ffe6ee 52%, #ece6ff 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 84px;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--pink-d);
  font: .95rem/1 var(--round); padding: 9px 14px; border-radius: 99px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.12; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--pink-d); }
.hero .lead { font-size: 1.14rem; margin: 0 0 30px; max-width: 31em; color: #574a6b; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .note { margin: 22px 0 0; font-size: .9rem; color: var(--muted); }

/* 실제 앱 화면을 담는 휴대폰 + 떠다니는 꼬닥이 */
.phone-stage { position: relative; justify-self: center; width: 300px; }
.phone {
  position: relative; width: 100%; border-radius: 46px; background: #fff; padding: 10px;
  box-shadow: var(--shadow-lg); transform: rotate(2deg);
}
.phone img { width: 100%; aspect-ratio: 540 / 1168; object-fit: cover; border-radius: 37px; }
.float { position: absolute; width: 112px; filter: drop-shadow(0 10px 14px rgba(90, 60, 110, .18)); animation: bob 4s ease-in-out infinite; }
.float.a { left: -78px; top: 70px; }
.float.b { right: -70px; bottom: 120px; width: 120px; animation-delay: -2s; }
.float.c { left: -54px; bottom: 26px; width: 96px; animation-delay: -1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.badge {
  position: absolute; right: -18px; top: 26px; background: #fff; color: var(--ink);
  padding: 10px 14px; border-radius: 16px; box-shadow: var(--shadow); font: 1rem/1.2 var(--round); transform: rotate(5deg);
}

/* ── 한눈에 보기 ── */
.stats { margin-top: -38px; position: relative; z-index: 2; }
.stats ul {
  list-style: none; margin: 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center;
  background: #fff; border-radius: 26px; box-shadow: var(--shadow);
}
.stats b { display: block; font: 1.6rem/1.2 var(--round); }
.stats li:nth-child(1) b { color: var(--pink-d); }
.stats li:nth-child(2) b { color: var(--mint-d); }
.stats li:nth-child(3) b { color: var(--purple); }
.stats li:nth-child(4) b { color: #e39a26; }
.stats span { font-size: .9rem; color: var(--muted); }

/* ── 섹션 공통 ── */
section.block { padding: 96px 0; }
section.block.tint { background: linear-gradient(180deg, #fbf2ff, #f3ebf4); }
section.block.mint { background: linear-gradient(180deg, #effbf6, var(--mint)); }
.head { max-width: 680px; margin: 0 0 44px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font: .95rem/1 var(--round); color: var(--pink-d); background: #ffe9ef;
  padding: 7px 13px; border-radius: 99px; margin: 0 0 14px;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.25; margin: 0 0 12px; }
.head p { margin: 0; color: var(--muted); }

/* ── 기능 카드 ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; }
.card .ico { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.75rem; border-radius: 20px; margin-bottom: 16px; }
.card:nth-child(6n+1) .ico { background: #fff1d6; }
.card:nth-child(6n+2) .ico { background: #ffe4eb; }
.card:nth-child(6n+3) .ico { background: var(--mint); }
.card:nth-child(6n+4) .ico { background: #ece6ff; }
.card:nth-child(6n+5) .ico { background: #ffe9dc; }
.card:nth-child(6n+6) .ico { background: #e3f0ff; }
.card h3 { font-size: 1.32rem; line-height: 1.35; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card a { color: var(--pink-d); font-weight: 700; }

/* ── 위젯 3종 ── */
.widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.widgets figure { margin: 0; text-align: center; }
.shot {
  border-radius: 32px; background: #fff; padding: 8px; box-shadow: var(--shadow-lg);
}
.shot img { width: 100%; aspect-ratio: 540 / 1168; object-fit: cover; border-radius: 25px; }
.widgets figcaption { margin-top: 16px; }
.widgets figcaption b { display: block; font: 1.25rem/1.3 var(--round); }
.widgets figcaption span { color: var(--muted); font-size: .95rem; }

/* ── 진화 ── */
.evo { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 4px; }
.evo figure { margin: 0; text-align: center; width: 122px; }
.evo img { width: 104px; margin: 0 auto; aspect-ratio: 1; }
.evo figcaption { font: 1.05rem/1.2 var(--round); }
.evo .arrow { font: .8rem/1.2 var(--sans); color: var(--muted); background: #fff; border-radius: 99px; padding: 6px 10px; box-shadow: var(--shadow); white-space: nowrap; }
.branches { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branch { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 18px 14px 20px; text-align: center; }
.branch .cond { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--muted); background: var(--shell); border-radius: 99px; padding: 4px 12px; }
.branch .pair { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; }
.branch figure { margin: 0; width: 120px; }
.branch img { width: 100px; margin: 0 auto; aspect-ratio: 1; }
.branch figcaption { font: 1.05rem/1.2 var(--round); }
.branch .to { color: var(--muted); font-size: 1.2rem; }
.branch figure.last img { filter: drop-shadow(0 0 10px rgba(253, 193, 90, .65)); }

/* ── 등급 ── */
.grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grade {
  --g: var(--g-common);
  background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 18px 14px 20px; text-align: center;
  border-top: 6px solid var(--g); position: relative;
}
.grade.uncommon { --g: var(--g-uncommon); }
.grade.rare { --g: var(--g-rare); }
.grade.unique { --g: var(--g-unique); }
.grade.epic { --g: var(--g-epic); background: linear-gradient(180deg, #fffaf0, #fff); }
.grade .chip { display: inline-block; color: #fff; background: var(--g); border-radius: 99px; padding: 4px 12px; font: 1rem/1.3 var(--round); }
.grade.epic .chip { color: #5b4300; }
.grade .egg { width: 76px; margin: 10px auto 0; aspect-ratio: 1; }
.grade .count { font-size: .85rem; color: var(--muted); margin: 2px 0 8px; }
.grade ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; }
.grade li { width: 33.3%; min-width: 58px; font-size: .78rem; line-height: 1.2; color: var(--muted); }
.grade li img { width: 56px; margin: 0 auto; aspect-ratio: 1; }
.grade.unique li, .grade.epic li { width: 50%; }
.grade.unique li img, .grade.epic li img { width: 76px; }
.rules { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule { background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); font-size: .96rem; color: var(--muted); }
.rule b { display: block; color: var(--ink); font: 1.15rem/1.3 var(--round); margin-bottom: 4px; }
.rule a { color: var(--pink-d); font-weight: 700; }

/* ── 스크린샷 갤러리 (가로 스크롤 + ◀ ▶ 버튼은 assets/gallery.js, 스크립트 없이도 동작) ── */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px 8px 26px 4px; scrollbar-width: thin; scrollbar-color: rgba(58, 45, 79, .25) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img {
  width: 100%; aspect-ratio: 540 / 1168; object-fit: cover;
  border-radius: 28px; background: #fff; border: 7px solid #fff; box-shadow: var(--shadow);
}
.gallery figcaption { margin-top: 12px; text-align: center; font: 1.05rem/1.3 var(--round); }
.hint { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gallery-nav { display: flex; gap: 12px; }
.gallery-nav[hidden] { display: none; }
.gallery-nav button {
  width: 50px; height: 50px; display: grid; place-items: center; cursor: pointer; border: 0; border-radius: 18px;
  font: 1rem/1 var(--sans); color: var(--ink); background: linear-gradient(180deg, #ffd27c, var(--yellow));
  box-shadow: 0 5px 0 #e3a43a; transition: transform .08s, box-shadow .08s;
}
.gallery-nav button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #e3a43a; }
.gallery-nav button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.gallery-nav button:disabled { cursor: default; opacity: .4; }

/* ── 온디바이스 ── */
.privacy-card { background: #fff; border-radius: 32px; box-shadow: var(--shadow); padding: 40px; }
.privacy-card .head { margin-bottom: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell { background: var(--mint); border-radius: 22px; padding: 20px; font-size: .95rem; color: #4f5f58; }
.cell b { display: block; font: 1.15rem/1.3 var(--round); color: var(--ink); margin-bottom: 4px; }
.cell .ico { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; display: block; }
.more { margin: 24px 0 0; font-weight: 700; }
.more a { color: var(--mint-d); text-underline-offset: 3px; }

/* ── 시작하기 + 마무리 CTA ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 26px; counter-increment: s; }
.step::before {
  content: counter(s); display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px;
  background: linear-gradient(180deg, #ff9db5, var(--pink)); color: #fff; border-radius: 14px; font: 1.3rem/1 var(--round);
}
.step b { display: block; font: 1.25rem/1.3 var(--round); margin-bottom: 4px; }
.step span { color: var(--muted); font-size: .96rem; }
.step a { color: var(--pink-d); font-weight: 700; }
.final {
  margin-top: 64px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .35), transparent 70%),
    linear-gradient(135deg, #b9a8ff, var(--pink));
  color: #fff; border-radius: 32px; box-shadow: var(--shadow-lg); padding: 34px 38px;
}
.final h2 { margin: 0 0 4px; }
.final p { margin: 0; opacity: .95; }
.final img { width: 88px; height: 88px; border-radius: 24px; box-shadow: var(--shadow); }
.final .text { display: flex; gap: 20px; align-items: center; }
.final .pets { display: flex; gap: 0; }
.final .pets img { width: 84px; height: 84px; box-shadow: none; border-radius: 0; }

/* ── 푸터 ── */
footer.site { background: var(--ink); color: #dcd5ea; padding: 34px 0; font-size: .92rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: var(--yellow); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* ── 반응형 ── */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; }
  .phone-stage { width: 250px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grades { grid-template-columns: repeat(3, 1fr); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar nav a:not(.lang) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; padding-bottom: 76px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .lead { font-size: 1.04rem; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .phone-stage { width: 220px; }
  .float.a { left: -64px; width: 88px; }
  .float.b { right: -60px; width: 92px; }
  .float.c { left: -44px; width: 76px; }
  .badge { right: -26px; font-size: .88rem; }
  .stats ul { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  section.block { padding: 64px 0; }
  .head { margin-bottom: 30px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; flex-direction: row; gap: 16px; align-items: flex-start; }
  .card .ico { flex: 0 0 52px; width: 52px; height: 52px; margin: 0; font-size: 1.5rem; }
  .widgets { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .evo figure { width: 86px; }
  .evo img { width: 76px; }
  .evo .arrow { font-size: .72rem; padding: 4px 8px; }
  .branches { grid-template-columns: 1fr; }
  .grades { grid-template-columns: repeat(2, 1fr); }
  .grade.epic { grid-column: 1 / -1; }
  .gallery { grid-auto-columns: 62vw; gap: 14px; }
  .privacy-card { padding: 24px 18px; }
  .grid4 { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .final { margin-top: 44px; padding: 26px 22px; }
  .final .text { flex-direction: column; align-items: flex-start; gap: 14px; }
  .final .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .float { animation: none; } .gallery-nav button { transition: none; } }
