/* 가뿐 웹사이트. 앱과 같은 색(회색 바탕, 흰 카드, 먹색 글자, 주황 강조)과 Pretendard. */
:root {
  --bg: #f3f4f5;
  --card: #ffffff;
  --ink: #242126;
  --sub: #8e8e93;
  --line: #e5e5ea;
  --accent: #f96523;
  --accent-soft: #fee9e0;
  --carbs: #facc2e;
  --protein: #e8786a;
  --fat: #8db656;
}

* { box-sizing: border-box; }

/* 터치할 때 브라우저가 깜빡이는 기본 효과를 없앤다(모든 요소가 물려받음). */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.top { padding: 20px 0 8px; }
header.top a { display: inline-block; }
header.top img { height: 34px; width: auto; display: block; }

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px 22px;
  margin: 12px 0 24px;
}

h1 { font-size: 28px; line-height: 1.3; letter-spacing: -0.5px; margin: 0 0 6px; font-weight: 800; }
h2 { font-size: 19px; letter-spacing: -0.3px; margin: 36px 0 10px; font-weight: 800; }
h3 { font-size: 16px; margin: 22px 0 6px; font-weight: 700; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 20px; }
li { margin: 4px 0; }
.meta { color: var(--sub); font-size: 14px; margin-bottom: 24px; }
.note { background: var(--bg); border-radius: 14px; padding: 14px 16px; font-size: 15px; }

