/* JipCook 랜딩(/hello·/hello-ko) 공용 스타일.
   팔레트·테마 전환 3단(미디어쿼리→data-theme)은 legal.css와 같은 문법 —
   스토어·앱·법적 문서·랜딩이 같은 제품으로 보여야 한다.
   본문은 시스템 스택(웹폰트 실패 시에도 첫인상 유지), 제목·이야기만 세리프 웹폰트 —
   실패해도 Charter/Georgia(세리프 폴백)로 떨어져 톤이 안 깨진다.
   v2(2026-08-06): 레퍼런스 조사 반영 — 히어로=실제 앱 화면(폰 프레임), 카피 다이어트.
   v3(2026-08-07): 타이포 보완 — 기록·가족 계열 인기 앱 실측(Retro=Roslindale/PPEditorialNew,
   Day One=Noto Serif, Mela=Charter/ui-serif) 공통 패턴 = "제목 세리프 + 본문 산세리프".
   EN=Fraunces / KO=Noto Serif KR. 히어로에 앰버 글로우, 이야기 단락=인용문체. */

:root {
  --ground: #faf9f7;      /* cream */
  --panel: #ffffff;
  --ink: #201b17;         /* cocoa */
  --muted: #6e6660;       /* cocoaSoft */
  --accent: #c23f1e;      /* terracottaDark — 흰 배경 위 AA */
  --amber: #f0a830;       /* mustard */
  --line: rgba(32, 27, 23, 0.11);
  --tint: rgba(240, 168, 48, 0.13);
  --glow: rgba(240, 168, 48, 0.22);
  --cardline: rgba(32, 27, 23, 0.15);
  --cardshadow: 0 10px 28px rgba(32, 27, 23, 0.09);
  --display: "Fraunces", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
}

/* 한국어 페이지 — 주아(몽글 둥근 고딕, 사용자 선택 08-07). SIL OFL이라 상업 사용 자유.
   주아는 400 한 웨이트뿐이라 KO 표시 요소는 weight 400으로 내린다. */
html[lang="ko"] {
  --display: "Jua", "BM Jua", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17130f; --panel: #1f1a15; --ink: #f2ede7; --muted: #a79e96;
    --accent: #ff7a54; --line: rgba(242, 237, 231, 0.14); --tint: rgba(240, 168, 48, 0.11);
    --cardline: rgba(242, 237, 231, 0.20); --cardshadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --ground: #17130f; --panel: #1f1a15; --ink: #f2ede7; --muted: #a79e96;
  --accent: #ff7a54; --line: rgba(242, 237, 231, 0.14); --tint: rgba(240, 168, 48, 0.11);
  --cardline: rgba(242, 237, 231, 0.20); --cardshadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  --ground: #faf9f7; --panel: #ffffff; --ink: #201b17; --muted: #6e6660;
  --accent: #c23f1e; --line: rgba(32, 27, 23, 0.11); --tint: rgba(240, 168, 48, 0.13);
  --cardline: rgba(32, 27, 23, 0.15); --cardshadow: 0 10px 28px rgba(32, 27, 23, 0.09);
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  word-break: keep-all;
}

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 20px 72px; }

/* ── 머리 (legal과 동일 문법) ───────────────────────── */

header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 18px;
}

.brand { display: inline-flex; text-decoration: none; line-height: 0; }
.brand img { display: block; width: 128px; height: auto; }
.brand .mark-dark { display: none; }

@media (prefers-color-scheme: dark) {
  .brand .mark-light { display: none; }
  .brand .mark-dark { display: block; }
}
:root[data-theme="dark"] .brand .mark-light { display: none; }
:root[data-theme="dark"] .brand .mark-dark { display: block; }
:root[data-theme="light"] .brand .mark-light { display: block; }
:root[data-theme="light"] .brand .mark-dark { display: none; }

.lang {
  font-size: 0.86rem; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; white-space: nowrap;
}
.lang:hover, .lang:focus-visible { color: var(--accent); border-color: var(--accent); }

/* ── 히어로: 카피 절반 + 실제 앱 화면 절반 ──────────── */

.hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  align-items: center; gap: 44px;
  padding: 44px 0 10px;
  /* 폰 뒤 앰버 글로우 — 크림 단색 히어로의 밋밋함을 걷어냄 */
  background: radial-gradient(46% 62% at 76% 46%, var(--glow), transparent 72%);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 3.3rem);
  line-height: 1.12; letter-spacing: -0.01em;
  margin: 0 0 18px; text-wrap: balance;
}

/* 강조어 — EN은 세리프 이탤릭(에디토리얼), KO는 이탤릭 대신 색으로 */
.hero h1 em { font-style: italic; color: var(--accent); }
html[lang="ko"] .hero h1 em { font-style: normal; }

