/* DailyCumulus 홈페이지 시안 — 「Cozy paper journal」.
   색은 앱 톤앤매너(dailycumulus-rn docs/tone-and-manner.md)에서 가져왔다: 크림 바탕 · 파스텔 분홍 · 브라운 글자.
   앱과 같은 색이어야 사이트 → 스토어 스크린샷 → 앱이 한 제품으로 읽힌다. */
@font-face {
  font-family: 'Fraunces';
  src: url('fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #FFF8F0;      /* Brand.peachCream */
  --paper-deep: #F3EEE7; /* backgroundSelected */
  --card: #FFFFFF;
  --ink: #4A4038;        /* Brand.brown */
  --ink-soft: #6B6157;
  --ink-faint: #8A8078;
  --line: #E5DDD5;
  --pink: #F7B8C8;       /* Brand.pink */
  --pink-deep: #E8879F;
  --butter: #FCE8B2;     /* mood good */
  --sky: #CBD9E8;        /* mood bad */
  --lilac: #E3D6EE;
  --mint: #D5EBDD;
  --radius: 22px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  /* 종이 느낌: 크림 바탕에 아주 옅은 점 무늬 */
  background-color: var(--paper);
  background-image: radial-gradient(rgba(74, 64, 56, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 머리 */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; text-decoration: none; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 22px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.nav nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav nav a:hover { color: var(--ink); }
/* 상단 언어 선택 드롭다운(2026-10-21 대표님) — <details>라 스크립트 없이 열린다 · 휴대폰은 EN/KO로 짧게 */
.nav nav { align-items: center; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; font-size: 15px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); border-color: currentColor; }
.lang-menu .chev { transition: transform .15s ease; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; margin: 0; padding: 6px; list-style: none; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(74, 64, 56, 0.14); z-index: 20; }
.lang-menu li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; }
.lang-menu li a:hover { background: var(--line); color: var(--ink); }
.lang-menu li a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang-menu .lang-short { display: none; }
@media (max-width: 600px) {
  .nav nav { gap: 14px; }
  /* 휴대폰 폭에선 상단 메뉴를 개발노트 + 언어만 남긴다(사용법은 스크롤로 · 홈은 로고로 간다) */
  .hide-xs { display: none; }
  .lang-menu summary { padding: 5px 10px; }
  .lang-menu .lang-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-menu .lang-short { display: inline; font-size: 13px; letter-spacing: .04em; }
}

/* 손으로 붙인 라벨 */
.sticker {
  display: inline-block; font-family: var(--serif); font-style: italic; font-size: 16px;
  background: var(--butter); padding: 4px 14px; border-radius: 6px; transform: rotate(-2deg);
  box-shadow: 0 2px 0 rgba(74, 64, 56, 0.08);
}
.sticker.alt { background: var(--lilac); }

h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(40px, 6.2vw, 68px); margin: 18px 0 18px; }
h1 em { font-style: italic; color: var(--pink-deep); }
h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 18px 0 6px; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin: 0 0 26px; }
.sub { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin: 0 0 36px; }
.fine { font-size: 14px; color: var(--ink-faint); margin: 8px 0 0; }