.table { overflow-x: auto; margin: 8px 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td:first-child { font-weight: 600; width: 28%; }
th { color: var(--sub); font-weight: 700; font-size: 13px; white-space: nowrap; }

.items { margin: 8px 0 16px; }
.item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.item b { display: block; margin-bottom: 2px; }
.item em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.item p { margin: 0; font-size: 15px; }
.item .purpose { color: var(--sub); font-size: 14px; }

.toc { background: var(--bg); border-radius: 14px; padding: 14px 16px 14px 34px; font-size: 15px; }

footer.biz { color: var(--sub); font-size: 13px; line-height: 1.8; padding: 8px 20px 40px; }
footer.biz nav { margin-bottom: 10px; font-weight: 700; }
footer.biz nav a { text-decoration: none; margin-right: 14px; color: var(--ink); }
/* 항목(상호·대표·번호)마다 한 덩어리로 두고, 항목 사이에서만 줄을 바꾼다(좁은 화면에서 가로로 넘치지 않게). */
footer.biz span { white-space: nowrap; display: inline-block; }
footer.biz span + span::before { content: "·"; margin-right: 6px; }

/* 랜딩 */
@font-face { font-family: "Paperlogy Title"; src: url("/fonts/paperlogy-title.woff?v=3") format("woff"); font-weight: 700; font-display: swap; }
/* 섹션마다 위아래로 같은 여백을 둬서 섹션 사이는 그 두 배(모바일 112px, 데스크탑 192px). */
/* 랜딩은 흰 바탕에 옅은 회색 카드(다른 문서 페이지는 회색 바탕에 흰 카드). */
.landing { --sec: 56px; --bg: #ffffff; --card: #f6f7f8; }
/* 메뉴 막대에 제목이 가리지 않게. */
#features, #pricing { scroll-margin-top: 24px; }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
/* 랜딩 제목 글꼴. 쓰는 글자만 뽑은 파일이라 문구를 바꾸면 web/title_font.py를 다시 돌린다. */
.landing h1, .landing h2 { font-family: "Paperlogy Title", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.center { text-align: center; }
.btn { display: inline-block; border-radius: 999px; padding: 14px 24px; font-weight: 700; text-decoration: none; transition: background-color .15s, transform .15s; }
.btn-dark { background: var(--ink); color: #fff; }

.lnav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.lnav .wide { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.lnav-logo { height: 26px; width: auto; display: block; transition: opacity .15s; }
.lnav nav a { display: inline-block; padding: 8px 0; margin-left: 14px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); transition: color .15s; }

.lhero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; padding-top: 72px; padding-bottom: var(--sec); }
.lhero-text { text-align: center; }
.lhero-h1 { font-size: 34px; line-height: 1.24; margin: 0 0 20px; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }
.btn-store { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; font-size: 15px; white-space: nowrap; }
.btn-store svg { flex: none; width: auto; height: 18px; }
/* 첫 화면 그림: 찍는 화면 → 결과 화면. 모든 크기를 그림 폭(cqw)에 맞춰 함께 줄어든다. 모바일은 화면 끝까지 쓰고, 화살표 없이 휴대폰을 키운다. */
.lhero-art { position: relative; container-type: inline-size; justify-self: center; width: min(100vw, 600px); aspect-ratio: 100 / 93; margin-top: 12px; }
.hphone { position: absolute; width: 38cqw; padding: 1cqw; border-radius: 5.8cqw; background: #1d1c20; }
.hphone img { display: block; width: 100%; height: auto; border-radius: 4.9cqw; }
.hphone-cam { left: 7.5cqw; top: 10cqw; transform: rotate(-4deg); }
.hphone-res { right: 6cqw; top: 2cqw; transform: rotate(4deg); }
.hscribble { display: none; position: absolute; left: 42.4cqw; top: 46cqw; width: 14cqw; color: var(--ink); }
.hlabel { position: absolute; padding: 1.3cqw 2.6cqw; border-radius: 2.6cqw; background: #fff; box-shadow: 0 .6cqw 2.4cqw rgba(20, 20, 30, .12); font-size: 3.1cqw; font-weight: 500; line-height: 1.35; text-align: center; white-space: nowrap; transform: rotate(4deg); }
.hlabel b { display: block; font-weight: 800; }
.hl-carb { left: 53cqw; top: 16cqw; }
.hl-prot { left: 49.5cqw; top: 31cqw; }
.hl-fat { right: 3cqw; top: 23cqw; }

.frow { display: grid; gap: 24px; align-items: center; padding: var(--sec) 0; }
.ftext { text-align: center; }
.ftext h2 { font-size: clamp(26px, 8vw, 32px); line-height: 1.25; margin: 0; }
/* 그리드 칸이 안의 내용(공유 이미지 줄) 길이만큼 늘어나 화면 밖으로 나가지 않게. */
.frow > * { min-width: 0; }
.fart { display: flex; justify-content: center; min-width: 0; }
/* 실제 앱 화면을 넣는 휴대폰 틀(그림자 없이 먹색 테두리만) */
/* 모바일은 화면 너비에 맞춘다(제목이 먼저 보이도록 화면의 61.5%, 띄운 카드까지 화면 안에 넉넉히 들어온다). */
.phone { --pw: min(61.5vw, 255px); position: relative; width: var(--pw); background: #1d1c20; border-radius: calc(var(--pw) * .175); padding: calc(var(--pw) * .029); }
.phone img { width: 100%; height: auto; display: block; border-radius: calc(var(--pw) * .146); }
/* 화면 속 핵심 카드를 키워 휴대폰 밖으로 띄운다(앱스토어 스크린샷과 같은 방식). */
.phone .phone-card { position: absolute; left: 50%; width: 110%; max-width: none; height: auto; border-radius: 0; transform: translateX(-50%); filter: drop-shadow(0 6px 18px rgba(20, 20, 30, .18)); }
.phone .pc-items { bottom: -5%; width: 114%; }
.phone .pc-home { top: 16%; }
.phone .pc-goal { top: 6.5%; }
/* 공유 이미지: 모바일은 화면 끝까지 꽉 채워(.wide의 좌우 여백 20px만큼 밖으로) 한 장씩 옆으로 넘기고 아래 점으로 몇 번째인지. */
.frow.stack .fart { display: block; }
.shares { margin: 0 -20px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shares::-webkit-scrollbar { display: none; }
.shares img { flex: 0 0 100%; width: 100%; height: auto; display: block; scroll-snap-align: start; scroll-snap-stop: always; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #d1d1d6; transition: background 0.2s; }
.dots i.on { background: var(--accent); }

.pricing { padding-top: var(--sec); padding-bottom: var(--sec); }
.pricing h2 { font-size: clamp(26px, 8vw, 32px); margin: 0 0 6px; }
.pricing .sub { color: var(--sub); font-size: 14.5px; line-height: 1.6; margin: 0 auto 26px; max-width: 460px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 0 auto; }
.plan { background: var(--card); border-radius: 20px; padding: 20px 14px 14px; position: relative; border: 2px solid transparent; }
.plan.best { border-color: var(--ink); }
.plan b { font-size: 15px; }
.price { font-size: 21px; font-weight: 900; line-height: 1.4; margin: 4px 0 2px; letter-spacing: -0.5px; white-space: nowrap; }
.price small { font-size: 12.5px; color: var(--sub); font-weight: 600; letter-spacing: 0; }
.per { color: var(--sub); font-size: 13px; margin: 0; }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

.faq2 { padding-top: var(--sec); padding-bottom: var(--sec); max-width: 760px; }
.faq2 h2 { font-size: clamp(26px, 8vw, 32px); margin: 0 0 16px; }
.faq2 details { background: var(--card); border-radius: 16px; margin-bottom: 8px; overflow: hidden; transition: background-color .15s; }
/* 카드 여백까지 눌리게 여백을 질문 줄에 둔다. */
.faq2 summary { position: relative; padding: 14px 44px 14px 18px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.faq2 summary::-webkit-details-marker { display: none; }
/* +는 막대 두 개. 펼치면 세로 막대가 누워 –가 된다. */
.faq2 summary::before, .faq2 summary::after { content: ""; position: absolute; top: calc(14px + .85em); right: 20px; width: 12px; height: 1.5px; margin-top: -.75px; border-radius: 1px; background: var(--sub); }
.faq2 summary::before { transform: rotate(90deg); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.faq2 details[open]:not(.closing) summary::before { transform: none; }
.faq2 details p { color: #5f5f66; margin: -4px 18px 16px; font-size: 14.5px; line-height: 1.65; }

.final { text-align: center; padding: var(--sec) 20px calc(var(--sec) + 16px); }
.final-logo { height: 38px; width: auto; }
.final p { color: var(--sub); font-size: 15px; margin: 8px 0 18px; }
.final .cta-row { justify-content: center; margin: 0 auto; }
footer.biz .credit { font-size: 12px; }
footer.biz nav a { transition: color .15s; }

/* 마우스를 쓰는 기기에서만(터치에서 눌린 모양이 남지 않게). */
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: #48444c; transform: translateY(-2px); }
  .lnav a:hover .lnav-logo { opacity: .65; }
  .lnav nav a:hover, footer.biz nav a:hover { color: var(--sub); }
  .faq2 details:has(summary:hover) { background: #eeeff1; }
}

/* 아주 좁은 화면은 가격이 칸을 넘지 않게 한 줄에 하나씩. */
@media (max-width: 349px) {
  .plans { grid-template-columns: 1fr; }
}

/* 좁은 화면의 푸터: 줄 앞에 점이 오지 않게 항목을 한 줄에 하나씩. */
@media (max-width: 859px) {
  footer.biz { font-size: 12.5px; line-height: 1.75; }
  footer.biz span { display: block; white-space: normal; }
  footer.biz span + span::before { content: none; }
}

@media (min-width: 860px) {
  .landing { --sec: 96px; }
  .lnav .wide { height: 60px; }
  .lnav-logo { height: 28px; }
  .lnav nav a { margin-left: 18px; font-size: 15px; }
  .lhero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding-top: 56px; }
  .lhero-h1 { font-size: 54px; margin-bottom: 28px; }
  .lhero-text { text-align: left; }
  .cta-row { gap: 14px 10px; justify-content: flex-start; margin: 0; }
  .btn-store { flex: 0 0 auto; gap: 8px; padding: 14px 24px; font-size: 16px; }
  .btn-store svg { height: 20px; }
  .lhero-art { width: 100%; margin-top: 0; }
  .hphone { width: 36cqw; padding: .9cqw; border-radius: 5.6cqw; }
  .hphone img { border-radius: 4.75cqw; }
  .hphone-cam { left: 2.5cqw; top: 11cqw; }
  .hphone-res { right: 3cqw; }
  .hscribble { display: block; }
  .hl-carb { left: 57cqw; }
  .hl-prot { left: 53cqw; }
  .hl-fat { right: 1cqw; }
  .frow { gap: 40px; }
  .frow.stack .shares { width: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; overflow: visible; }
  .frow.stack .shares img { border-radius: 18px; }
  .dots { display: none; }
  .ftext h2 { font-size: 40px; }
  .phone { width: 290px; border-radius: 46px; padding: 8px; }
  .phone img { border-radius: 38px; }
  .phone .phone-card { border-radius: 0; }
  .pricing h2 { font-size: 30px; margin-bottom: 8px; }
  .pricing .sub { font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
  .plans { gap: 12px; }
  .plan { border-radius: 22px; padding: 22px 18px 18px; }
  .plan b { font-size: 16px; }
  .price { font-size: 26px; line-height: 1.7; margin: 6px 0 2px; }
  .price small { font-size: 14px; }
  .per { font-size: 14px; }
  .faq2 h2 { font-size: 28px; margin-bottom: 18px; }
  .faq2 details { border-radius: 18px; margin-bottom: 10px; }
  .faq2 summary { padding: 16px 48px 16px 20px; font-size: 16px; }
  .faq2 summary::before, .faq2 summary::after { top: calc(16px + .85em); right: 22px; }
  .faq2 details p { margin: -6px 20px 18px; font-size: 15.5px; line-height: 1.7; }
  .final-logo { height: 46px; }
  .final p { font-size: 17px; margin: 10px 0 20px; }
}

/* 고객 지원 */
.faq h3 { margin-top: 26px; }
.contact { font-size: 18px; font-weight: 800; }
.contact a { color: var(--accent); text-decoration: none; }