/* KO 표시 요소 = 주아 400 (가짜 볼드 방지) + 크기 보정 */
html[lang="ko"] .hero h1, html[lang="ko"] h2,
html[lang="ko"] .vcard h3, html[lang="ko"] .story p { font-weight: 400; }
html[lang="ko"] .hero h1 { font-size: clamp(2.0rem, 5vw, 2.7rem); line-height: 1.2; }

/* 타입 스케일(10 §4): 부제·CTA·배지 이름 = 같은 1.02rem / 노트·언어 버튼 = 0.86rem / 미세 라벨 = 0.63rem */
.hero .lede {
  font-size: 1.02rem; color: var(--muted);
  margin: 0 0 28px; max-width: 30em; text-wrap: pretty;
}

.cta {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 1.02rem; font-weight: 700; text-decoration: none;
  padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(194, 63, 30, 0.25);
}
.cta:hover, .cta:focus-visible { filter: brightness(1.06); }
.cta:active { transform: scale(0.97); }

.cta-note { font-size: 0.86rem; color: var(--muted); margin: 12px 0 0; }

/* 스토어 배지 — 출시 전엔 정적 라벨(비클릭·공식 아트 미사용, 06 가짜버튼 금지).
   공식 배지처럼 진한 바탕 + 2줄 구조, 색은 우리 팔레트(코코아+앰버).
   다크 모드에선 --ink/--ground가 뒤집혀 밝은 배지가 된다(공식 흰 배지 꼴).
   출시되면 그 배지만 공식 배지+실링크로 교체. */
.store-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 18px;
}
.sbadge {
  flex: 0 1 180px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 50px; padding: 8px 14px 9px;
  border-radius: 12px;
  /* 연한 다크초콜릿 — --ink(#201b17)보다 두 단계 밝은 코코아. 테마 무관 고정색이라 크림 글자도 고정. */
  background: #5d4c3f; color: #faf9f7;
  line-height: 1.3; text-align: center;
}
.sbadge small {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.09em;
  color: var(--amber);
}
.sbadge b { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }

/* 폰 프레임 — 진짜 앱 화면이 랜딩의 주인공 */
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
  box-shadow: 0 18px 44px rgba(32, 27, 23, 0.16);
}
.phone img {
  display: block; width: 100%; height: auto;
  border-radius: 25px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr; gap: 34px; text-align: center; padding-top: 26px;
    background: radial-gradient(64% 36% at 50% 74%, var(--glow), transparent 72%);
  }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .phone { width: min(260px, 74vw); }
}

/* ── 본문 섹션 ─────────────────────────────────────── */

section { margin: 56px 0 0; scroll-margin-top: 20px; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.62rem; line-height: 1.28; letter-spacing: -0.008em;
  margin: 0 0 12px; text-wrap: balance;
}

.center { text-align: center; }
.center p { max-width: 34em; margin-left: auto; margin-right: auto; }

p { margin: 0 0 14px; }
p.muted { color: var(--muted); }
a { color: var(--accent); }

/* 가치 슬라이더 — 가치 하나 = 카드 하나 = 탭 하나 (v5, 골든서클 Why→증거).
   스크롤 길이 대신 옆으로 넘기기: scroll-snap + 옆 카드 살짝 보이기(peek) + 점·화살표. */

.values-head { text-align: center; margin-bottom: 20px; }
.values-head::before {
  content: ''; display: block; width: 46px; height: 3px; border-radius: 2px;
  background: var(--amber); margin: 0 auto 14px;
}
.values-head h2 { margin: 0 0 6px; }
.values-head p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.slider { position: relative; }
.track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 2px 10px;
}
.track::-webkit-scrollbar { display: none; }

.vcard {
  flex: 0 0 92%;
  scroll-snap-align: center;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  align-items: center; gap: 28px;
  background: var(--panel);
  border: 1px solid var(--cardline);
  border-radius: 20px; padding: 30px 36px;
  box-shadow: var(--cardshadow);
}

.vkicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.vcard h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.45rem; line-height: 1.3; letter-spacing: -0.008em;
  margin: 0 0 10px; text-wrap: balance;
}
.vcard p { margin: 0; color: var(--muted); }
/* 강조어 — 문장 속 핵심만 테라코타로 딱 박히게 */
.vcard p b { color: var(--accent); font-weight: 700; }

.vshot {
  justify-self: center;
  width: min(216px, 56vw);
  border-radius: 26px; border: 1px solid var(--line);
  background: var(--ground); padding: 7px;
  box-shadow: 0 12px 30px rgba(32, 27, 23, 0.13);
}
.vshot img { display: block; width: 100%; height: auto; border-radius: 20px; }