/* 공식 배지: Google 배지는 그림 속 여백을 잘라 두었다 → 두 배지를 같은 높이로 둔다(버튼 크기가 같아 보이게) */
.badges { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.badges.center { justify-content: center; }
.badges a { display: block; }
/* 두 배지를 같은 높이로(2026-10-11 대표님 「버튼 크기가 틀리다」). 공식 배지는 가로세로 비율이 달라 너비와 높이를 둘 다 맞출 수 없다 —
   Google 배지 지침이 「다른 스토어 배지와 같거나 더 크게」라서 같은 너비(10/10)는 Google 배지가 더 낮아 어긋났다. 높이를 맞추면
   Google 배지가 조금 넓어져 지침을 지킨다 · Apple 지침대로 App Store 배지가 먼저(검은 배지) */
.badges img { height: var(--badge-h, 52px); width: auto; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.hero-art { position: relative; height: 620px; }
.hero-art .phone {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(-3deg);
  width: 300px; filter: drop-shadow(0 30px 40px rgba(74, 64, 56, 0.18));
}
.hero-art .polaroid { position: absolute; right: -6px; bottom: 10px; }
.float { position: absolute; width: 150px; animation: bob 6s ease-in-out infinite; }
.float.m1 { left: -70px; top: 360px; }
.float.m2 { right: -20px; top: 40px; width: 120px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* 폴라로이드 + 마스킹테이프 */
.polaroid {
  margin: 0; background: var(--card); padding: 12px 12px 34px; border-radius: 6px;
  box-shadow: 0 14px 30px rgba(74, 64, 56, 0.14), 0 1px 0 var(--line); position: relative; width: max-content;
}
.polaroid img { border-radius: 18px; }
.tilt-r { transform: rotate(4deg); }
.tilt-l { transform: rotate(-3deg); }
.tape {
  position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(247, 184, 200, 0.75);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 12px);
}
.tape.pink { background-color: rgba(247, 184, 200, 0.75); }
.tape.mint { background-color: rgba(181, 222, 197, 0.8); }
.tape.lilac { background-color: rgba(214, 196, 233, 0.85); }

/* 몽글이 다섯 표정 */
.moods { padding-top: 40px; padding-bottom: 70px; text-align: center; }
.moods .sub { margin-left: auto; margin-right: auto; }
.mood-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mood-row li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px 20px; display: flex; flex-direction: column; align-items: center; }
.mood-row img { width: 110px; margin-bottom: 10px; }
.mood-row b { font-family: var(--serif); font-size: 20px; }
.mood-row li > span:not(.mongle) { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* 기능 — 이야기 절 */
.how { padding-top: 40px; padding-bottom: 60px; }
.how h2 { text-align: center; margin-bottom: 20px; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-stage { position: sticky; top: calc(50vh - 290px); height: 580px; display: flex; justify-content: center; align-items: center; }
.stage-frame { padding: 14px 14px 40px; transform: rotate(-2deg); }
.stage-screens { position: relative; width: 250px; aspect-ratio: 600 / 1220; }
.stage-screens img { position: absolute; inset: 0; width: 100%; border-radius: 22px; opacity: 0; transform: scale(.96); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.stage-screens img.on { opacity: 1; transform: none; }
.stage-tape { transition: background-color .4s ease; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .4s ease; }
.step.is-active { opacity: 1; }
.step-num { font-family: var(--serif); font-style: italic; color: var(--pink-deep); font-size: 18px; }
.step h3 { font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 12px; }
.step p { font-size: 19px; color: var(--ink-soft); max-width: 420px; margin: 0; }
.step-shot { display: none; }

/* 개인정보 */
.private { padding-top: 20px; padding-bottom: 80px; }
.private-box { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 44px 40px; text-align: center; }
.promises { list-style: none; padding: 0; margin: 26px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promises li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: var(--paper); }
.promises b { font-family: var(--serif); font-size: 21px; }
.promises span { color: var(--ink-soft); font-size: 15px; }
.text-link { color: var(--pink-deep); font-weight: 600; }

/* 1.1.0 새 기능 — 글 + 실제 위젯 캡처 한 장 */
.soon { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 20px; padding-bottom: 90px; }
.soon-copy h2 { margin-top: 16px; }
.soon-copy p { font-size: 18px; color: var(--ink-soft); max-width: 440px; }
.new-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; max-width: 460px; }
.new-list li { padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.new-list b { display: block; color: var(--ink); }
.new-shot { width: auto; max-width: 100%; justify-self: center; }
.new-shot img { width: 440px; max-width: 100%; height: auto; }

/* 마무리 */
.cta { text-align: center; padding-top: 30px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; }
.cta img { margin-bottom: 6px; }
.cta h2 { margin-bottom: 24px; }

/* 바닥 */
footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--ink-soft); }
.foot-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-top p { margin: 0 0 4px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--ink-soft); }
.legal { margin: 22px 0 0; color: var(--ink-faint); font-size: 13px; }

/* 휴대폰 */
@media (max-width: 860px) {
  .hero, .soon { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; padding-bottom: 50px; }
  .hero-art { height: 520px; }
  .hero-art .phone { width: 250px; }
  .hero-art .polaroid { right: 0; bottom: 0; }
  .hero-art .polaroid img { width: 150px; }
  .float.m1 { width: 100px; left: -6px; top: 330px; }
  .float.m2 { width: 90px; }
  .mood-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .mood-row li { padding: 12px 4px; border-radius: 16px; }
  .mood-row img { width: 56px; }
  .mood-row b { font-size: 15px; }
  .mood-row li > span:not(.mongle) { display: none; }
  .cards, .promises { grid-template-columns: 1fr; }
  .cards { gap: 46px; }
  .private-box { padding: 32px 20px; }
  .hide-sm { display: none; }
}

/* 몽글이 애니메이션 자리 — 멈춘 그림과 같은 자리·크기에 겹쳐 그린다 */
.mongle { position: relative; display: inline-block; }
.mongle img { display: block; }
.mongle .mongle-anim { display: none; width: 100%; aspect-ratio: 741 / 604; pointer-events: none; }
.mongle.is-anim .mongle-anim { display: block; }
.mongle.is-anim img { display: none; }
.cta-mongle { width: 180px; }
.mongle.is-anim.float { animation: none; }
.mood-row .mongle { width: 110px; margin-bottom: 10px; }
.mood-row .mongle img { width: 100%; margin: 0; }
.float.mongle img { width: 100%; }
@media (max-width: 860px) { .mood-row .mongle { width: 56px; } }

/* 스크롤로 떠오르기 — scroll.js가 html에 .motion을 붙였을 때만 숨겨 둔다(스크립트가 없으면 처음부터 보인다) */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--d, 0ms), transform .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .mood-row > [data-reveal] { transform: translateY(24px) scale(.92); }
.motion .mood-row > [data-reveal].in { transform: none; transition: opacity .6s ease var(--d), transform .7s cubic-bezier(.3,1.5,.5,1) var(--d); }

