/* 꼬까 웹 — 꼬까 디자인 시스템 토큰(앱 lib/theme.ts). 랜딩·지원·처리방침·약관 공용.
   앱처럼 라이트 고정. 보조 글자 --sub #6E6962 = 바탕 대비 4.59(옛 #8F8A83 은 2.89 로 미달). */
@font-face { font-family: "NSR"; src: url("/fonts/NanumSquareRoundR.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NSR"; src: url("/fonts/NanumSquareRoundB.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NSR"; src: url("/fonts/NanumSquareRoundEB.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg:#F0EBE5; --card:#FFFFFF; --paper:#FFFDF9; --text:#3C3936; --sub:#6E6962; --line:#D9C8B4; --rule:#E7DED3;
  --accent:#8B6A50; --accent-text:#7A5C45; --accent-soft:#E8D6C2; --choice:#F3E8DB;
  --t1:#F3E8DB; --t2:#E8D6C2; --t3:#DCC3A8; --t4:#CDAF91; --empty:#E8E2DA; --empty-line:#D6CABC; --future:#ECE7E0;
  --hole:#6E523D; --stitch:#C7A88C; --ring:#9E7C60;
  --r-card:18px; --r-lg:28px; --gutter:max(20px, env(safe-area-inset-left, 0px));
  --shadow:0 1px 0 rgba(60,57,54,.04), 0 24px 48px -28px rgba(120,95,72,.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@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: "NSR", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height:1.7; word-break:keep-all; overflow-wrap:anywhere; }
a { color:var(--accent-text); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; border-radius:8px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width:100%; max-width:1120px; margin:0 auto; padding-left:var(--gutter); padding-right:max(20px, env(safe-area-inset-right, 0px)); }
.skip { position:absolute; left:-9999px; top:8px; background:var(--text); color:#fff; padding:8px 14px; border-radius:10px; z-index:50; }
.skip:focus { left:12px; }

/* 워드마크: 코코아 알약 + 단추(구멍 4개) */
.wm { display:inline-flex; align-items:center; gap:7px; background:var(--accent); color:var(--bg);
  font-weight:800; font-size:1.05rem; letter-spacing:-0.01em; padding:6px 13px 6px 12px; border-radius:14px; text-decoration:none; line-height:1.3; }
.wm i { width:12px; height:12px; border-radius:50%; background:var(--bg); flex:none;
  background-image: radial-gradient(circle at 32% 32%, var(--accent) 1.2px, transparent 1.4px), radial-gradient(circle at 68% 32%, var(--accent) 1.2px, transparent 1.4px),
    radial-gradient(circle at 32% 68%, var(--accent) 1.2px, transparent 1.4px), radial-gradient(circle at 68% 68%, var(--accent) 1.2px, transparent 1.4px); }

/* ── 머리말(모든 페이지) ───────────────────── */
header.site { position:sticky; top:0; z-index:20; background:rgba(240,235,229,.88); backdrop-filter:saturate(1.4) blur(12px); -webkit-backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid transparent; padding-top:env(safe-area-inset-top, 0px); }
header.site .wrap { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; }
header.site nav { display:flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
header.site nav a { color:var(--sub); text-decoration:none; font-size:.9rem; font-weight:700; padding:10px 10px; border-radius:12px; }
header.site nav a:hover { color:var(--text); background:rgba(255,255,255,.6); }
header.site nav a[aria-current="page"] { color:var(--accent-text); }
header.site .nav-cta { background:var(--text); color:#fff; padding:9px 16px; margin-left:6px; }
header.site .nav-cta:hover { background:#2A2826; color:#fff; }
@media (max-width: 640px) { header.site nav a:not(.nav-cta) { display:none; } }

/* ── 꼬리말(모든 페이지) ───────────────────── */
footer.site { margin-top:72px; border-top:1px solid var(--rule); background:var(--paper); padding-block:40px 32px; color:var(--sub); font-size:.88rem; }
footer.site .cols { display:grid; gap:28px; grid-template-columns: 1fr; }
footer.site .brand p { margin:10px 0 0; max-width:30ch; }
footer.site h2 { font-size:.8rem; color:var(--text); margin:0 0 8px; letter-spacing:.02em; }
footer.site ul { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
footer.site ul a { color:var(--sub); text-decoration:none; display:inline-block; padding:4px 0; }
footer.site ul a:hover { color:var(--accent-text); text-decoration:underline; }
footer.site .legal { margin-top:32px; padding-top:18px; border-top:1px solid var(--rule); font-size:.8rem; display:flex; flex-wrap:wrap; gap:6px 16px; justify-content:space-between; }
@media (min-width: 760px) { footer.site .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ── 문서 페이지(지원·처리방침·약관·삭제·아동 안전) ── */
main.doc { max-width:760px; margin:0 auto; padding:24px max(20px, env(safe-area-inset-right, 0px)) 0 var(--gutter); }
main.doc > h1 { font-size:1.9rem; margin:20px 0 6px; font-weight:800; letter-spacing:-0.02em; }
.card { background:var(--card); border-radius:var(--r-card); padding:26px 24px; margin-top:16px; }
main.doc h2 { font-size:1.08rem; margin:30px 0 8px; color:var(--accent-text); font-weight:800; }
main.doc h2:first-child { margin-top:0; }
p, li { font-size:.97rem; }
.sub { color:var(--sub); font-size:.88rem; }
table { width:100%; border-collapse:collapse; font-size:.9rem; margin:8px 0; }
th, td { border:1px solid var(--line); padding:9px; text-align:left; vertical-align:top; }
th { background:var(--t1); }
.tbl { overflow-x:auto; }
.ph { background:#FFF3C4; padding:0 4px; border-radius:4px; }

/* 지원 FAQ(랜딩에도 씀) */
details { border-top:1px solid var(--rule); padding:16px 0; }
details:first-of-type { border-top:0; padding-top:2px; }
details:last-of-type { padding-bottom:2px; }
summary { cursor:pointer; font-weight:800; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:28px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:""; flex:none; width:24px; height:24px; border-radius:12px; background:var(--choice)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5C45' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p, details ul { color:var(--text); margin:10px 0 0; }

/* ── 랜딩 ─────────────────────────────── */
.landing h2 { font-size:clamp(1.5rem, 3.2vw, 2.1rem); line-height:1.3; letter-spacing:-0.02em; margin:0 0 28px; font-weight:800; }
.landing section { padding-block:56px; }
.landing em { font-style:normal; color:var(--accent-text); }

.hero { display:grid; gap:48px; align-items:center; padding-top:40px !important; }
.eyebrow { display:inline-block; font-size:.82rem; font-weight:800; color:var(--accent-text); background:var(--choice); padding:5px 12px; border-radius:999px; }
.hero h1 { font-size:clamp(2.2rem, 6vw, 3.4rem); line-height:1.22; margin:16px 0 18px; letter-spacing:-0.03em; font-weight:800; }
.lede { color:var(--sub); font-size:1.08rem; margin:0 0 28px; max-width:34ch; }
.badges { display:flex; gap:10px; flex-wrap:wrap; }
.badge { display:inline-flex; align-items:center; gap:10px; background:var(--text); color:#fff; text-decoration:none;
  border-radius:14px; padding:10px 18px 10px 14px; min-width:168px; min-height:52px; }
.badge svg { flex:none; }
.badge small { display:block; font-size:.68rem; opacity:.85; line-height:1.2; }
.badge b { display:block; font-size:1rem; line-height:1.25; font-weight:800; }
.badge[aria-disabled="true"] { cursor:default; }
.soon { display:flex; align-items:center; gap:8px; color:var(--sub); font-size:.85rem; margin:14px 0 0; }
.pulse { width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(139,106,80,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow:0 0 0 8px rgba(139,106,80,0); } 100% { box-shadow:0 0 0 0 rgba(139,106,80,0); } }
.facts { list-style:none; padding:0; margin:26px 0 0; display:flex; flex-wrap:wrap; gap:8px; }
.facts li { font-size:.85rem; font-weight:700; color:var(--text); background:var(--card); border-radius:999px; padding:6px 12px 6px 30px; position:relative; }
.facts li::before { content:""; position:absolute; left:10px; top:50%; width:14px; height:14px; margin-top:-7px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B6A50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat; }

/* 폰 목업 — 앱의 홈 캘린더를 그대로 축소(칸 = 원 + 스티커, 오늘 = 코코아 점선) */
.hero-art { position:relative; display:flex; justify-content:center; padding:10px 0 20px; }
.phone { width:min(340px, 86vw); aspect-ratio: 340/700; background:var(--text); border-radius:48px; padding:10px; box-shadow:0 30px 60px -30px rgba(60,40,25,.55); position:relative; z-index:1; }
.screen { height:100%; background:var(--bg); border-radius:39px; padding:44px 14px 0; overflow:hidden; position:relative; }
.app-top { display:flex; justify-content:space-between; align-items:center; }
.name-chip { background:var(--card); border-radius:999px; padding:4px 11px; font-size:.72rem; font-weight:800; }
.count { background:var(--accent-soft); color:var(--accent-text); border-radius:999px; padding:4px 10px; font-size:.68rem; font-weight:800; }
.month { text-align:center; font-weight:800; margin:10px 0 6px; font-size:.95rem; }
.dow, .days { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); }
.dow li { text-align:center; font-size:.6rem; font-weight:700; color:var(--sub); }
.dow .sun { color:#9A4A33; }
.days { row-gap:2px; margin-top:4px; }
.days li:first-child { grid-column-start:1; }
.day { display:flex; flex-direction:column; align-items:center; gap:2px; }
.day .dot { width:78%; aspect-ratio:1; border-radius:50%; background:var(--empty); position:relative; display:grid; place-items:center; margin-top:10px; }
.day b { font-size:.56rem; font-weight:700; color:var(--sub); line-height:1.3; min-width:16px; text-align:center; border-radius:6px; }
.day.t1 .dot { background:var(--t1); } .day.t2 .dot { background:var(--t2); } .day.t3 .dot { background:var(--t3); } .day.t4 .dot { background:var(--t4); }
.day.empty .dot { border:1px dashed var(--empty-line); }
.day.future .dot { background:var(--future); } .day.future b { color:#B8B1A8; }
.day.today .dot { background:#fff; border:1.4px dashed var(--accent); }
.day.today .dot svg { width:50%; height:50%; stroke:var(--accent); stroke-width:2.4; stroke-linecap:round; stroke-dasharray:3 2.4; fill:none; }
.day.today b { background:var(--accent); color:#fff; }
.stk { position:absolute; bottom:0; left:50%; width:118%; height:150%; transform:translateX(-50%); object-fit:contain; object-position:bottom; filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(0 1.5px 1.5px rgba(90,70,50,.22)); }
.stage { position:absolute; left:0; right:0; bottom:70px; height:120px; display:flex; align-items:flex-end; gap:6px; padding:0 18px;
  background: radial-gradient(120% 60px at 50% 100%, var(--t1) 60%, transparent 61%); }
.stage .kid { width:86px; height:100px; flex:none; object-fit:contain; object-position:bottom; filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 8px rgba(60,40,25,.22)); animation: bob 4.5s ease-in-out infinite; }
.stage p { margin:0 0 24px; display:grid; line-height:1.35; }
.stage b { font-size:.9rem; } .stage small { font-size:.62rem; color:var(--sub); }
.tabbar { position:absolute; left:10px; right:10px; bottom:14px; height:46px; border-radius:24px; background:var(--paper); box-shadow:0 6px 16px rgba(120,95,72,.16);
  display:flex; align-items:center; justify-content:space-around; outline:1px dashed var(--line); outline-offset:-5px; }
.tabbar span { width:18px; height:18px; border-radius:6px; background:var(--accent-soft); }
.tabbar .fab { width:50px; height:50px; border-radius:50%; margin-top:-26px; background:var(--accent); border:4px solid var(--ring);
  background-image: radial-gradient(circle at 34% 34%, var(--hole) 2.6px, transparent 3px), radial-gradient(circle at 66% 34%, var(--hole) 2.6px, transparent 3px),
    radial-gradient(circle at 34% 66%, var(--hole) 2.6px, transparent 3px), radial-gradient(circle at 66% 66%, var(--hole) 2.6px, transparent 3px); }
.float { position:absolute; width:96px; height:108px; z-index:2; object-fit:contain; object-position:bottom; filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 10px 14px rgba(60,40,25,.22)); animation: bob 5s ease-in-out infinite; }
.f1 { left:max(0px, calc(50% - 230px)); top:18%; }
.f2 { right:max(0px, calc(50% - 232px)); top:46%; animation-delay:-1.6s; }
.f3 { left:max(4px, calc(50% - 214px)); bottom:6%; width:78px; height:88px; animation-delay:-3s; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* 쓰는 법 — 진짜 순서라서 번호를 쓴다 */
.steps { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.steps li { background:var(--card); border-radius:var(--r-lg); padding:18px 18px 22px; }
.steps h3 { display:flex; align-items:center; gap:10px; margin:16px 0 4px; font-size:1.1rem; font-weight:800; }
.steps .n { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--accent); color:#fff; font-size:.8rem; flex:none; }
.steps p { margin:0; color:var(--sub); }
.step-art { height:150px; border-radius:20px; background:var(--bg); display:flex; align-items:center; justify-content:center; gap:8px; position:relative; overflow:hidden; }
.art-pick span { background:var(--choice); color:#6B513D; font-size:.78rem; font-weight:800; border-radius:16px; padding:22px 10px 10px; width:30%; text-align:center; position:relative; }
.art-pick span::before { content:""; position:absolute; left:50%; top:8px; width:14px; height:10px; margin-left:-7px; border:2px solid var(--accent); border-radius:3px; }
.art-cut img { object-fit:contain; object-position:bottom;  width:84px; height:96px; position:relative; z-index:1; filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 8px rgba(60,40,25,.2)); }
.art-cut i { position:absolute; inset:24px 30%; border:2px dashed var(--stitch); border-radius:50%; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-stick .c { width:56px; height:56px; border-radius:50%; position:relative; }
.art-stick .c.t1 { background:var(--t1); } .art-stick .c.t2 { background:var(--t2); } .art-stick .c.t3 { background:var(--t3); }
.art-stick .c img { object-fit:contain; object-position:bottom;  position:absolute; left:50%; bottom:0; width:66px; height:84px; transform:translateX(-50%); filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 4px 5px rgba(60,40,25,.2)); }

/* 하루가 쌓이면 — 카드 위 그림 + 아래 글 */
.feat-grid { display:grid; gap:14px; }
.feat { background:var(--card); border-radius:var(--r-lg); padding:18px 18px 22px; }
.feat h3 { margin:16px 0 4px; font-size:1.1rem; font-weight:800; }
.feat p { margin:0; color:var(--sub); }
.feat-art { height:170px; border-radius:20px; background:var(--bg); display:flex; align-items:center; justify-content:center; gap:10px; overflow:hidden; }
.art-credit .tag { background:var(--paper); width:150px; border-radius:10px 10px 16px 16px; padding:20px 14px 12px; box-shadow:0 10px 20px rgba(60,40,25,.14); display:grid; gap:1px; position:relative; }
.art-credit .tag::before { content:""; position:absolute; top:7px; left:50%; width:9px; height:9px; margin-left:-4.5px; border-radius:50%; background:var(--bg); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.art-credit small { font-size:.62rem; font-weight:800; letter-spacing:.14em; color:var(--accent-text); }
.art-credit b { font-size:.85rem; } .art-credit span { font-size:.72rem; color:var(--sub); }
.art-credit hr { border:0; border-top:1.5px dashed var(--line); margin:5px 0; width:100%; }
.art-list { flex-direction:column; gap:8px; padding:0 22px; }
.art-list .row { width:100%; max-width:260px; background:var(--card); border-radius:14px; display:flex; align-items:center; gap:10px; padding:6px 10px; }
.art-list .row b { font-size:.9rem; width:24px; text-align:center; line-height:1; }
.art-list .row small { display:block; font-size:.55rem; color:var(--sub); }
.art-list .c { width:34px; height:34px; border-radius:50%; position:relative; flex:none; }
.art-list .c.t1 { background:var(--t1); } .art-list .c.t2 { background:var(--t2); } .art-list .c.t3 { background:var(--t3); }
.art-list .c img { object-fit:contain; object-position:bottom;  position:absolute; left:50%; bottom:0; width:40px; height:46px; transform:translateX(-50%); filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff); }
.art-list i { flex:1; height:8px; border-radius:4px; background:var(--empty); }
.art-theme .sw { width:52px; height:76px; border-radius:14px; background:linear-gradient(180deg, var(--a) 62%, var(--b) 62%); box-shadow:0 6px 12px rgba(60,40,25,.12); }
.art-theme .sw:nth-child(2) { transform:translateY(-10px); } .art-theme .sw:nth-child(3) { transform:translateY(6px); }
.art-feed .card { margin:0; width:104px; height:132px; border-radius:16px; background:var(--card); padding:8px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; box-shadow:0 6px 14px rgba(60,40,25,.1); }
.art-feed .card:last-child { transform:translateY(6px); }
.art-feed img { width:70px; height:84px; object-fit:contain; object-position:bottom; filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(0 3px 4px rgba(60,40,25,.18)); }
.art-feed small { font-size:.62rem; font-weight:800; color:var(--accent-text); background:var(--choice); border-radius:999px; padding:1px 8px; }

/* 사진 안심 — 코코아 띠 */
.safe { background:var(--accent); color:var(--bg); }
.safe-in { display:grid; gap:32px; align-items:start; }
.safe h2 { color:#fff; }
.safe p { color:#F0E4D6; margin:0 0 18px; max-width:36ch; font-size:1.02rem; }
.link-light { color:#fff; font-weight:800; }
.checks { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.checks li { background:rgba(255,253,249,.1); border:1px solid rgba(255,253,249,.18); border-radius:20px; padding:16px 18px 16px 54px; position:relative; display:grid; gap:2px; }
.checks li::before { content:""; position:absolute; left:16px; top:17px; width:26px; height:26px; border-radius:50%; background:#FFFDF9
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B6A50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks b { color:#fff; font-size:1rem; }
.checks span { color:#F0E4D6; font-size:.92rem; }

/* 자주 묻는 질문 */
.faq .card { margin-top:0; }
.more { display:inline-block; margin-top:14px; font-weight:800; }

/* 마지막 CTA */
.cta-in { background:var(--card); border-radius:36px; padding:44px 24px; text-align:center; }
.cta h2 { margin-bottom:6px; }
.cta p { color:var(--sub); margin:0 0 22px; }
.cta-stickers { display:flex; justify-content:center; gap:4px; margin-bottom:14px; }
.cta-stickers img { width:64px; height:72px; object-fit:contain; object-position:bottom; filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 8px rgba(60,40,25,.18)); }

.btn { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 28px; border-radius:18px; background:var(--accent); color:#fff; font-weight:800; text-decoration:none; }
.btn:hover { background:#7A5C45; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-bottom:72px !important; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safe-in { grid-template-columns: 1fr 1.1fr; align-items:center; }
  .landing section { padding-block:80px; }
}

/* 좁은 화면: 떠 있는 스티커가 캘린더 칸을 가리지 않게 — 폰 바깥 위·아래 모서리로만 */
@media (max-width: 600px) {
  .float { width:64px; height:72px; }
  .f1 { left:2px; top:-14px; }
  .f2 { right:2px; top:auto; bottom:-6px; }
  .f3 { display:none; }
}
