/* 뭐먹픽 소개 사이트 공통 스타일
   방향: 분식집 간판처럼 단무지 노랑 + 남색 글씨, 메뉴 뽑기 "주문표"가 주인공 */
:root {
  --yolk: #ffd23f;      /* 단무지·계란말이 노랑: 대표 색 */
  --yolk-deep: #f2b705;
  --ink: #1b1b3a;       /* 간판 남색: 글자 */
  --ink-soft: #4a4a6a;
  --paper: #ffffff;
  --rice: #f6f5f0;      /* 밥알 회백색: 보조 바탕 */
  --chili: #e63c2f;     /* 고춧가루 빨강: 맵기 표시에만 */
  --scallion: #2e7d5b;  /* 파 초록: 배달·집밥 태그에만 */
  --line: #e4e2da;
  --todo-bg: #fff1a8;
  --todo-ink: #5a4500;
  --guess-bg: #dcecff;
  --guess-ink: #123b6b;
  --max: 1040px;
  --display: "Black Han Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px;
}

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

/* 상단 */
.site-header { background: var(--yolk); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px; flex-wrap: wrap;
}
.logo {
  font-family: var(--display); font-size: 1.6rem; line-height: 1;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: rgba(27, 27, 58, .08); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--yolk); }

/* 홈 첫 화면 */
.hero { background: var(--yolk); padding: 32px 0 72px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 6.6rem); line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero-copy p { font-size: 1.15rem; max-width: 30ch; margin: 0 0 28px; color: var(--ink); }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 14px 22px; border-radius: 14px; font-weight: 700;
}
.store small { display: block; font-weight: 400; font-size: .78rem; opacity: .75; line-height: 1.2; }

/* 휴대폰 화면 그림 */
.phone {
  width: 100%; max-width: 300px; justify-self: center;
  background: var(--ink); border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 60px -24px rgba(27, 27, 58, .55);
}
.screen {
  background: var(--rice); border-radius: 30px; padding: 22px 16px 18px;
  min-height: 520px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.screen::before {                       /* 카메라 자리 */
  content: ""; position: absolute; top: 8px; left: 50%; width: 70px; height: 6px;
  margin-left: -35px; border-radius: 6px; background: var(--ink); opacity: .9;
}
.screen-top { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-soft); margin: 6px 4px 14px; }
.pick-card {
  background: var(--paper); border-radius: 22px; padding: 22px 18px; flex: 1;
  display: flex; flex-direction: column; border: 2px solid var(--ink);
}
.pick-label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; }
.pick-name {
  font-family: var(--display); font-size: 2.4rem; line-height: 1.1; margin: 0 0 8px;
  min-height: 2.3em; display: flex; align-items: flex-end;
}
.pick-note { margin: 0 0 14px; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; min-height: 3.2em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag {
  font-size: .78rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 1.5px solid currentColor;
}
.tag.where { color: var(--scallion); }
.tag.heat { color: var(--chili); }
.tag.heat[data-heat="0"] { color: var(--ink-soft); }
.screen-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 12px; }
.btn-soft, .btn-main {
  font: inherit; font-weight: 700; font-size: .95rem; border-radius: 16px; padding: 13px 8px; cursor: pointer;
  border: 2px solid var(--ink); text-align: center;
}
.btn-soft { background: var(--paper); color: var(--ink); }
.btn-main { background: var(--yolk); color: var(--ink); }
.btn-soft:hover { background: #ecebe4; }
.btn-main:hover { background: var(--yolk-deep); }
.pick-name.spin { animation: spin .35s ease-out; }
@keyframes spin { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pick-name.spin { animation: none; } }
.decided { font-size: .82rem; text-align: center; margin: 10px 0 0; min-height: 1.4em; color: var(--scallion); font-weight: 700; }

/* 작은 화면 조각(쓰는 방법) */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.flow li { counter-increment: s; }
.mini {
  background: var(--ink); border-radius: 28px; padding: 8px; max-width: 220px; margin: 0 auto 18px;
}
.mini .in {
  background: var(--paper); border-radius: 21px; height: 300px; padding: 26px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.mini .date { font-size: .72rem; color: var(--ink-soft); }
.mini .big { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; }
.mini .say { font-size: .8rem; color: var(--ink-soft); }
.mini .q { font-weight: 700; font-size: .95rem; }
.mini .opt { border: 2px solid var(--line); border-radius: 14px; padding: 10px; font-weight: 700; font-size: .9rem; }
.mini .opt.on { border-color: var(--ink); background: var(--yolk); }
.mini .skip { font-size: .75rem; color: var(--ink-soft); text-align: center; }
.mini .card { border: 2px solid var(--ink); border-radius: 14px; padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.mini .card small { font-size: .7rem; color: var(--ink-soft); }
.mini .go { margin-top: auto; background: var(--yolk); border: 2px solid var(--ink); border-radius: 14px; padding: 10px; text-align: center; font-weight: 700; font-size: .9rem; }
.flow h3 { font-size: 1.1rem; margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; }
.flow h3::before { content: counter(s); font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--yolk-deep); }
.flow p { margin: 0; color: var(--ink-soft); }

/* 안심 포인트 */
.safe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.safe div { background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; padding: 22px; }
.safe strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.safe p { margin: 0; color: var(--ink-soft); }

/* 마지막 다운로드 */
.final { background: var(--yolk); padding: 72px 0; text-align: center; }
.final h2 { margin-bottom: 24px; }

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink-soft); }