@media (max-width: 860px) {
  .story { display: block; }
  .story-stage { display: none; }
  .step { min-height: 0; opacity: 1; align-items: center; text-align: center; margin-bottom: 56px; }
  .step p { margin-bottom: 26px; }
  .step-shot { display: block; }
}

/* 떠 있는 몽글이는 휴대폰 바깥 자리에 고정한다(.mongle의 relative가 덮어쓰지 않게) */
.float.mongle { position: absolute; }

/* 첫 화면 글은 스크롤과 무관하게 열리자마자 떠오른다 */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.motion .hero-copy > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .16s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .24s; }
.motion .hero-copy > :nth-child(5) { animation-delay: .3s; }

/* 한국어 등 라틴 문자가 아닌 언어 — 제목용 Fraunces에 글자가 없으니 Pretendard로 */
html:lang(ko) { --serif: 'Pretendard Variable', Pretendard, -apple-system, sans-serif; }
html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3, html:lang(ko) .brand { font-weight: 750; letter-spacing: -0.03em; }
html:lang(ko) h1 em { font-style: normal; }
html:lang(ko) .sticker, html:lang(ko) .step-num { font-style: normal; font-weight: 600; }
html:lang(ko) body { word-break: keep-all; }
/* 한국어판 사업자 정보(전자상거래법 표시) */
.biz { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 22px 0 0; font-size: 13px; color: var(--ink-faint); }
.biz dt { font-weight: 600; }
.biz dd { margin: 0; }

/* 좁은 휴대폰: 배지 두 개를 한 줄에(한국어 배지가 더 길다) */
@media (max-width: 420px) {
  .badges { flex-wrap: nowrap; gap: 8px; --badge-h: 44px; }
}

/* 첫 화면 휴대폰 두 대: 홈(앞·크게) + 달력(뒤·작게). 홈 화면은 아무것도 가리지 않는다 */
.hero-art .phone-main { left: 34%; top: 10px; z-index: 2; }
.hero-art .phone-side { left: auto; right: -70px; top: 120px; width: 210px; transform: rotate(5deg); z-index: 1; opacity: .98; }
.hero-art .float { z-index: 3; }
/* 원래 자리(홈 휴대폰 왼쪽)에서 설명 글 아래로만 조금 내린다 */
.float.m1 { left: -120px; right: auto; top: 515px; }
.float.m2 { right: -60px; top: 30px; }
@media (max-width: 860px) {
  .hero-art { height: 500px; }
  .hero-art .phone-main { left: 34%; width: 230px; }
  .hero-art .phone-side { right: -12px; top: 110px; width: 150px; }
  /* 휴대폰은 폭이 좁아 왼쪽 몽글이가 홈 화면을 가린다 — 뺀다 */
  .float.m1 { display: none; }
  .float.m2 { right: -6px; top: 20px; width: 80px; }
}

