/* 탄생캐 — 다꾸 감성 정적 사이트. 종이 바탕, 손글씨, 스티커 칩. */
:root {
  --ink: #1e1a1a; --paper: #fbf7ef; --paper-dot: #ece6da; --muted: #6b5f8a;
  --pink: #ffd9e8; --lav: #e9e3fb; --mint: #d9f3ea; --yellow: #fff0a8; --sky: #dff1fb;
  --w: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; color: var(--ink); background: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1.2px, transparent 1.4px); background-size: 16px 16px; font-size: 17px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .btn, .chip, .tape, .logo, .tab, .toggle, .seg label, .chips span, .how b, .teaser b, .perks li .chip { font-family: 'Jua', 'Noto Sans KR', sans-serif; font-weight: 400; letter-spacing: .2px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.hand { font-family: 'Hi Melody', 'Noto Sans KR', cursive; }
.muted { color: var(--muted); }

/* 공통 스티커 칩/버튼 */
.chip { display: inline-block; font-size: 16px; padding: 3px 13px 2px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); line-height: 1.4; }
.chip.pink { background: var(--pink); } .chip.lav { background: var(--lav); } .chip.mint { background: var(--mint); } .chip.yellow { background: var(--yellow); }
.chip.legend { background: linear-gradient(90deg, #fff3b0, #f6d86a, #fff6c8); }
.chip.fantasy { background: linear-gradient(90deg, #ffd1dc, #d1f4ff, #fff4b3, #e3d1ff); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 20px; padding: 10px 24px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--pink); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.big { font-size: 25px; padding: 14px 34px; transform: rotate(-1.5deg); }
.btn.big:hover { transform: rotate(-1.5deg) translate(-1px, -1px); }
.btn.white { background: #fff; } .btn.lav { background: var(--lav); } .btn.mint { background: var(--mint); } .btn.yellow { background: var(--yellow); }
.btn.sm { font-size: 17px; padding: 6px 14px; box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.tape { display: inline-block; font-size: 16px; padding: 4px 16px 3px; transform: rotate(-2deg);
  background: repeating-linear-gradient(45deg, #fff0a8 0 6px, #fff7d1 6px 12px); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.tape.pink { background: repeating-linear-gradient(45deg, #ffc7dc 0 6px, #ffe3ee 6px 12px); }
.tape.mint { background: repeating-linear-gradient(45deg, #bfeedd 0 6px, #e2f8f0 6px 12px); }

/* 머리 */
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; gap: 12px; }
.logo { font-size: 27px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.nav a { text-decoration: none; font-family: 'Jua', sans-serif; padding: 5px 14px; border-radius: 999px; border: 2px solid transparent; }
.nav a:hover { border-color: var(--ink); background: #fff; }
.lang { font-size: 14px; padding: 4px 12px 3px; margin-left: 6px; cursor: pointer; }

/* 히어로 */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 36px 0 28px; }
.hero h1 { font-size: 56px; line-height: 1.12; margin: 14px 0 16px; }
.hero .sub { font-size: 18px; max-width: 470px; margin: 0 0 24px; line-height: 1.65; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.scatter { position: relative; height: 420px; }
.scatter .st { position: absolute; width: 150px; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 4px 3px rgba(0,0,0,.18)); animation: bob 4s ease-in-out infinite; }
.scatter .st:nth-child(1) { left: 6%; top: 8%; transform: rotate(-8deg); }
.scatter .st:nth-child(2) { right: 4%; top: 2%; width: 170px; transform: rotate(7deg); animation-delay: -1.3s; }
.scatter .st:nth-child(3) { left: 24%; bottom: 6%; width: 165px; transform: rotate(4deg); animation-delay: -2.4s; }
.scatter .st:nth-child(4) { right: 8%; bottom: 10%; width: 120px; transform: rotate(-5deg); animation-delay: -0.6s; }
.scatter .st:nth-child(5) { left: 46%; top: 34%; width: 80px; transform: rotate(12deg); animation-delay: -3s; }
.scatter .say { position: absolute; font-family: 'Hi Melody', cursive; font-size: 21px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 2px 12px; box-shadow: 2px 2px 0 var(--ink); }
.scatter .say.a { left: 2%; top: 58%; transform: rotate(-4deg); } .scatter .say.b { right: 0; top: 44%; transform: rotate(3deg); }
@keyframes bob { 50% { translate: 0 -8px; } }

/* 섹션 공통 */
section.block { padding: 36px 0; }
h2.title { font-size: 32px; margin: 0 0 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.how { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 4px 4px 0 var(--ink); position: relative; }
.how .hd { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.how .hd .chip { flex: 0 0 auto; font-size: 14px; padding: 2px 10px 1px; margin-top: 2px; }
.how b { display: block; font-size: 20px; line-height: 1.3; }
.how p { margin: 0; font-size: 15px; line-height: 1.6; }
.how img { width: 52px; margin: -4px 0 6px; }
.tiers { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.tiers .chip { font-size: 13px; padding: 2px 10px 1px; }

/* 입력 */
.form { max-width: 560px; margin: 0 auto; background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 30px 24px 26px; box-shadow: 5px 5px 0 var(--ink); position: relative; }
.form .tape { position: absolute; left: 50%; top: -14px; transform: translateX(-50%) rotate(-2deg); }
.form h2 { font-size: 28px; margin: 4px 0 14px; text-align: center; }
.field { margin: 14px 0; }
.field label.l, .field .l { display: block; font-family: 'Jua', sans-serif; font-size: 18px; margin-bottom: 6px; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=email], select { border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; background: var(--paper); font-size: 17px; min-width: 0; }
input[type=text]:focus, input[type=email]:focus, select:focus { outline: 3px solid var(--pink); }
select { appearance: auto; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.seg label { padding: 5px 14px; cursor: pointer; font-size: 16px; }
.seg input { display: none; }
.seg input:checked + span { background: var(--pink); display: block; margin: -5px -14px; padding: 5px 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips label { cursor: pointer; }
.chips input { display: none; }
.chips span { display: inline-block; font-weight: 700; font-size: 16px; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.chips input:checked + span { background: var(--pink); box-shadow: 2px 2px 0 var(--ink); }
.form .btn.submit { width: 100%; margin-top: 10px; }
.err { color: #c0392b; font-weight: 700; margin-top: 8px; min-height: 1.3em; font-size: 15px; }
.toggle { padding: 5px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; font-size: 16px; }
.toggle.on { background: var(--yellow); }

/* 로딩 */
.loading { text-align: center; padding: 40px 0; }
.loading .ph { width: 165px; height: 255px; margin: 0 auto 18px; border: 2px dashed var(--ink); border-radius: 12px; background: #fff; position: relative; animation: shake 1.1s ease-in-out infinite; }
.loading .ph::after { content: ''; position: absolute; inset: 24px 24px 60px; border-radius: 50%; background: var(--lav); }
.loading .msg { font-family: 'Hi Melody', cursive; font-size: 28px; min-height: 1.3em; }
@keyframes shake { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* 결과 */
.result { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; }
.result h2 { font-size: 30px; margin: 0 0 16px; }
.result h3 { font-size: 22px; margin: 0 0 10px; }
.cardwrap { position: relative; width: 330px; margin: 0 auto; }
.cardwrap img, .cardwrap canvas { width: 330px; height: 510px; border-radius: 16px; box-shadow: 0 10px 24px rgba(60,40,20,.22); display: block; }
.reveal { animation: pop .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { 0% { transform: scale(.4) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.06) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.layers { list-style: none; padding: 0; margin: 0 0 18px; }
.layers li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1.5px dashed #d9d0e8; font-size: 15px; line-height: 1.5; }
.layers li .k { flex: 0 0 60px; font-family: 'Jua', sans-serif; color: var(--muted); font-size: 15px; }
.layers li img { width: 40px; height: 40px; object-fit: contain; }
.layers li .sw { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--ink); flex: 0 0 26px; }
.pillars { display: flex; gap: 8px; margin: 6px 0 2px; }
.pillars div { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 4px 10px; text-align: center; font-size: 13px; color: var(--muted); }
.pillars div b { display: block; font-size: 22px; color: var(--ink); }
.teaser { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); margin-top: 18px; position: relative; overflow: hidden; }
.teaser b { font-size: 21px; display: block; margin-bottom: 6px; }
.teaser p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.teaser .blur { font-size: 15px; line-height: 1.6; filter: blur(4px); user-select: none; opacity: .75; margin-bottom: 8px; }
.desc { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); margin-top: 18px; }
.desc h4 { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 21px; margin: 0 0 8px; }
.desc p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.7; }
.desc .lock { position: relative; min-height: 86px; margin-top: -6px; }
.desc .lock p { filter: blur(4.5px); user-select: none; opacity: .75; }
.desc .lock .over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-family: 'Jua', sans-serif; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 17px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; }

/* 곧 나올 것 + 미리 등록 */
.soon { background: var(--lav); border-radius: 26px; padding: 28px 22px; }
.soon .cards4 .how { box-shadow: 3px 3px 0 var(--ink); }
.wait { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.perks { list-style: none; padding: 0; margin: 10px 0 0; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 16px; padding: 6px 0; }
.perks li .chip { font-size: 14px; }
.wform { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); }
.wform .field { margin: 10px 0; }
.wform input[type=email] { width: 100%; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 20px; }
.check small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.5; }
.wform .msg { margin-top: 10px; font-weight: 700; min-height: 1.3em; font-size: 15px; }
.wform .msg.ok { color: #1f7a4d; } .wform .msg.bad { color: #c0392b; }
.hp { position: absolute; left: -9999px; }

/* 바닥 */
footer { margin-top: 40px; padding: 26px 0 40px; border-top: 2px dashed #d9d0e8; font-size: 15px; }
footer .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
footer .links a { text-decoration: none; font-family: 'Jua', sans-serif; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1.5px solid #d9d0e8; }
footer .links a:hover { border-color: var(--ink); }
footer .copy { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* 문서 페이지 */
.doc { max-width: 760px; margin: 20px auto 40px; background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 28px 30px 34px; box-shadow: 5px 5px 0 var(--ink); }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .date { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.doc h2 { font-size: 24px; margin: 28px 0 10px; }
.doc h3 { font-size: 19px; margin: 18px 0 6px; }
.doc p, .doc li { font-size: 16px; line-height: 1.75; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0 12px; line-height: 1.5; }
.doc th, .doc td { border: 1.5px solid #cfc6e0; padding: 6px 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--lav); }
.doc .faq-q { font-weight: 700; font-size: 21px; margin-top: 20px; }
.doc .faq-q::before { content: 'Q. '; color: var(--muted); }
.doc details { border-bottom: 1.5px dashed #d9d0e8; padding: 8px 0; }
.doc summary { cursor: pointer; font-family: 'Jua', sans-serif; font-size: 19px; line-height: 1.4; }
.doc details p { margin: 8px 0 4px; }
.doc .callout { background: var(--yellow); border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.7; }

/* 폰 */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding: 18px 0 10px; }
  .hero h1 { font-size: 42px; }
  .scatter { height: 300px; }
  .scatter .st { width: 110px; } .scatter .st:nth-child(2) { width: 125px; } .scatter .st:nth-child(3) { width: 120px; } .scatter .st:nth-child(4) { width: 90px; } .scatter .st:nth-child(5) { width: 60px; }
  .scatter .say { font-size: 20px; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .result { grid-template-columns: 1fr; }
  .wait { grid-template-columns: 1fr; }
  .doc { padding: 20px 16px 26px; }
  .nav a.about { display: none; }
}
@media (max-width: 420px) {
  .cards4 { grid-template-columns: 1fr; }
  .cardwrap, .cardwrap img, .cardwrap canvas { width: 300px; height: auto; }
  .btn.big { font-size: 22px; padding: 12px 24px; }
}
