/* 꾹꾹 공개 사이트 — 색은 앱 constants/theme.ts 그대로(베이지 판·코코아 판). 도장 잉크만 달력 자두색.
   제목은 앱과 같은 Jua(img/jua-subset.woff2, OFL — img/jua-OFL.txt). 움직임은 첫 장면 한 번뿐. */
@font-face { font-family: "Jua"; src: url("/img/jua-subset.woff2") format("woff2"); font-display: swap; }

:root {
  --page: #f4e6d8; --paper: #fffaf4; --field: #f9efe4; --ink: #3b2a20; --ink2: #5a4234; --dim: #735a4a;
  --line: rgba(107,74,53,0.16); --brand: #6b4a35; --plum: #7a5a93; --amber: #c98a0b; --clay: #b5532f;
  --lift: 0 18px 40px -18px rgba(59,42,32,0.45);
  --head: "Jua", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #16110e; --paper: #261e19; --field: #1c1612; --ink: #f3e7da; --ink2: #e1d2c2; --dim: #cab9a9;
    --line: rgba(243,231,218,0.12); --brand: #d9a47a; --plum: #b394c9; --amber: #f5b642; --clay: #f0956f;
    --lift: 0 18px 40px -18px rgba(0,0,0,0.8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }

/* 머리줄 — 누르는 자리는 44px 이상 */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--head); font-size: 24px; }
.brand img { border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 15px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); text-decoration: none; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* 폰 화면 */
.phone { display: block; width: 100%; }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; border: 7px solid #2a1f19; background: var(--paper); box-shadow: var(--lift); }

/* ── 첫 장면: 냉장고 문 → 꾹꾹 하나 ─────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.12; margin: 0 0 22px; }
.sub { font-size: 19px; color: var(--ink2); max-width: 30em; margin-bottom: 24px; }
.soon { display: inline-block; font-weight: 700; color: var(--brand); border-top: 2px solid var(--brand); padding-top: 10px; }

.fridge { position: relative; aspect-ratio: 1 / 1.05; max-width: 500px; justify-self: center; width: 100%; }
.fridge .phone { position: absolute; left: 50%; top: 4%; width: 46%; transform: translateX(-50%); z-index: 2; }
.scrap { position: absolute; z-index: 1; padding: 12px 14px; border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: var(--lift); font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; gap: 2px; }
.scrap { overflow-wrap: normal; }   /* 숫자가 한 글자씩 끊기지 않게(body 의 anywhere 를 끈다) */
.scrap b { font-family: var(--head); font-weight: 400; font-size: 17px; margin-bottom: 2px; }
.scrap::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--clay); box-shadow: inset -2px -2px 0 rgba(0,0,0,0.18); } /* 냉장고 자석 */
.s-cal { left: -4%; top: 8%; width: 33%; --r: -7deg; transform: rotate(var(--r)); }
.s-cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 10px; color: var(--dim); }
.s-cal .grid i { font-style: normal; text-align: center; white-space: nowrap; }
.s-cal .grid i.o { color: var(--plum); outline: 1.5px solid var(--plum); border-radius: 50%; }
.s-cal em { font-style: normal; font-size: 12px; color: var(--plum); margin-top: 4px; }
.s-bill { right: -4%; top: 4%; width: 29%; --r: 6deg; transform: rotate(var(--r)); border-radius: 2px; background-image: radial-gradient(circle at 6px 100%, var(--page) 4px, transparent 5px); background-size: 12px 8px; background-repeat: repeat-x; background-position: bottom; padding-bottom: 16px; }
.s-bill span { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); }
.s-bill i { font-style: normal; font-variant-numeric: tabular-nums; }
.s-memo { left: -2%; bottom: 10%; width: 30%; --r: 4deg; transform: rotate(var(--r)); background: color-mix(in srgb, var(--amber) 30%, var(--paper)); border-radius: 2px; }
.s-memo::before { background: var(--plum); }
.s-baby { right: -3%; bottom: 18%; width: 31%; --r: -5deg; transform: rotate(var(--r)); }
.s-baby::before { background: var(--amber); }
.stamp { position: absolute; z-index: 3; right: 20%; top: 56%; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--plum); color: var(--plum); display: grid; place-items: center; transform: rotate(-14deg); background: color-mix(in srgb, var(--page) 70%, transparent); }
.stamp img { width: 34px; height: 34px; margin-top: 8px; opacity: 0.85; }
.stamp b { font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1; margin-top: -6px; }