/* 노트북 폭(861~1150px): 통계 휴대폰과 몽글이가 화면 오른쪽 밖으로 잘리지 않게 안쪽으로 */
@media (min-width: 861px) and (max-width: 1150px) {
  .hero-art .phone-main { left: 38%; width: 260px; }
  .hero-art .phone-side { right: -10px; width: 180px; }
  .float.m2 { right: -10px; width: 100px; }
  .float.m1 { left: -70px; right: auto; top: 515px; width: 110px; }
}

/* 왼쪽 위 회사 로고 — 이미지 높이로 크기를 정한다 */
.brand-logo img { height: 92px; width: auto; border-radius: 0; }
@media (max-width: 860px) { .brand-logo img { height: 62px; } }

/* 고객 지원 페이지(/support/) — 글 위주 · 읽기 편한 폭 */
.support { max-width: 720px; padding-top: 24px; padding-bottom: 56px; }
.support h1 { font-size: clamp(36px, 5vw, 52px); }
.support-faq { margin-top: 40px; }
.support-faq h2 { font-size: clamp(26px, 3.4vw, 34px); }
.support-faq h3 { font-size: 20px; margin: 28px 0 8px; }
.support-faq p { color: var(--ink-soft); margin: 0; line-height: 1.6; }
.support-faq a, .support .fine a { color: var(--pink-deep); }
.support > .fine { margin-top: 40px; }


/* 개발노트(/notes/) — 버전마다 한 묶음 · 새 버전이 위 */
.note { margin-top: 36px; padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.note-meta { margin: 0; font-size: 14px; color: var(--ink-faint); }
.note-ver { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--pink); color: var(--ink); font-weight: 700; }
.note h2 { font-size: clamp(24px, 3.2vw, 30px); margin: 10px 0 14px; }
.note-list { margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.6; }
.note-list li { margin-bottom: 10px; }
.note-list b { display: block; color: var(--ink); }
@media (max-width: 600px) { .note { padding: 22px 18px; } }

/* ── 10/26 뼈대: 공지사항 게시판 · 고객지원 모음 · 사용 가이드 · 세 칸 하단 ── */
.board { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.board-row { display: grid; grid-template-columns: max-content 1fr max-content; align-items: center; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.board-tag { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pink); color: var(--ink); }
.board-tag.tag-notice { background: var(--card); border: 1px solid var(--line); }
.board-title { color: var(--ink); font-weight: 600; }
.board-title:hover { color: var(--pink-deep); }
.board-date { font-size: 14px; color: var(--ink-faint); }
@media (max-width: 560px) { .board-row { grid-template-columns: max-content 1fr; } .board-date { grid-column: 2; } }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 32px; }
.hub-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.hub-card b { font-size: 18px; }
.hub-card span { color: var(--ink-soft); font-size: 15px; }
.hub-card:hover { border-color: var(--pink-deep); }

.guide-sec { margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.guide-sec h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; }
.guide-sec p { color: var(--ink-faint); margin: 0 0 16px; }

.site-foot .foot-cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.site-foot .foot-brand img { height: 40px; width: auto; display: block; margin-bottom: 12px; }
.site-foot .foot-col { display: flex; flex-direction: column; gap: 12px; }
.site-foot .foot-h { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.site-foot .foot-col a { color: var(--ink-soft); }
.site-foot .foot-bottom { padding-top: 22px; }
.site-foot .foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot .foot-bottom nav b { color: var(--ink); }
@media (max-width: 760px) { .site-foot .foot-cols { grid-template-columns: 1fr 1fr; } .site-foot .foot-brand { grid-column: 1 / -1; } }
.hub-card, .board-title, .site-foot .foot-col a, .site-foot .foot-bottom nav a { text-decoration: none; }
.hub-card:hover b, .board-title:hover, .site-foot a:hover { text-decoration: underline; }
.site-foot .foot-col a { overflow-wrap: anywhere; }
