/* 참깨도사 랜딩 — 앱 시안(docs/ui/home-drawn.html)과 같은 색·손그림 선 */
:root {
  --ink: #111111;
  --white: #ffffff;
  --cream: #fcf4ec;
  --yellow: #fcd46c;
  --ochre: #ecb474;
  --orange: #e8952a;
  --dbrown: #a45c34;
  --green: #9cc79a;
  --text2: #4a3d31;
  --muted: #7a6a5a;
  --line: 3px solid var(--ink);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-snap-type: y mandatory;
  background: var(--cream);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* 휴대폰에선 화면보다 긴 섹션이 있어 가까울 때만 맞춘다 */
@media (max-width: 640px) {
  html { scroll-snap-type: y proximity; }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 한 화면씩 넘어가는 섹션 */
.step {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.step--white { background: var(--white); }
.step--yellow { background: var(--yellow); }

.eyebrow { font-size: 15px; font-weight: 700; color: var(--dbrown); }
.h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; font-weight: 900; letter-spacing: -0.02em; }
.lead { font-size: 17px; color: var(--text2); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* 손그림 테두리: 모서리마다 조금씩 다른 둥글기 */
.drawn { border: var(--line); border-radius: 22px 18px 26px 20px / 18px 26px 20px 22px; }
.drawn-2 { border: var(--line); border-radius: 18px 24px 20px 26px / 24px 18px 26px 20px; }
.drawn-3 { border: var(--line); border-radius: 26px 20px 22px 18px / 20px 22px 18px 26px; }

/* 머리 */
.top { padding: 0 0 24px; justify-content: flex-start; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo span { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.header-cta {
  padding: 8px 18px; background: var(--yellow); border: var(--line);
  border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px;
  font-weight: 700; font-size: 15px; text-decoration: none;
}

/* 첫 화면 */
.hero { flex: 1; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 32px 40px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.25; font-weight: 900; letter-spacing: -0.03em; }
.hero-copy .lead { max-width: 30em; }
.ask-bubble {
  align-self: flex-start; padding: 6px 14px; background: var(--white);
  border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px;
  font-size: 15px; font-weight: 700;
}
.note { font-size: 14px; color: var(--muted); }
.hero-art { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.say {
  background: var(--white); border: var(--line);
  border-radius: 24px 20px 26px 18px / 20px 26px 18px 24px;
  padding: 12px 22px; font-size: 19px; font-weight: 700;
}
.say-tail { margin-top: -7px; }
.cushion { position: relative; width: 100%; max-width: 320px; display: flex; justify-content: center; }
.cushion::before {
  content: ''; position: absolute; bottom: 6px; width: 78%; height: 56px;
  background: var(--ochre); border: var(--line); border-radius: 50%;
}
.cushion img { position: relative; width: 100%; max-width: 300px; }
@media (prefers-reduced-motion: no-preference) {
  .cushion img { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-1.5deg); }
}
/* 공중에 떠 있는 옥수수: 참깨도사 오른쪽 위에서 둥실둥실. 누르면 참깨도사 쪽으로 날아가 사라진다 */
/* 옥수수와 '눌러보기' 묶음: 옥수수만 떠다니고 글자는 그 아래 가운데에 가만히 */
.feed-spot {
  position: absolute; top: 0; right: -16%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.feed {
  position: relative;
  padding: 6px; background: none; border: 0; cursor: pointer; border-radius: 50%;
  transition: transform 0.6s cubic-bezier(.5, -0.3, .7, 1), opacity 0.6s;
}
.feed .corn { position: relative; display: block; width: 96px; height: 96px; filter: drop-shadow(0 10px 6px rgba(17, 17, 17, 0.12)); }
/* 눈에 띄게: 뒤에 퍼지는 노란 빛 + 둘레에서 번갈아 깜빡이는 별 */
.feed .glow {
  position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 212, 108, 0.85) 0%, rgba(252, 212, 108, 0.35) 45%, rgba(252, 212, 108, 0) 70%);
}
.feed .spark { position: absolute; opacity: 0.9; }
/* '눌러보기': 옥수수 아래 작은 글자. 기울지 않고 은은하게 깜빡인다 */
.tap-hint {
  white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--dbrown);
  letter-spacing: 0.02em; pointer-events: none; transition: opacity 0.3s;
}
.feed.fed + .tap-hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .feed:not(.fed) + .tap-hint { animation: blink 1.6s ease-in-out infinite; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.feed .s1 { top: -6%; left: -10%; }
.feed .s2 { top: 8%; right: -8%; }
.feed .s3 { top: 42%; left: -16%; }
.feed:hover .corn { transform: scale(1.08); }
.feed:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.feed.fed { transform: translate(-120%, 90%) scale(0.4) rotate(-30deg); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .feed-spot:not(:has(.fed)) { animation: float 2.6s ease-in-out infinite; }
  .feed .glow { animation: glow 1.6s ease-in-out infinite; }
  .feed .spark { animation: twinkle 1.4s ease-in-out infinite; }
  .feed .s2 { animation-delay: 0.45s; }
  .feed .s3 { animation-delay: 0.9s; }
}
@keyframes float {
  0%, 100% { translate: 0 0; rotate: -10deg; }
  50% { translate: 0 -20px; rotate: 8deg; }
}
@keyframes glow {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes twinkle {
  0%, 100% { transform: scale(0.3) rotate(0deg); opacity: 0; }
  50% { transform: scale(1) rotate(45deg); opacity: 1; }
}
/* 휴대폰: 첫 화면에 참깨도사·옥수수 버튼·제목이 함께 보이게 그림을 위로, 작게 */
@media (max-width: 640px) {
  .hero { gap: 20px; padding-top: 0; }
  .hero-art { order: -1; flex-basis: 100%; }
  .say { font-size: 16px; padding: 8px 16px; }
  .cushion { max-width: 200px; }
  .cushion::before { height: 40px; }
  .cushion img { max-width: 180px; }
  .feed-spot { right: -24%; }
  .tap-hint { font-size: 10px; }
  .feed .corn { width: 64px; height: 64px; }
  .hero-copy { gap: 14px; }
  .hero h1 { font-size: 28px; }
  .hero-copy .lead { font-size: 15px; }
  .top .down { display: none; }
}
.down { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px 0; color: var(--muted); font-size: 13px; text-decoration: none; }

/* 스토어 버튼 */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 10px 20px; background: var(--ink); color: var(--white);
  border-radius: 16px 20px 14px 18px; text-decoration: none;
}
.store:nth-child(2) { border-radius: 20px 14px 18px 16px; }
.store span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store small { font-size: 11px; opacity: 0.85; }
.store b { font-size: 16px; }
/* 출시 전: 링크 없이 '곧 만나요' */
.store--soon { background: var(--white); color: var(--ink); border: var(--line); cursor: default; }

/* 하루 한 번 */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps3 figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.steps3 img { width: 100%; max-width: 110px; }
.steps3 figcaption { font-size: 14px; font-weight: 700; }

.slip-wrap { display: flex; justify-content: center; }
.slip {
  width: 100%; max-width: 400px; background: var(--cream); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px; transform: rotate(-1.2deg);
  border: var(--line); border-radius: 22px 28px 20px 26px / 26px 20px 28px 22px;
}
.slip-date { text-align: center; font-size: 13px; color: var(--muted); }
.slip-title { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 21px; font-weight: 900; text-align: center; }
.slip-title::after { content: ''; width: 48px; height: 4px; background: var(--orange); border-radius: 2px; }
.slip-score { display: flex; align-items: center; justify-content: center; gap: 16px; }
.slip-score > div { display: flex; flex-direction: column; align-items: center; }
.slip-score small { font-size: 12px; color: var(--muted); }
.slip-score strong { font-size: 48px; line-height: 1; font-weight: 900; color: var(--dbrown); }
.slip-score strong span { font-size: 17px; }
.band { margin-top: 6px; padding: 2px 10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; }
.slip-score img { width: 96px; height: 96px; }
.slip p { font-size: 15px; line-height: 1.7; }
.locked { border: 2px dashed var(--ochre); border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 10px; background: var(--white); font-size: 14px; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card img { width: 88px; height: 88px; }
.card h3 { font-size: 20px; font-weight: 900; }
.card p { font-size: 15px; color: var(--text2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.chips li { padding: 4px 12px; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px 14px 14px 4px; font-size: 13px; }

/* 듣기 좋은 말만 하지 않소 */
.honest { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.honest-art { flex: 0 1 240px; margin: 0 auto; }
.honest-art img { width: 100%; max-width: 220px; margin: 0 auto; }
.honest-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.honest-copy h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; font-weight: 900; letter-spacing: -0.02em; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.points h3 { font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.points p { font-size: 15px; }

/* 복채 */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.price .card { padding: 28px; gap: 14px; }
.tag { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; }
.tag--free { background: var(--green); }
.tag--bread { background: var(--yellow); }
.price ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }

/* 마지막 + 바닥 */
.last { padding-bottom: 0; }
.last .center { flex: 1; justify-content: center; gap: 20px; padding-bottom: 48px; }
.last .center img { width: 150px; height: 150px; }
.last h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; }
.footer { background: var(--ink); color: #d4d4d4; font-size: 14px; }
.footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: var(--white); }
.footer p { line-height: 1.7; }
.footer .copy { color: #a8a8a8; }

/* 글 페이지(방침·약관·계정 삭제) */
.doc-page { scroll-snap-type: none; }
.doc-header { border-bottom: var(--line); background: var(--cream); }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.doc h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc h2 { font-size: 20px; font-weight: 900; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 16px; color: var(--text2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.doc th, .doc td { border: 1px solid #d9cbbd; padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--white); }
.doc .meta { font-size: 14px; color: var(--muted); }
.doc .box { background: var(--white); padding: 16px 18px; margin-top: 12px; }
.table-scroll { overflow-x: auto; }