/* 하나뿐인 움직임 — 종이들이 폰으로 빨려 들고, 도장이 꾹. 움직임 줄이기면 끝 장면만 */
@media (prefers-reduced-motion: no-preference) {
  .scrap { animation: gather 1.1s cubic-bezier(.65,0,.35,1) 0.9s both; }
  .s-bill { animation-delay: 1s; } .s-memo { animation-delay: 1.1s; } .s-baby { animation-delay: 1.2s; }
  .fridge .phone { animation: settle 0.5s cubic-bezier(.2,.8,.2,1) 2.1s both; }
  .stamp { animation: press 0.45s cubic-bezier(.3,1.6,.5,1) 2.35s both; }
}
@keyframes gather {
  0%, 30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--gx, 0), var(--gy, 0)) rotate(0deg) scale(0.25); }
}
.s-cal { --gx: 70%; --gy: 60%; } .s-bill { --gx: -80%; --gy: 70%; } .s-memo { --gx: 70%; --gy: -90%; } .s-baby { --gx: -70%; --gy: -80%; }
@keyframes settle { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(0.97); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes press { 0% { opacity: 0; transform: rotate(-14deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
/* 움직임 줄이기 — 종이는 냉장고에 붙은 채, 도장만 */
@media (prefers-reduced-motion: reduce) { .scrap { opacity: 0.55; } }

/* ── 가족의 하루(시간 순서) ─────────────────────────────── */
.day { padding-top: 40px; padding-bottom: 40px; }
.day > h2, .trust > h2, .faq > h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 32px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.slot { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: 28px 0 48px 36px; }
.slot::before { content: ""; position: absolute; left: -10px; top: 40px; width: 17px; height: 17px; border-radius: 50%; background: var(--page); border: 3px solid var(--plum); }
.slot time { display: block; font-family: var(--head); font-size: 22px; color: var(--plum); font-variant-numeric: tabular-nums; }
.slot h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; margin: 4px 0 12px; }
.slot-text > p { color: var(--ink2); margin-bottom: 14px; max-width: 32em; }
.slot ul { margin: 0; padding-left: 20px; color: var(--ink2); }
.slot ul li { margin: 0 0 4px; }
.slot-shot .phone { max-width: 240px; margin: 0 auto; }

/* ── 안심 — 카드 대신 정의 목록 ─────────────────────────────── */
.trust { padding-top: 56px; padding-bottom: 40px; }
.trust dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.trust dl > div { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.trust dt { font-family: var(--head); font-size: 22px; margin-bottom: 4px; }
.trust dd { margin: 0; color: var(--ink2); }

/* ── 자주 묻는 질문 — <details>, 누르면 열리고 닫힌다 ─────────── */
.faq { padding-top: 56px; padding-bottom: 40px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; padding: 16px 44px 16px 0; font-weight: 700; position: relative; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink2); max-width: 40em; }

/* ── 끝 ─────────────────────────────── */
.end { padding-top: 64px; padding-bottom: 88px; }
.end-big { font-family: var(--head); font-size: clamp(40px, 6vw, 72px); line-height: 1.1; margin-bottom: 18px; }
.end p:last-child { color: var(--ink2); max-width: 34em; }

/* ── 문서(처리방침·약관·삭제) ─────────────────────────────── */
.doc-wrap { padding-top: 40px; padding-bottom: 72px; }
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.toc summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; color: var(--dim); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--ink); }
article h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.2; margin: 0 0 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 28px; padding: 14px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.meta div { display: flex; gap: 8px; }
.meta dt { color: var(--dim); }
.meta dd { margin: 0; font-weight: 600; }
.art { padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.art h2 { font-size: 22px; margin: 0 0 10px; }
.art p { color: var(--ink2); margin: 0 0 8px; max-width: 46em; }
.solo { max-width: 760px; }
.solo .sub { margin: -4px 0 28px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.steps .card { margin: 0; }
.card h2 { font-size: 22px; margin: 0 0 10px; }
.card p, .card ol, .card ul { color: var(--ink2); margin: 0 0 6px; }
.card ol, .card ul { padding-left: 20px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--plum); margin-bottom: 6px; }

/* ── 바닥 ─────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--field); font-size: 14px; color: var(--dim); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; padding-top: 32px; padding-bottom: 36px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; align-content: start; font-size: 14px; }
.foot-links a { color: var(--ink2); }
.foot-biz { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 24px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-biz div { display: flex; gap: 8px; }
.foot-biz dt { color: var(--dim); white-space: nowrap; }
.foot-biz dd { margin: 0; color: var(--ink2); }
.foot-biz a { color: var(--ink2); }
.copy { grid-column: 1 / -1; font-size: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 48px; }
  .fridge { max-width: 380px; }
  .scrap { font-size: 11px; padding: 9px 10px; }
  .scrap b { font-size: 14px; }
  .s-cal .grid { font-size: 8px; gap: 1px; }
  .slot { grid-template-columns: 1fr; gap: 20px; padding-left: 24px; }
  .slot-shot .phone { max-width: 220px; margin: 0; }
  .trust dl { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 8px; }
  .steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  nav { gap: 0 14px; font-size: 14px; }
  /* 폰에선 머리줄을 한 줄로 — 소개는 꾹꾹 로고가, 이용약관·위치 약관은 바닥 링크가 맡는다 */
  .bar nav a[href="/"], .bar nav a[href="/terms/"]:not([aria-current]), .bar nav a[href="/location-terms/"]:not([aria-current]) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .bar, .toc, .foot-links, .skip { display: none; } body { background: #fff; color: #000; } .doc { display: block; } }