/* 홈 본문 */
.section { padding: 72px 0; }
.section.rice { background: var(--rice); }
.section h2, .final h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2; margin: 0 0 32px; letter-spacing: -0.01em;
}
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.points h3 { font-size: 1.15rem; margin: 0 0 6px; }
.points p { margin: 0; color: var(--ink-soft); }
.points li { border-top: 4px solid var(--ink); padding-top: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; max-width: 640px; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 64px 1fr; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem;
}
.steps li::before {
  content: counter(s); font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--yolk-deep);
}

/* 문서형 페이지 */
.page-head { background: var(--yolk); padding: 40px 0 44px; }
.page-head h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.1; margin: 0 0 8px;
}
.page-head p { margin: 0; }
main.doc-main { padding: 48px 0 80px; }
.doc { max-width: 720px; }
.doc h2 { font-size: 1.15rem; margin: 40px 0 8px; }
.toc { background: var(--rice); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { border-bottom: 2px solid var(--ink); font-weight: 700; }

.info { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.info dt { color: var(--ink-soft); }
.info dd { margin: 0; font-weight: 500; }
@media (max-width: 480px) {
  .info { grid-template-columns: 1fr; gap: 0; }
  .info dd { margin-bottom: 12px; }
}

.mail {
  display: inline-block; font-family: var(--display); font-size: clamp(1.4rem, 5vw, 2rem);
  margin: 8px 0 4px; word-break: break-all;
}

/* 하단 */
.site-footer { background: var(--ink); color: #c9c9da; padding: 40px 0 48px; font-size: .88rem; }
.site-footer p { margin: 2px 0; }
.site-footer a { color: var(--paper); }
.site-footer .logo { color: var(--yolk); font-size: 1.4rem; display: inline-block; margin-bottom: 12px; }

@media (max-width: 760px) {
  .hero { padding: 20px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .points, .flow, .safe { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
}

/* ── 검토용 표시 ──────────────────────────────────
   .todo  = 아직 모르는 값(빈칸). 채워야 함
   .guess = 추측해서 쓴 내용. 확인 필요
   <body>의 class="review"를 빼면 색 표시가 사라집니다. */
body.review .todo {
  background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 700;
}
body.review .guess { background: var(--guess-bg); color: var(--guess-ink); border-radius: 4px; padding: 0 2px; }
body.review .guess::after { content: " (추정)"; font-size: .8em; font-weight: 700; }
.review-bar { display: none; }
body.review .review-bar { display: block; background: #000; color: #fff; font-size: .85rem; padding: 6px 0; }
body.review .review-bar span { border-radius: 4px; padding: 0 4px; font-weight: 700; }
body.review .review-bar .k-todo { background: var(--todo-bg); color: var(--todo-ink); }
body.review .review-bar .k-guess { background: var(--guess-bg); color: var(--guess-ink); }