.snav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--accent);
  font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 2;
  box-shadow: 0 2px 8px rgba(32, 27, 23, 0.12);
}
.snav.prev { left: -8px; }
.snav.next { right: -8px; }
.snav:hover { border-color: var(--accent); }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button {
  width: 8px; height: 8px; border-radius: 999px; padding: 0;
  border: none; background: var(--line); cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.dots button.on { width: 22px; background: var(--accent); }

@media (max-width: 760px) {
  .vcard { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 26px 22px; }
  .vshot { width: min(180px, 52vw); }
  .snav { display: none; } /* 좁은 폭에선 스와이프가 자연스러움 */
}

/* 부가 기능 미니 카드 — 위젯 카드와 한 층("그리고 이런 것도"), 같은 카드 옷 */
.mini-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-top: 14px;
}
.mcard {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--cardline);
  border-radius: 16px; padding: 18px 22px;
  box-shadow: var(--cardshadow);
}
.mcard h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.08rem; line-height: 1.3; margin: 0 0 6px;
}
html[lang="ko"] .mcard h3 { font-weight: 400; }
.mcopy p:last-child { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* 미니 목업 — 위젯 목업과 같은 "형식적 그림" 문법 (사진 아님) */
.mmock {
  width: 62px; padding: 9px 8px;
  background: var(--ground); border: 1px solid var(--line);
  border-radius: 12px;
}
/* 추천 카드 뭉치 — 한 장만 강조 */
.mmock-pick { display: grid; gap: 5px; }
.mmock-pick span { display: block; height: 13px; border-radius: 4px; background: var(--tint); }
.mmock-pick span:first-child { background: rgba(194, 63, 30, 0.24); }
/* 스트릭 막대 — 오른쪽으로 자라남 */
.mmock-bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.mmock-bars span { flex: 1; border-radius: 3px; background: var(--tint); }
.mmock-bars span:nth-child(1) { height: 32%; }
.mmock-bars span:nth-child(2) { height: 52%; }
.mmock-bars span:nth-child(3) { height: 44%; background: rgba(240, 168, 48, 0.5); }
.mmock-bars span:nth-child(4) { height: 74%; background: rgba(240, 168, 48, 0.5); }
.mmock-bars span:nth-child(5) { height: 100%; background: rgba(194, 63, 30, 0.3); }

@media (max-width: 420px) {
  .mcard { grid-template-columns: 1fr; }
  .mmock { display: none; }
}
@media (max-width: 560px) { .mini-cards { grid-template-columns: 1fr; } }

/* 레시피 이사 — 상식 뒤집기 훅 + 3단계 목업 그림.
   ⚠️정직성: 정리하는 건 "우리 AI"가 아니라 사용자의 AI다(유료 AI 변환 미채택).
   URL·유튜브 자동 변환은 없으므로 "링크만 넣으면"류 표현 금지. */
.bring { text-align: center; margin-top: 64px; }
.bring h2 { margin-bottom: 10px; }
.bring h2 em { font-style: italic; color: var(--accent); }
html[lang="ko"] .bring h2 em { font-style: normal; }
.bring-lede { color: var(--muted); margin: 0 0 4px; }
.bring-lede b { color: var(--ink); font-weight: 600; }
/* 다리 문장 — 세 출처 중 AI 경우가 아래 3단계임을 잇는다 (색 강조는 h2와 경쟁해서 안 씀) */
.bring .bridge {
  margin: 28px 0 0; font-size: 1.02rem; font-weight: 700; color: var(--ink);
}

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 14px; text-align: left;
}
.step {
  background: var(--panel); border: 1px solid var(--cardline);
  border-radius: 16px; padding: 20px 22px 22px;
  box-shadow: var(--cardshadow);
}
.step h3 {
  font-size: 1.02rem; font-weight: 700;
  margin: 14px 0 5px; display: flex; align-items: center; gap: 8px;
}
.step h3 i {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-style: normal; font-size: 0.76rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.step p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* 단계 목업 — 위젯·미니 카드와 같은 도형 문법 */
.smock {
  height: 62px; padding: 10px 12px;
  background: var(--ground); border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; align-content: center; gap: 5px;
}
/* ① 대화 — 말풍선 두 개가 좌우로 */
.smock-chat span { display: block; height: 11px; border-radius: 6px; background: var(--tint); }
.smock-chat span:nth-child(1) { width: 58%; }
.smock-chat span:nth-child(2) { width: 72%; margin-left: auto; background: rgba(194, 63, 30, 0.2); }
.smock-chat span:nth-child(3) { width: 40%; }
/* ② 정돈된 형식 — 제목줄 + 항목줄 */
.smock-form { gap: 4px; }
.smock-form span { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.smock-form span:nth-child(1) { width: 34%; background: rgba(194, 63, 30, 0.28); height: 7px; }
.smock-form span:nth-child(2) { width: 76%; }
.smock-form span:nth-child(3) { width: 62%; }
.smock-form span:nth-child(4) { width: 30%; background: rgba(240, 168, 48, 0.5); height: 7px; }
.smock-form span:nth-child(5) { width: 68%; }
/* ③ 요리책 — 사진 칸 네 개 */
.smock-book { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 5px; align-content: stretch; }
.smock-book span { border-radius: 6px; background: var(--tint); }
.smock-book span:nth-child(2) { background: rgba(240, 168, 48, 0.45); }
.smock-book span:nth-child(3) { background: rgba(194, 63, 30, 0.22); }

.bring-note { margin: 22px 0 0; font-size: 0.86rem; color: var(--muted); }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 16px 18px 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
  .step .smock { grid-row: span 2; width: 76px; height: 56px; }
  .step h3 { margin: 0 0 3px; }
}

/* 층 이름표 — 기능/반박 층의 소속을 눈에 보이게 (10_랜딩페이지_원칙 §2) */
.lhead {
  text-align: center; margin: 56px 0 0;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted);
}
.lhead + .widget-strip { margin-top: 14px; }

