@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&display=swap');

:root {
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-soft: #ffe8d6;
  --cream: #faf7f2;
  --cream-2: #f6efe4;
  --paper: #fffdf9;
  --ink: #2b211a;
  --ink-2: #5a4a3e;
  --ink-3: #8a7462;
  --pink: #f7a6a0;
  --yellow: #ffe08a;
  --sky: #d7e8f5;
  --radius: 22px;
  --hand: 'Gaegu', 'Pretendard Variable', sans-serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.hand { font-family: var(--hand); font-weight: 700; }
/* 개구체 한글은 글자 간격이 넓어서 제목은 조금 조인다 */
.section-head h2, .section-head .kicker, .feature h3, .promise b, .contact h3, .doc h1, .polaroid figcaption, .phone .sticker, .logo span { letter-spacing: -0.06em; }

/* 발바닥 무늬 배경 */
.paws {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%23efe2cf'%3E%3Cellipse cx='24' cy='30' rx='8' ry='6.5'/%3E%3Cellipse cx='15.5' cy='21' rx='2.8' ry='3.6'/%3E%3Cellipse cx='21' cy='16.5' rx='2.8' ry='3.6'/%3E%3Cellipse cx='27' cy='16.5' rx='2.8' ry='3.6'/%3E%3Cellipse cx='32.5' cy='21' rx='2.8' ry='3.6'/%3E%3Cellipse cx='72' cy='78' rx='8' ry='6.5'/%3E%3Cellipse cx='63.5' cy='69' rx='2.8' ry='3.6'/%3E%3Cellipse cx='69' cy='64.5' rx='2.8' ry='3.6'/%3E%3Cellipse cx='75' cy='64.5' rx='2.8' ry='3.6'/%3E%3Cellipse cx='80.5' cy='69' rx='2.8' ry='3.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ───── 상단바 ───── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(194, 65, 12, 0.08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 10px rgba(194, 65, 12, 0.25); }
.logo span { font: 700 28px/1 var(--hand); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ───── 히어로 ───── */
.hero { padding: 56px 0 90px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 2px dashed #f2c9a0; color: var(--brand-dark);
  font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font: 700 clamp(44px, 6.4vw, 72px)/1.08 var(--hand); margin: 18px 0 14px; letter-spacing: -3px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 16px; z-index: -1;
  background: var(--yellow); border-radius: 8px; transform: rotate(-1.5deg);
}
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 26px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: #fff; padding: 12px 20px 12px 16px; border-radius: 16px;
  box-shadow: 0 6px 0 #000; transition: transform 0.15s, box-shadow 0.15s;
}
.store:hover { transform: translateY(2px); box-shadow: 0 4px 0 #000; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.store.soon { background: var(--paper); color: var(--ink-2); box-shadow: 0 6px 0 #e7dccb; border: 2px solid #e7dccb; }
.trust { margin-top: 18px; color: var(--ink-3); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.trust span::before { content: '✓ '; color: var(--brand); font-weight: 900; }

/* 폴라로이드 무더기 */
.pile { position: relative; height: 600px; }
.polaroid {
  margin: 0;
  position: absolute; width: 250px; background: var(--paper); padding: 12px 12px 0;
  border-radius: 6px; box-shadow: 0 18px 40px rgba(60, 30, 10, 0.18);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1.2);
}
.polaroid:hover { transform: rotate(0deg) scale(1.05) !important; z-index: 9; }
.polaroid img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { font: 700 23px/1 var(--hand); text-align: center; padding: 14px 4px 16px; color: var(--ink); }
.polaroid::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px;
  background: rgba(255, 214, 170, 0.85); transform: rotate(-4deg);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px);
}
.p1 { left: 0; top: 26px; transform: rotate(-7deg); width: 230px; }
.p2 { right: 0; top: 0; transform: rotate(6deg); width: 230px; }
.p3 { left: 4%; top: 300px; transform: rotate(4deg); width: 220px; z-index: 2; }
.p4 { right: 3%; top: 290px; transform: rotate(-5deg); width: 220px; z-index: 1; }

.mascot { position: absolute; width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 10px 24px rgba(194,65,12,.35); left: 50%; top: 250px; margin-left: -48px; z-index: 5; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.heart { position: absolute; color: var(--pink); font-size: 26px; animation: float 4s ease-in-out infinite; pointer-events: none; }
@keyframes float { 0% { transform: translateY(0) scale(.9); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-90px) scale(1.15); opacity: 0; } }

/* 물결 구분선 */
.wave { display: block; width: 100%; height: 60px; }

/* ───── 기능 ───── */
.section { padding: 80px 0; }
.section.orange { background: var(--brand); color: #fff7ef; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .kicker { font: 700 22px/1 var(--hand); color: var(--brand); }
.section.orange .kicker { color: var(--yellow); }
.section-head h2 { font: 700 clamp(34px, 4.6vw, 48px)/1.15 var(--hand); margin: 8px 0 10px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 17px; }
.section.orange .section-head p { color: #ffe3cf; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 0 auto 72px; max-width: 920px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .phone { order: 2; }
.phone {
  justify-self: center; width: 280px; padding: 10px; border-radius: 44px; background: #1d1714;
  box-shadow: 0 24px 50px rgba(60, 25, 5, 0.28); position: relative;
}
.phone img { border-radius: 34px; aspect-ratio: 440 / 956; object-fit: cover; object-position: top; }
.phone .sticker {
  position: absolute; right: -22px; top: 40px; background: var(--yellow); color: var(--ink);
  font: 700 20px/1 var(--hand); padding: 10px 14px; border-radius: 14px; transform: rotate(8deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.feature .num { font: 700 20px/1 var(--hand); color: var(--brand); background: var(--brand-soft); display: inline-block; padding: 8px 14px; border-radius: 999px; }
.feature h3 { font: 700 38px/1.15 var(--hand); margin: 14px 0 12px; }
.feature p { color: var(--ink-2); font-size: 17px; margin: 0 0 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding: 6px 0 6px 30px; position: relative; color: var(--ink-2); }
.feature li::before { content: '🐾'; position: absolute; left: 0; top: 6px; font-size: 16px; }

/* 약속 카드 */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise div {
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.promise .ico { font-size: 40px; display: block; margin-bottom: 8px; }
.promise b { display: block; font: 700 26px/1.2 var(--hand); color: #fff; margin-bottom: 6px; }
.promise span { color: #ffe3cf; font-size: 15px; }

/* ───── 고객 지원 ───── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--paper); border-radius: 18px; margin-bottom: 12px; padding: 0 22px;
  box-shadow: 0 2px 0 #eee2d0; border: 1px solid #f0e6d8;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 800; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font: 700 28px/1 var(--hand); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { margin: 0 0 18px; color: var(--ink-2); }
.faq details ul { padding-left: 20px; }

.contact {
  max-width: 760px; margin: 36px auto 0; background: var(--brand-soft); border-radius: 26px; padding: 30px;
  display: flex; gap: 22px; align-items: center; border: 2px dashed #f2b98f;
}
.contact img { width: 84px; height: 84px; border-radius: 22px; flex-shrink: 0; animation: bob 3s ease-in-out infinite; }
.contact h3 { font: 700 30px/1.1 var(--hand); margin: 0 0 6px; }
.contact p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 800; padding: 12px 20px; border-radius: 14px; box-shadow: 0 5px 0 var(--brand-dark);
}
.mail-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--brand-dark); }

/* ───── 푸터 ───── */
footer { background: var(--ink); color: #cbbfb3; padding: 40px 0 50px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #f4efe9; text-decoration: none; margin-right: 16px; }
footer .logo span { color: #fff; }

/* ───── 문서 페이지 (개인정보처리방침) ───── */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 0 90px; }
.doc h1 { font: 700 46px/1.15 var(--hand); margin: 0 0 18px; }
.doc .card { background: var(--paper); border-radius: 26px; padding: 34px 32px; box-shadow: 0 2px 0 #eee2d0; border: 1px solid #f0e6d8; }
.doc h2 { font-size: 19px; margin: 30px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc .meta { color: var(--ink-3); font-size: 14px; margin-top: 28px; }

/* ───── 반응형 ───── */
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .stores, .trust { justify-content: center; }
  /* 휴대폰: 폴라로이드를 기울인 2×2 격자로 */
  .pile { height: auto; max-width: 400px; margin: 10px auto 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 14px 6px 0; }
  .polaroid, .p1, .p2, .p3, .p4 { position: relative; left: auto; right: auto; top: auto; width: auto; padding: 8px 8px 0; }
  .p2, .p4 { margin-top: 18px; }
  .p3 { margin-top: -18px; }
  .polaroid figcaption { font-size: 17px; padding: 8px 2px 10px; }
  .polaroid::before { width: 70px; margin-left: -35px; height: 20px; }
  .mascot { top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .heart { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .feature.flip .phone { order: 0; }
  .feature ul { display: inline-block; text-align: left; }
  .promise { grid-template-columns: 1fr; }
  .nav-links a:not(.keep) { display: none; }
  .contact { flex-direction: column; text-align: center; }
  .doc .card { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
