/* 꼬닥이 카페 홈페이지 - 크림 바탕, 라테와 커피 빛, 둥근 카드, 젤리 버튼, 주아체.
   외부 글꼴, 추적 스크립트 없음. 주아체는 배포 때 /fonts/Jua-Regular.ttf 로 복사된다. */
@font-face { font-family: "Jua"; src: url("/fonts/Jua-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --ink: #3a2d4f; --muted: #6f6385; --paper: #fff6ec; --card: #fff; --line: #f0e2d0;
  --latte: #e8c4a0; --latte-l: #f7e6d2; --coffee: #8a5a3c; --coffee-d: #6b4129; --foam: #fffaf3;
  --rose: #f8c8a8; --mint: #a9dcc0; --mint-l: #e6f5ec; --berry: #ff8fa8;
  --shadow: 0 10px 28px rgba(110, 74, 58, .12), 0 2px 6px rgba(110, 74, 58, .08);
  --shadow-lg: 0 24px 60px rgba(110, 70, 60, .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;
}
* { 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; overflow-x: hidden; }
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: 1120px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* 상단 바 */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 241, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 12px; 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: 4px; 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(--latte-l); color: var(--ink); }
.bar nav a.lang { border: 2px solid var(--line); color: var(--ink); background: #fff; }
@media (max-width: 760px) { .bar nav a:not(.lang) { display: none; } }

/* 젤리 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; min-height: 56px; border-radius: 20px; text-decoration: none; font: 1.15rem/1.2 var(--round); color: #fff; background: linear-gradient(180deg, #b98660, var(--coffee)); box-shadow: 0 6px 0 var(--coffee-d), var(--shadow); transition: transform .12s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { color: var(--ink); background: #fff; box-shadow: 0 6px 0 #eadccb, var(--shadow); }
.btn.ghost:active { transform: translateY(3px); box-shadow: 0 3px 0 #eadccb, var(--shadow); }
.btn small { font: 700 .75rem/1 var(--sans); color: var(--muted); }
.btn:not(.ghost) small { color: #ffe9d6; }
a[href], button, [role="button"] { cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 99px; background: var(--ink); color: #fff; font: 1rem/1.3 var(--round); box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 첫 화면 */
.hero { position: relative; padding: 36px 0 56px; overflow: hidden; background: radial-gradient(120% 80% at 80% 10%, #ffe6cf 0, rgba(255, 230, 207, 0) 60%), radial-gradient(90% 70% at 0% 100%, #fde3ea 0, rgba(253, 227, 234, 0) 60%); }
.hero .beans { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } .hero { padding: 64px 0 84px; } }
.kicker { display: inline-block; margin: 0; padding: 4px 14px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); color: var(--coffee); font-size: 1rem; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 4.4rem); line-height: 1.1; margin: 16px 0 4px; }
.hero .sub { font: clamp(1.35rem, 4vw, 1.8rem)/1.3 var(--round); color: var(--coffee); margin: 0 0 16px; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .cta .btn { flex: 0 1 auto; } }
.beta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 0; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .7); border: 2px dashed var(--latte); }
.beta .btn { min-height: 48px; padding: 10px 18px; font-size: 1.05rem; }
.beta span { flex: 1 1 16em; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.note { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.hero-art { position: relative; max-width: 420px; width: 100%; margin: 0 auto; order: -1; }
@media (min-width: 900px) { .hero-art { order: 0; } }
.hero-art::before { content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 50%; background: radial-gradient(circle, #fff3e0 0, rgba(255, 243, 224, 0) 70%); }
.hero-art .logo { position: relative; width: 78%; margin: 0 auto; filter: drop-shadow(0 18px 28px rgba(110, 70, 60, .22)); animation: bob 5s ease-in-out infinite; }
@media (min-width: 900px) { .hero-art .logo { width: 100%; } }
.steam { position: absolute; left: 50%; top: -6%; width: 26%; transform: translateX(-50%); fill: none; stroke: #e0c4aa; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.steam path { animation: rise 3.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .6s; } .steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* 구역 */
section.block { padding: 56px 0; }
section.alt { background: var(--foam); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { text-align: center; max-width: 40em; margin: 0 auto 34px; }
.head h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.25; margin: 0 0 10px; }
.head p { color: var(--muted); margin: 0; }

/* 특징 6개 */
.features { display: grid; gap: 18px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 20px 22px 20px; border-top: 10px solid var(--c, var(--latte)); }
.feat .ico { width: 52px; height: 52px; display: block; margin-bottom: 6px; }
.feat h3 { font-size: 1.45rem; margin: 0 0 6px; line-height: 1.3; }
.feat p { margin: 0; color: var(--muted); font-size: .98rem; }
.feat.f1 { --c: #e8c4a0; } .feat.f2 { --c: #ffd0e0; } .feat.f3 { --c: #ffe89a; }
.feat.f4 { --c: #bfe6cc; } .feat.f5 { --c: #f7d77a; } .feat.f6 { --c: #d8ccff; }

/* 그림 견본 */
.art { display: grid; gap: 18px; }
@media (min-width: 720px) { .art { grid-template-columns: 1fr 1fr; } }
.art figure { margin: 0; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 12px; }
.art img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; background: var(--latte-l); }
.art figcaption { text-align: center; font: 1.1rem var(--round); margin-top: 10px; }

/* 튜닝 확률표 */
.odds { max-width: 720px; margin: 0 auto; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 10px 16px 14px; }
.odds .row { display: grid; grid-template-columns: 3.2em 1fr 6.6em; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.odds .row:last-child { border-bottom: 0; }
.odds .th { font-weight: 700; color: var(--muted); font-size: .85rem; }
.odds .row > span:first-child { font: 1.15rem var(--round); color: var(--coffee); }
.odds .row > span:last-child { text-align: right; color: var(--muted); }
.odds .bar { position: relative; height: 26px; border-radius: 99px; background: var(--latte-l); overflow: hidden; }
.odds .bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 99px; background: linear-gradient(90deg, #f3c89d, #c98f63); }
.odds .bar b { position: relative; display: block; padding-left: 12px; line-height: 26px; font-size: .9rem; color: var(--ink); }
.fine { font-size: .88rem; color: var(--muted); text-align: center; margin: 22px auto 0; max-width: 44em; }
.fine.left { text-align: left; margin: 12px 4px 0; }

/* 음악 */
.player { max-width: 720px; margin: 0 auto; background: linear-gradient(180deg, #fff, #fffaf3); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 14px; }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.track { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 0; border-radius: 18px; background: transparent; color: inherit; font: inherit; text-align: left; transition: background .15s; }
.track:hover { background: var(--latte-l); }
.track.on { background: #fdebd9; }
.track .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.track .t b { font: 1.12rem var(--round); font-weight: 400; }
.track .t small { color: var(--muted); font-size: .85rem; }
.track .time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; }
.pp { position: relative; flex: 0 0 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #b98660, var(--coffee)); box-shadow: 0 3px 0 var(--coffee-d); }
.pp::before { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.track.on.playing .pp::before { left: 14px; top: 14px; width: 5px; height: 16px; border: 0; background: #fff; box-shadow: 10px 0 0 #fff; border-radius: 2px; }
.progress { height: 8px; margin: 12px 8px 0; border-radius: 99px; background: var(--latte-l); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f3c89d, #c98f63); border-radius: 99px; }

/* 화면 */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0 -4px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .shots { justify-content: center; } }
.shots figure { flex: 0 0 220px; margin: 0; scroll-snap-align: center; }
.shots img { width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); background: url("/assets/icon-256.png") center / 72px no-repeat, linear-gradient(180deg, #fde7d2, #f6d1b5); border: 6px solid #fff; color: transparent; font-size: 0; }
.wide { margin: 18px auto 0; max-width: 960px; }
.wide img { width: 100%; aspect-ratio: 2560 / 1600; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow-lg); background: url("/assets/icon-256.png") center / 72px no-repeat, linear-gradient(180deg, #dcefff, #fde7d2); color: transparent; font-size: 0; }
.shots figcaption, .wide figcaption { text-align: center; font: 1.05rem var(--round); margin-top: 10px; }

/* 약속 */
.promise { display: grid; gap: 16px; }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .promise { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promise div { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 20px 22px; }
.promise h3 { font-size: 1.3rem; margin: 0 0 6px; }
.promise p { margin: 0; color: var(--muted); font-size: .96rem; }

/* 질문 */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font: 1.15rem/1.4 var(--round); padding: 14px 24px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 22px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* 마지막 */
.last { text-align: center; padding: 64px 0; }
.appicon { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow-lg); margin: 0 auto 14px; }
.cta.center { justify-content: center; }
.last h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 4px; }
.store-note { margin: 0 0 20px; color: var(--muted); }

/* 바닥 */
footer { border-top: 1px solid var(--line); background: #fff; padding: 30px 0 40px; font-size: .88rem; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
footer .links a { font-weight: 700; color: var(--ink); text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
footer p { margin: 4px 0; }
footer details.biz { font-size: .82rem; }
footer details.biz summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; padding: 4px 0; }
footer details.biz summary::-webkit-details-marker { display: none; }
footer details.biz summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
footer details.biz[open] summary::after { transform: translateY(1px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .toast { transition: none; } .hero-art .logo, .steam path { animation: none; } }