/* 위젯 스트립 — 칩에서 승격(08-07). H11 실기기 캡처 도착 시 .wmock → <img> 교체 */
.widget-strip {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: 30px;
  background: var(--panel);
  border: 1px solid var(--cardline);
  border-radius: 20px; padding: 28px 34px;
  margin-top: 52px;
  box-shadow: var(--cardshadow);
}
.widget-strip h2 { font-size: 1.3rem; margin: 0 0 10px; }
.widget-strip .wcopy > p:last-of-type { margin: 0; color: var(--muted); }

/* 위젯 목업 — 실제 캡처 대신 형식적 그림(08-08 사용자 선택).
   실기기 캡처(hello_widget_*.webp)는 스토어 자산으로 남겨 둠. */
.wmock {
  justify-self: center; width: min(290px, 72vw);
  background: var(--ground); border: 1px solid var(--cardline);
  border-radius: 20px; padding: 14px 16px 16px;
  box-shadow: var(--cardshadow);
}
.wmock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.wmock-title { display: block; width: 58px; height: 8px; border-radius: 4px; background: var(--line); }
.wmock-streak { width: 26px; height: 8px; border-radius: 4px; background: var(--amber); }
.wmock-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wmock-grid span { aspect-ratio: 1; border-radius: 6px; background: var(--tint); }
.wmock-grid span:nth-child(3n) { background: rgba(194, 63, 30, 0.22); }
.wmock-grid span:nth-child(7n+2) { background: rgba(240, 168, 48, 0.42); }
.wmock-grid span:nth-child(11n) { background: var(--line); }

@media (max-width: 760px) {
  .widget-strip { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .wmock { width: min(250px, 76vw); }
}

/* 걱정 해소 — 조용한 2열 목록 (카드·배경 없음, 08-08 강조 낮춤) */
.worries {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 36px; margin-top: 18px;
  text-align: center;
}
.worry h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 5px; }
.worry p { margin: 0; font-size: 0.86rem; color: var(--muted); }
/* 모바일에서도 2×2 유지 — 1열로 떨어지면 이 층만 화면을 다 먹는다(08-08 실기기 확인) */
@media (max-width: 560px) {
  .worries { gap: 22px 16px; }
  .worry h3 { font-size: 0.92rem; margin-bottom: 3px; }
  .worry p { font-size: 0.78rem; line-height: 1.5; }
}

/* 만든 사람 이야기 — 인용문체 한 단락 (소셜프루프 자리) */
.story {
  text-align: center; margin: 64px auto 0; max-width: 30em;
  color: var(--ink); font-size: 1.12rem; line-height: 1.75;
}
.story p {
  margin: 0;
  font-family: var(--display); font-style: italic; font-weight: 450;
}
html[lang="ko"] .story p { font-style: normal; }
.story::before {
  content: '❝'; display: block;
  color: var(--amber); font-size: 1.9rem; line-height: 1; margin-bottom: 10px;
}

/* ── FAQ ───────────────────────────────────────────── */

.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 20px; margin: 10px 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 15px 0;
  list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%); color: var(--accent); font-weight: 400; font-size: 1.25rem;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }

/* ── 마무리 CTA · 꼬리 ─────────────────────────────── */

.last { text-align: center; padding: 60px 0 8px; }
.last h2 { margin-bottom: 20px; }

footer.bottom {
  border-top: 1px solid var(--line);
  margin-top: 60px; padding-top: 22px;
  font-size: 0.86rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
footer.bottom a { color: var(--muted); }
footer.bottom a:hover { color: var(--accent); }
footer.bottom .spacer { flex: 1; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px 56px; }
  .band { padding: 18px 20px; }
}
