/* /chammo 제품 페이지 — 회사 사이트와 다른 Chammo 고유 톤: 밝은 바탕, 동글이 프사가 주인공.
 * 카드·말풍선 값은 앱(ui/chat/directCard.css·chat.css)과 맞춘다 */
:root {
  --bg: #fffaf2;
  --surface: #fff;
  --surface-2: #f4f1ec;
  --line: #e6e1d8;
  --line-strong: #cfc9bf;
  --text: #1d1d20;
  --text-2: #4a4a52;
  --text-3: #6c6c74;
  --blue: #2f74e0;
  --blue-ink: #2159b8;
  --red: #b42318;
  --orange: #e8622a;
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.cm {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

::selection {
  background: #d6e4fb;
}

/* ───────── 머리 ───────── */
.cm-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.cm-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.cm-navr {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
}

.cm-link:hover {
  color: var(--text);
}

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--pop), box-shadow 0.25s;
}

.cm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 29, 32, 0.08);
}

.cm-btn:active {
  transform: translateY(0) scale(0.97);
}

.cm-btn--go {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.cm-btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 12px;
}

.cm-btn:focus-visible,
.cm-link:focus-visible,
.cm-brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.cm-lang {
  font-size: 15px;
}

/* 브라우저 언어가 다를 때만 뜨는 안내 줄 */
.cm-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px clamp(16px, 4vw, 48px) 0;
  padding: 4px 4px 4px 16px;
  border-radius: 12px;
  background: #e5eefc;
  color: #1f4e99;
  font-size: 14px;
  font-weight: 600;
}

.cm-hint[hidden] {
  display: none;
}

.cm-hint a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.cm-hint-x {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cm-hint-x:hover {
  background: rgba(31, 78, 153, 0.08);
}

.cm-hint-x svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ───────── 첫 화면 ───────── */
.cm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  max-width: 1240px;
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px) 64px;
}

.cm-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 99px;
  background: #e5eefc;
  color: #1f5bb8;
  font-size: 14px;
  font-weight: 700;
}

.cm-h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

/* 영어는 단어가 길어 한 단계 작게 — 두 줄로 */
html[lang="en"] .cm-h1 {
  font-size: clamp(36px, 4.2vw, 58px);
  letter-spacing: -0.035em;
}

.cm-lead {
  max-width: 470px;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
}

.cm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.cm-spec {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-3);
}

/* 고정 크기 무대 — 칸 폭에 맞춰 JS 가 줄인다 */
.cm-fit {
  position: relative;
  width: 100%;
  min-width: 0;
}

.cm-fit > * {
  transform-origin: 0 0;
}

/* ───────── 장면: 부탁 → 나눠 날리기 → 결정 ───────── */
.cm-scene {
  position: relative;
  width: 560px;
  height: 480px;
}

.cm-bubble {
  position: absolute;
  margin: 0;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transition: opacity 0.2s, transform 0.5s var(--pop);
}

.cm-bubble--me {
  right: 0;
  top: 6px;
  max-width: 320px;
  background: #dfe9fb;
  border-bottom-right-radius: 4px;
  transform-origin: 100% 100%;
}

.cm-bubble--boss {
  left: 6px;
  top: 112px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  transform-origin: 0 100%;
}

.cm-scene:not([data-step="0"]) .cm-bubble--me,
.cm-scene[data-step="2"] .cm-bubble--boss,
.cm-scene[data-step="3"] .cm-bubble--boss {
  opacity: 1;
  transform: none;
}

.cm-boss {
  position: absolute;
  left: 214px;
  top: 104px;
  text-align: center;
}

/* 대표 동글이 눈은 커서 쪽으로 */
.cm-boss .oa-eyes {
  transform: translate(var(--fx, 0px), var(--fy, 0px));
  transition: transform 0.35s var(--out);
}

/* 보낸 뒤 — acme-shop 머리 위에 '보냄' */
.cm-sent {
  position: absolute;
  left: 50%;
  top: -30px;
  padding: 3px 10px;
  border-radius: 99px;
  background: #157a4f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.6);
  transition: opacity 0.2s, transform 0.5s var(--pop);
}

.cm-scene[data-step="7"] .cm-sent {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cm-shadow {
  display: block;
  width: 70%;
  height: 10px;
  margin: -6px auto 0;
  border-radius: 50%;
  background: rgba(29, 29, 32, 0.08);
}

.cm-slip {
  position: absolute;
  left: 264px;
  top: 176px;
  width: 32px;
  height: 40px;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(29, 29, 32, 0.16);
  opacity: 0;
}

.cm-slip::before,
.cm-slip::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 12px;
  height: 3px;
  border-radius: 2px;
  background: #d9dbe2;
}

.cm-slip::after {
  top: 20px;
  right: 13px;
}

.cm-scene[data-step="3"] .cm-slip {
  animation: cm-fly 0.95s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
}

.cm-scene[data-step="3"] .cm-slip:nth-of-type(2) { animation-delay: 0.1s; }
.cm-scene[data-step="3"] .cm-slip:nth-of-type(3) { animation-delay: 0.2s; }

@keyframes cm-fly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.5); }
  45% { opacity: 1; transform: translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.5 - 80px)) rotate(-16deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(10deg) scale(0.6); }
}

.cm-desk {
  position: absolute;
  width: 160px;
  text-align: center;
}

.cm-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  line-height: 1.3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cm-pill b {
  font-size: 13px;
}

/* 상태 글자 — 앞에 점 하나 */
.cm-st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.cm-st::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3c3ca;
}

.cm-st[data-st="work"] { color: #157a4f; }
.cm-st[data-st="work"]::before { background: #1f9a62; }
.cm-st[data-st="ask"] { color: #c2501f; }
.cm-st[data-st="ask"]::before { background: var(--orange); }

/* 결정 카드 — 앱의 결제 카드(dc-card dc-hot)와 같은 꼴 */
.cm-card {
  position: absolute;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 14px 32px rgba(29, 29, 32, 0.1);
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.55s var(--pop);
}

.cm-card--hot {
  border-color: #e3b5b0;
  background: #fdf6f5;
}

.cm-scene .cm-card {
  right: 0;
  top: 150px;
}

.cm-scene[data-step="5"] .cm-card,
.cm-scene[data-step="6"] .cm-card {
  opacity: 1;
  transform: none;
}

.cm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cm-risk {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f4dcd9;
  color: #8e1f15;
  font-size: 11.5px;
  font-weight: 800;
}

.cm-card-q {
  margin: 8px 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.cm-card-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cm-cbtn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 700;
  transition: transform 0.2s var(--pop);
}

.cm-cbtn--pay {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.cm-scene[data-step="6"] .cm-cbtn--pay {
  transform: scale(0.92);
  background: #8e1c13;
}

/* ───────── 참모의 하루 (스크롤) ───────── */
.cm-story {
  position: relative;
  height: 420vh;
}

.cm-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  max-width: 1240px;
  height: 100svh;
  margin: 0 auto;
  padding: 80px clamp(16px, 4vw, 48px) 40px;
}

.cm-caps {
  display: grid;
}

.cm-label {
  grid-area: 1 / 1;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-ink);
}

/* 장면 위치 점 — 지금 장면만 길게 */
.cm-dots {
  display: inline-flex;
  gap: 5px;
}

.cm-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--line-strong);
  transition: width 0.4s var(--out), background 0.3s;
}

.cm-dots i.on {
  width: 18px;
  background: var(--blue);
}

.cm-cap {
  grid-area: 1 / 1;
  padding-top: 36px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s, transform 0.6s var(--out);
}

.cm-cap.on {
  opacity: 1;
  transform: none;
}

.cm-no {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.cm-cap h2 {
  margin: 6px 0 12px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cm-cap p {
  max-width: 420px;
  margin: 0;
  color: var(--text-2);
}

.cm-day {
  position: relative;
  width: 560px;
  height: 470px;
}

.cm-day::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 28px;
  background: #fff1dc;
  transition: background 0.6s;
}

.cm-day[data-beat="2"]::before {
  background: #27304c;
}

/* 밤 — 별 몇 개 */
.cm-day::after {
  content: "";
  position: absolute;
  left: 60px;
  top: 330px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 120px 40px 0 #fff, 260px 10px 0 rgba(255, 255, 255, 0.7), 330px 70px 0 #fff, 40px 90px 0 rgba(255, 255, 255, 0.6), 200px 100px 0 #fff;
  opacity: 0;
  transition: opacity 0.6s 0.2s;
}

.cm-day[data-beat="2"]::after {
  opacity: 1;
}

.cm-moon {
  position: absolute;
  right: 18px;
  bottom: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: -14px 8px 0 0 #f6c94a;
  opacity: 0;
  transform: translateY(20px) rotate(-20deg);
  transition: opacity 0.4s, transform 0.8s var(--pop);
}

.cm-day[data-beat="2"] .cm-moon {
  opacity: 1;
  transform: none;
}

.cm-tile {
  position: absolute;
  width: 274px;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(-60px) scale(0.9);
  transition: opacity 0.2s, transform 0.6s var(--pop), box-shadow 0.4s, border-color 0.4s;
}

.cm-tile.in {
  opacity: 1;
  transform: none;
}

.cm-tile > span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.cm-tile b {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.cm-day[data-beat="2"] .cm-tile:not([data-role="routine"]) {
  opacity: 0.5;
}

.cm-day[data-beat="3"] .cm-tile[data-role="ask"] {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange), 0 12px 26px rgba(232, 98, 42, 0.22);
}

.cm-pr {
  position: absolute;
  right: 10px;
  top: -12px;
  padding: 3px 9px;
  border-radius: 99px;
  background: #1f9a62;
  color: #fff;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.45s var(--pop);
}

.cm-pr--night {
  background: #6b4fd6;
}

.cm-day[data-beat="1"] .cm-tile[data-pr] .cm-pr,
.cm-day[data-beat="2"] .cm-pr--night {
  opacity: 1;
  transform: none;
}

.cm-day[data-beat="1"] .cm-tile[data-pr]:nth-child(5) .cm-pr {
  transition-delay: 0.25s;
}

.cm-card--day {
  left: 150px;
  top: 318px;
}

.cm-day[data-beat="3"] .cm-card--day {
  opacity: 1;
  transform: none;
}

/* ───────── 그 밖의 기능 ───────── */
.cm-more {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) 40px;
}

.cm-h2 {
  margin: 0 0 40px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cm-list h3 {
  margin: 0 0 2px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.cm-list p {
  margin: 0;
  color: var(--text-2);
}

.cm-ico {
  position: relative;
  flex: 0 0 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.cm-wave {
  position: absolute;
  right: 8px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.cm-wave i {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--blue);
  animation: cm-wave 0.7s ease-in-out infinite alternate;
}

.cm-wave i:nth-child(2) { height: 9px; animation-delay: 0.18s; }
.cm-wave i:nth-child(3) { animation-delay: 0.35s; }

@keyframes cm-wave {
  to { transform: scaleY(0.35); }
}

.cm-phone {
  display: grid;
  place-items: center;
  width: 40px;
  height: 64px;
  border: 2.5px solid var(--text);
  border-radius: 10px;
}

.cm-win {
  position: relative;
  display: grid;
  place-items: end center;
  width: 64px;
  height: 50px;
  padding-bottom: 4px;
  border: 2.5px solid var(--text);
  border-radius: 8px;
}

.cm-win::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 7px 0 0 var(--text), 14px 0 0 var(--text);
}

.cm-js .cm-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s, transform 0.7s var(--pop);
}

.cm-js .cm-rv.in {
  opacity: 1;
  transform: none;
}

.cm-list li:nth-child(2) { transition-delay: 0.08s; }
.cm-list li:nth-child(4) { transition-delay: 0.08s; }

/* ───────── 다운로드 ───────── */
.cm-get {
  max-width: 1240px;
  margin: 80px auto 0;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px);
  text-align: center;
}

.cm-get .cm-h2 {
  margin: 18px 0 0;
}

.cm-get .cm-cta {
  justify-content: center;
}

.cm-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 48px;
  margin: 36px 0 0;
}

.cm-meta dt {
  font-size: 13px;
  color: var(--text-3);
}

.cm-meta dd {
  margin: 0;
  font-weight: 700;
}

.cm-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}

/* ───────── 바닥: 아너스튜디오 사업자 정보(지우지 말 것 — 신청서·Meta 인증 근거) ───────── */
.cm-foot {
  padding: 40px clamp(16px, 4vw, 48px) 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}

.cm-home {
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text);
  text-decoration: none;
}

.cm-dot {
  width: 0.22em;
  height: 0.22em;
  margin: 0 0 0.42em 0.05em;
  border-radius: 50%;
  background: #29b6f0;
}

.cm-biz {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.cm-note {
  margin: 0 0 8px;
  font-size: 12px;
}

.cm-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.cm-foot-bottom .cm-link {
  padding: 0;
  font-weight: 700;
  color: var(--text);
}

/* ───────── 폰: 무대가 0.8배 밑으로 줄면 무대 안 글씨를 키워 실제 크기를 지킨다 ───────── */
.cm-fit.is-small .cm-bubble {
  font-size: 21px;
}

.cm-fit.is-small .cm-bubble--me {
  max-width: 400px;
}

.cm-fit.is-small .cm-bubble--boss {
  display: none;
}

.cm-fit.is-small .cm-pill b {
  font-size: 18px;
}

.cm-fit.is-small .cm-st {
  font-size: 16px;
}

.cm-fit.is-small .cm-sent {
  font-size: 17px;
  top: -40px;
}

.cm-fit.is-small .cm-card {
  width: 330px;
  font-size: 17px;
}

.cm-fit.is-small .cm-card-q {
  font-size: 19px;
}

.cm-fit.is-small .cm-risk {
  font-size: 15px;
}

.cm-fit.is-small .cm-cbtn {
  min-height: 46px;
  font-size: 17px;
}

.cm-fit.is-small .cm-card--day {
  left: 115px;
  top: 300px;
}

.cm-fit.is-small .cm-tile b {
  font-size: 20px;
}

.cm-fit.is-small .cm-pr {
  font-size: 15px;
}

/* ───────── 좁은 화면 ───────── */
@media (max-width: 900px) {
  .cm-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 36px;
  }

  .cm-sticky {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 28px;
    padding-top: 72px;
  }

  .cm-cap p {
    font-size: 15px;
  }

  .cm-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cm-cta .cm-btn {
    flex: 1 1 auto;
  }

  .cm-nav .cm-link:not(.cm-lang) {
    display: none;
  }

  .cm-biz {
    flex-direction: column;
  }

  .cm-ico {
    flex-basis: 72px;
    height: 72px;
  }
}

/* ═════════ 3차: 바탕 톤 · 하늘 층 · 앱 화면 조립 · 영상 · 기능 카드 · FAQ · 다운로드 · 인사 ═════════ */

/* 섹션을 넘어가면 바탕색이 천천히 바뀐다(JS 가 body data-tone 을 바꾼다) */
body.cm {
  --tone: #fffaf2;
  background: var(--tone);
  transition: background-color 0.9s ease;
}

body.cm[data-tone="sky"] { --tone: #eef4ff; }
body.cm[data-tone="lilac"] { --tone: #f5f0ff; }
body.cm[data-tone="white"] { --tone: #ffffff; }

.cm-nav {
  background: color-mix(in srgb, var(--tone) 86%, transparent);
  transition: background-color 0.9s ease;
}

html {
  scroll-behavior: smooth;
}

/* 첫 화면 하늘 층 — 구름·반짝이·점, 깊이마다 다르게 움직인다 */
.cm-hero {
  position: relative;
}

.cm-hero > :not(.cm-sky) {
  position: relative;
  z-index: 1;
}

.cm-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cm-sky > i {
  position: absolute;
  display: block;
  will-change: translate;
}

.cm-cloud {
  width: calc(150px * var(--s, 1));
  height: calc(44px * var(--s, 1));
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(47, 116, 224, 0.06);
  opacity: 0.75;
}

.cm-cloud::before,
.cm-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cm-cloud::before {
  left: 18%;
  top: -46%;
  width: 42%;
  height: 120%;
}

.cm-cloud::after {
  left: 46%;
  top: -70%;
  width: 36%;
  height: 140%;
}

.cm-spark {
  width: calc(22px * var(--s, 1));
  height: calc(22px * var(--s, 1));
  background: #f6c94a;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: cm-twinkle 2.8s ease-in-out infinite;
}

.cm-spark:nth-child(5) { animation-delay: -1.1s; background: #9ec0f7; }
.cm-spark:nth-child(6) { animation-delay: -2s; background: #f2a2bd; }

@keyframes cm-twinkle {
  0%, 100% { transform: scale(0.75) rotate(0); opacity: 0.6; }
  50% { transform: scale(1.1) rotate(25deg); opacity: 1; }
}

.cm-dotty {
  width: 120px;
  height: 60px;
  background: radial-gradient(circle, rgba(47, 116, 224, 0.25) 2px, transparent 2.5px) 0 0 / 15px 15px;
}

/* ───────── 어떻게 돌아가나 ───────── */
.cm-how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(24px, 4vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 48px) 0;
}

.cm-how-steps {
  grid-row: 1;
  grid-column: 1;
  padding-bottom: 20vh;
}

.cm-how-stage {
  grid-row: 1;
  grid-column: 2;
  position: sticky;
  top: calc(50vh - 200px);
  align-self: start;
}

.cm-how-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 지금 단계는 번호가 파랗게 — 흐리게 하면 글자 대비가 무너져서 번호만 바꾼다 */
.cm-how-step .cm-no {
  transition: color 0.4s;
}

.cm-how-step.on .cm-no {
  color: var(--blue-ink);
}

.cm-how-step h2 {
  margin: 6px 0 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cm-how-step p {
  max-width: 420px;
  margin: 0;
  color: var(--text-2);
}

/* 앱 화면 모형 — 실제 앱(창 막대·세션 목록·대화·종 아래 결정 대기함)과 같은 배치 */
.cm-app {
  position: relative;
  width: 560px;
  height: 400px;
  display: grid;
  grid-template-columns: 172px 1fr;
  grid-template-rows: 40px 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 60px rgba(29, 29, 32, 0.12);
  overflow: hidden;
}

.cm-app-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
}

.cm-app-lights {
  display: inline-flex;
  gap: 6px;
}

.cm-app-lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d9d5ce;
}

.cm-bell {
  position: relative;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--text-2);
}

.cm-bell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.cm-bell em,
.cm-inbox-h em {
  font-style: normal;
}

.cm-bell em {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.2s, transform 0.45s var(--pop);
}

.cm-app.s3 .cm-bell em {
  opacity: 1;
  transform: none;
}

.cm-bell.oa-tr-alert {
  animation: cm-ring 0.6s ease;
}

@keyframes cm-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
}

.cm-app-side {
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 50%, var(--surface));
}

.cm-app-h {
  margin: 2px 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
}

.cm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 12.5px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.3s calc(var(--i, 0) * 0.12s), transform 0.5s var(--pop) calc(var(--i, 0) * 0.12s);
}

.cm-row b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-row--chief {
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  opacity: 1;
  transform: none;
}

.cm-app.s2 .cm-row {
  opacity: 1;
  transform: none;
}

.cm-dot-st {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9a62;
}

.cm-app.s3 .cm-row--ask .cm-dot-st {
  background: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent);
}

.cm-app-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.cm-msg {
  max-width: 82%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.25s, transform 0.5s var(--pop);
}

.cm-msg--me {
  align-self: flex-end;
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
  border-bottom-right-radius: 4px;
  transform-origin: 100% 100%;
}

.cm-msg--chief {
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
  transform-origin: 0 100%;
  transition-delay: 0.45s;
}

.cm-msg-note {
  margin: 0;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.4s 0.4s;
}

.cm-app-input {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  height: 40px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text-3);
}

.cm-app-input i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--blue);
}

.cm-app-input svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-app.s1 .cm-msg {
  opacity: 1;
  transform: none;
}

.cm-app.s2 .cm-msg-note {
  opacity: 1;
}

.cm-inbox {
  position: absolute;
  right: 10px;
  top: 46px;
  width: 290px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(29, 29, 32, 0.16);
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transform-origin: 90% 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.5s var(--pop);
}

.cm-app.s3 .cm-inbox {
  opacity: 1;
  transform: none;
}

.cm-inbox-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 8px;
  font-size: 12.5px;
  font-weight: 800;
}

.cm-inbox-h em {
  padding: 0 6px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
}

.cm-card--inbox {
  position: static;
  width: auto;
  opacity: 1;
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ───────── 핵심 다섯 — 칸마다 작은 장면 ───────── */
body.cm[data-tone="mint"] { --tone: #effaf4; }

.cm-core {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) 0;
}

.cm-core-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-core-list > li {
  grid-column: span 2;
  padding: 18px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 1·2 는 반씩, 3(참모 모드)은 넓게, 4·5 반씩 */
.cm-core-list > .cm-c1,
.cm-core-list > .cm-c2,
.cm-core-list > .cm-c4,
.cm-core-list > .cm-c5 {
  grid-column: span 3;
}

.cm-core-list > .cm-c3 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 32px;
  align-items: start;
}

.cm-c3 .cm-mini {
  grid-row: 1 / 4;
  grid-column: 2;
  margin: 0;
}

.cm-c3 .cm-no {
  margin-top: 24px;
}

.cm-core-list h3 {
  margin: 4px 0 6px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.cm-core-list p {
  margin: 0;
  color: var(--text-2);
}

.cm-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: 3px;
}

.cm-mini {
  position: relative;
  height: 170px;
  margin: 0 0 14px;
  border-radius: 16px;
  background: var(--surface-2);
  overflow: hidden;
}

/* 장면은 보일 때만 돈다 */
.cm-mini *,
.cm-mini *::before {
  animation-play-state: paused;
}

.cm-rv.in .cm-mini *,
.cm-rv.in .cm-mini *::before {
  animation-play-state: running;
}

/* 아직 안 나온 버전 표시 — 미리보기와 구분되게 주황 계열 */
.cm-tag--soon {
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
  color: #a8441a;
}

@media (prefers-color-scheme: dark) {
  .cm-tag--soon { color: #ffb08a; }
}

/* ① 참모 여럿 — 이름표, 서류가 옆 참모로 넘어간다 */
.cm-mini-chiefs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.cm-chief {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cm-chief em {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.cm-pass {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 20px;
  height: 25px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 3px 8px rgba(29, 29, 32, 0.18);
  animation: cm-pass 3.2s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
}

@keyframes cm-pass {
  0%, 10% { transform: translate(-110px, 0) rotate(0) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate(-20px, -40px) rotate(-14deg) scale(1); }
  80% { transform: translate(40px, 0) rotate(6deg) scale(0.7); opacity: 1; }
  90%, 100% { transform: translate(40px, 0) scale(0.5); opacity: 0; }
}

/* ② 프로젝트가 생긴다 — 폴더가 톡, 파일이 쏙 */
.cm-folder {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 150px;
  height: 100px;
  margin-left: -75px;
  border-radius: 6px 12px 12px 12px;
  background: #f4c76a;
  animation: cm-pop 3.6s var(--pop) infinite;
}

.cm-folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 58px;
  height: 16px;
  border-radius: 6px 6px 0 0;
  background: #e9b54f;
}

.cm-folder b {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 13px;
  color: #5a3e05;
}

@keyframes cm-pop {
  0% { transform: scale(0.4); opacity: 0; }
  12%, 88% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0; }
}

.cm-file {
  position: absolute;
  left: calc(50% - 118px + var(--i) * 80px);
  top: 20px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(29, 29, 32, 0.12);
  font-size: 10.5px;
  font-weight: 700;
  animation: cm-drop 3.6s ease-in infinite;
  animation-delay: calc(0.5s + var(--i) * 0.25s);
  opacity: 0;
}

@keyframes cm-drop {
  0% { transform: translateY(-40px); opacity: 0; }
  15% { transform: translateY(30px); opacity: 1; animation-timing-function: ease-out; }
  22% { transform: translateY(46px) scale(0.9); opacity: 1; }
  70% { transform: translateY(46px) scale(0.9); opacity: 1; }
  80%, 100% { transform: translateY(46px) scale(0.9); opacity: 0; }
}

/* ③ 참모 모드 — 참모가 만든 판에서 체크가 차례로 켜진다 */
.cm-mini-mode {
  height: 220px;
}

.cm-panel {
  position: absolute;
  left: 28px;
  right: 90px;
  top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(29, 29, 32, 0.08);
}

.cm-panel-h {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.cm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  font-size: 14px;
}

.cm-check::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface) no-repeat center / 12px 12px;
  animation: cm-tick 4.2s infinite;
  animation-delay: calc(0.6s + var(--i) * 0.7s);
}

@keyframes cm-tick {
  0%, 8% { border-color: var(--line-strong); background-color: var(--surface); background-image: none; transform: scale(1); }
  12% { transform: scale(1.25); }
  16%, 85% {
    border-color: #1f9a62;
    background-color: #1f9a62;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transform: scale(1);
  }
  95%, 100% { border-color: var(--line-strong); background-color: var(--surface); background-image: none; }
}

.cm-peek {
  position: absolute;
  right: 22px;
  bottom: 22px;
}

/* ④ 모양·색·목소리 — 동글이가 차례로 바뀐다 */
.cm-mini-look {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.cm-morph {
  position: relative;
  width: 76px;
  height: 76px;
}

.cm-morph .oa {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: cm-morph 6s infinite;
}

.cm-morph .oa:nth-child(2) { animation-delay: 1.5s; }
.cm-morph .oa:nth-child(3) { animation-delay: 3s; }
.cm-morph .oa:nth-child(4) { animation-delay: 4.5s; }

@keyframes cm-morph {
  0% { opacity: 0; transform: scale(0.6) rotate(-10deg); }
  6%, 22% { opacity: 1; transform: scale(1) rotate(0); }
  26%, 100% { opacity: 0; transform: scale(0.8); }
}

.cm-rv.in .cm-morph .oa {
  animation-play-state: running;
}

.cm-wave--big {
  position: static;
  height: 40px;
  gap: 4px;
}

.cm-wave--big i {
  width: 5px;
  height: 34px;
}

.cm-wave--big i:nth-child(4) { height: 22px; animation-delay: 0.1s; }
.cm-wave--big i:nth-child(5) { height: 28px; animation-delay: 0.45s; }

@media (max-width: 900px) {
  .cm-core-list > li,
  .cm-core-list > .cm-c1,
  .cm-core-list > .cm-c2,
  .cm-core-list > .cm-c4,
  .cm-core-list > .cm-c5 {
    grid-column: 1 / -1;
  }

  .cm-core-list > .cm-c3 {
    display: block;
  }

  .cm-c3 .cm-mini {
    margin: 0 0 14px;
  }

  .cm-c3 .cm-no {
    margin-top: 0;
  }
}

@media (prefers-color-scheme: dark) {
  body.cm[data-tone="mint"] { --tone: #0f1d18; }
  .cm-folder { background: #c99a3a; }
  .cm-folder::before { background: #b38730; }
  .cm-folder b { color: #2a1d02; }
}

/* ───────── 실제 앱 화면(영상 자리) ───────── */
.cm-film {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) 0;
  text-align: center;
}

.cm-film-frame {
  max-width: 1080px;
  margin: 0 auto;
}

.cm-film-media {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 40px 80px rgba(60, 40, 120, 0.14);
}

.cm-film-media img,
.cm-film-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 스페이스 뷰 스크린샷 — 크기 맞춤 상자 안의 원본 크기 그림(폰은 오른쪽 채팅 쪽으로 잘라 보임) */
.cm-film-media.cm-fit {
  aspect-ratio: auto;
}

.cm-film-media.cm-fit > img {
  width: 1430px;
  max-width: none;
  height: 870px;
}

/* 재미 칸 — 픽셀 사무실 사진 */
.cm-mini-office {
  height: 230px;
  background: #f0e6d8;
}

.cm-mini-office img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
}

.cm-film figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}

/* ───────── 기능 카드 — 커서 쪽으로 기운다 ───────── */
.cm-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.cm-list li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cm-list .cm-ico {
  border: 0;
  background: var(--surface-2);
}

.cm-js .cm-tilt.in {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity 0.5s, transform 0.25s ease-out, box-shadow 0.3s;
}

.cm-tilt.in:hover {
  box-shadow: 0 18px 40px rgba(29, 29, 32, 0.1);
}

/* ───────── 자주 묻는 것 ───────── */
.cm-faq {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) 0;
}

.cm-faq-list details {
  border-top: 1px solid var(--line);
}

.cm-faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.cm-faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 12px 48px 12px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.cm-faq-list summary::-webkit-details-marker {
  display: none;
}

/* 열고 닫는 표시 — 직접 그린 더하기, 열리면 빼기 */
.cm-faq-list summary::before,
.cm-faq-list summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-2);
  transition: transform 0.3s var(--out);
}

.cm-faq-list summary::after {
  transform: rotate(90deg);
}

.cm-faq-list details[open] summary::after {
  transform: rotate(0);
}

.cm-faq-list summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}

.cm-faq-list details p {
  margin: 0 0 20px;
  max-width: 720px;
  color: var(--text-2);
}

/* ───────── 다운로드 ───────── */
.cm-ver {
  display: inline-block;
  margin: 14px 0 0;
  padding: 5px 12px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: #1f5bb8;
  font-size: 14px;
  font-weight: 700;
}

.cm-dl .cm-btn {
  min-width: 220px;
}

.cm-src {
  margin-top: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cm-confetti {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  animation: cm-burst var(--t, 1.1s) cubic-bezier(0.2, 0.6, 0.35, 1) forwards;
}

@keyframes cm-burst {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  45% { transform: translate(calc(-50% + var(--dx) * 0.7), calc(-50% + var(--dy))) rotate(calc(var(--r) * 0.5)) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 380px)) rotate(var(--r)) scale(0.9); opacity: 0; }
}

/* ───────── 마무리 인사 ───────── */
.cm-bye {
  padding: 40px clamp(16px, 4vw, 48px) 72px;
  text-align: center;
}

.cm-crowd {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 10px 14px;
  padding-bottom: 12px;
  border-bottom: 2px dashed color-mix(in srgb, var(--text) 14%, transparent);
}

.cm-bye-t {
  margin: 20px 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* 폰에서 앱 모형 글씨 */
.cm-fit.is-small .cm-app-chat,
.cm-fit.is-small .cm-row {
  font-size: 18px;
}

.cm-fit.is-small .cm-msg-note,
.cm-fit.is-small .cm-app-h {
  font-size: 15px;
}

.cm-fit.is-small .cm-app {
  grid-template-columns: 210px 1fr;
}

.cm-fit.is-small .cm-inbox {
  width: 360px;
}

@media (max-width: 900px) {
  .cm-how {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }

  .cm-how-stage {
    grid-column: 1;
    top: 64px;
    z-index: 2;
    padding: 8px 0 12px;
    background: var(--tone);
    transition: background-color 0.9s ease;
  }

  .cm-how-steps {
    grid-row: 2;
    padding-bottom: 10vh;
  }

  .cm-how-step {
    min-height: 46vh;
  }
}

/* ───────── 어두운 화면을 쓰는 사람 — 밤 장면 색 ───────── */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1e2029;
    --surface-2: #262935;
    --line: #2f3241;
    --line-strong: #444859;
    --text: #eceef3;
    --text-2: #b9bcc8;
    --text-3: #8b8f9c;
    --blue-ink: #8db4ff;
  }

  body.cm { --tone: #14151c; }
  body.cm[data-tone="sky"] { --tone: #111a2c; }
  body.cm[data-tone="lilac"] { --tone: #191526; }
  body.cm[data-tone="white"] { --tone: #17181f; }

  ::selection { background: #2b4a80; }
  .cm-btn--go { border-color: #eceef3; background: #eceef3; color: #14151c; }
  .cm-kicker, .cm-ver { background: #1c2a45; color: #a9c7ff; }
  .cm-hint { background: #1c2a45; color: #c3d6ff; }
  .cm-bubble--me { background: #22345a; }
  .cm-card--hot { border-color: #6a3a36; background: #2a1d1e; }
  .cm-risk { background: #4d2622; color: #ffb4ab; }
  .cm-st[data-st="work"] { color: #5fd39b; }
  .cm-st[data-st="ask"] { color: #ff9b6e; }
  .cm-day::before { background: #1e2436; }
  .cm-day[data-beat="2"]::before { background: #0c1020; }
  .cm-cloud { background: #252b3d; box-shadow: none; opacity: 0.8; }
  .cm-app-lights i { background: #464a5c; }
  .cm-phone, .cm-win { border-color: var(--text-2); }
  .cm-win::before { background: var(--text-2); box-shadow: 7px 0 0 var(--text-2), 14px 0 0 var(--text-2); }
  .cm-dot { background: #29b6f0; }
}

/* ───────── 동글이 프사 (앱 ui/avatar/avatar.css 에서 옮김) ───────── */
.oa { position: relative; display: inline-block; flex: 0 0 auto; width: var(--oa-s); height: var(--oa-s); line-height: 0; vertical-align: middle; --oa-c: var(--oa-body); --oa-eye: #fff; }
.oa > svg { width: 100%; height: 100%; display: block; overflow: visible; }
.oa svg * { transform-box: fill-box; transform-origin: 50% 50%; }
.oa .oa-tr, .oa .oa-all { transform-origin: 50% 100%; }
.oa-body { fill: var(--oa-c); }
.oa-body.oa-round { stroke: var(--oa-c); stroke-width: 5; stroke-linejoin: round; }
.oa-body.oa-hexa { stroke: var(--oa-c); stroke-width: 3.4; stroke-linejoin: round; }
.oa-stem { fill: none; stroke: var(--oa-c); stroke-width: 2; stroke-linecap: round; }
.oa-w { fill: var(--oa-eye); }
.oa-k { fill: #1d1d20; }
.oa-gl { fill: #fff; }
.oa-lt, .oa-lb { fill: var(--oa-c); }
.oa .oa-lt { transform-origin: 50% 0; transform: scaleY(var(--oa-lid, 0)); }
.oa .oa-lb { transform-origin: 50% 100%; transform: scaleY(0); }
.oa-shut { fill: none; stroke: var(--oa-eye); stroke-width: 1.9; stroke-linecap: round; opacity: 0; transition: opacity 0.2s; }
.oa-smile { fill: none; stroke: var(--oa-eye); stroke-width: 2.2; stroke-linecap: round; display: none; }

/* 일함 — 눈이 먼저 휙, 몸이 한 박자 늦게 기울고, 끝엔 끄덕 */
.oa-st-work { --oa-lid: 0.22; }
.oa-st-work .oa-face { animation: oa-w-face calc(2.9s * var(--oa-k)) infinite var(--oa-d); }
.oa-st-work .oa-pup { animation: oa-w-pup calc(2.9s * var(--oa-k)) infinite var(--oa-d); }
.oa-st-work .oa-all { animation: oa-w-body calc(2.9s * var(--oa-k)) infinite var(--oa-d); }
@keyframes oa-w-face { 0%, 6% { transform: translate(0, 0); animation-timing-function: cubic-bezier(0.2, 1.6, 0.4, 1); } 13%, 38% { transform: translate(-2.8px, 0); animation-timing-function: cubic-bezier(0.2, 1.6, 0.4, 1); } 45%, 64% { transform: translate(2.8px, -0.4px); animation-timing-function: cubic-bezier(0.3, 1.2, 0.5, 1); } 71%, 88% { transform: translate(0.6px, 1.6px); } 100% { transform: translate(0, 0); } }
@keyframes oa-w-pup { 0%, 6% { transform: translate(0, 0); } 12%, 38% { transform: translate(-1.1px, 0); } 44%, 64% { transform: translate(1.1px, 0); } 70%, 88% { transform: translate(0, 0.7px); } 100% { transform: translate(0, 0); } }
@keyframes oa-w-body { 0%, 10% { transform: rotate(0) scale(1); animation-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1); } 19% { transform: rotate(-4.5deg) scale(1.03, 0.97); } 25%, 42% { transform: rotate(-2.4deg) scale(1); } 50% { transform: rotate(4.5deg) scale(1.03, 0.97); animation-timing-function: ease-out; } 56%, 68% { transform: rotate(2.4deg) scale(1); } 76% { transform: rotate(0) scale(1.05, 0.94); } 82%, 92% { transform: rotate(0) scale(0.99, 1.01); } 100% { transform: rotate(0) scale(1); } }

/* 쉼 — 느린 숨 */
.oa-st-rest { --oa-lid: 0.12; }
.oa-st-rest .oa-all { animation: oa-breathe calc(6.2s * var(--oa-k)) ease-in-out infinite var(--oa-d); }
@keyframes oa-breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(0.988, 1.018); } }

/* 두리번 — 쉬는 동글이가 고개를 돌린다 */
.oa-look.oa-st-rest .oa-face { animation: oa-look calc(5.4s * var(--oa-k)) infinite var(--oa-d); }
@keyframes oa-look { 0%, 30% { transform: translate(0, 0); } 36%, 52% { transform: translate(-2.6px, 0.2px); } 58%, 74% { transform: translate(2.6px, -0.3px); } 80%, 100% { transform: translate(0, 0); } }

/* 깜빡임 — JS 가 가끔 oa-blink 를 잠깐 단다 */
.oa-blink .oa-lt { animation: oa-blink-t 0.22s ease-in-out; }
.oa-blink .oa-lb { animation: oa-blink-b 0.22s ease-in-out; }
.oa-st-rest.oa-blink .oa-lt { animation-duration: 0.5s; }
.oa-st-rest.oa-blink .oa-lb { animation-duration: 0.5s; }
@keyframes oa-blink-t { 0%, 100% { transform: scaleY(var(--oa-lid, 0)); } 50% { transform: scaleY(1); } }
@keyframes oa-blink-b { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }

/* 물음 — 웅크림 → 뜀 → 납작 착지 → 갸웃 */
.oa-st-ask .oa-all { animation: oa-a-body calc(2.5s * var(--oa-k)) infinite; }
.oa-st-ask .oa-eyes { animation: oa-a-eyes calc(2.5s * var(--oa-k)) infinite; }
@keyframes oa-a-body { 0% { transform: translateY(0) rotate(0) scale(1); animation-timing-function: ease-out; } 9% { transform: translateY(0) scale(1.13, 0.85); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); } 20% { transform: translateY(-7px) scale(0.9, 1.13); animation-timing-function: ease-out; } 28% { transform: translateY(-8.5px) scale(1); animation-timing-function: ease-in; } 37% { transform: translateY(0) scale(1.16, 0.83); animation-timing-function: cubic-bezier(0.3, 1.7, 0.5, 1); } 47% { transform: translateY(0) scale(0.96, 1.04); } 55% { transform: translateY(0) scale(1.02, 0.98); } 61% { transform: translateY(0) rotate(0) scale(1); animation-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1); } 70%, 84% { transform: translateY(0) rotate(-7deg) scale(1); animation-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1); } 93%, 100% { transform: translateY(0) rotate(0) scale(1); } }
@keyframes oa-a-eyes { 0%, 9% { transform: scale(1.12); } 22% { transform: scale(1.32); } 30% { transform: scale(1.28); } 37% { transform: scale(1.05, 0.82); } 48%, 100% { transform: scale(1.14); } }

/* 꺼짐(밤) — 눈 감고 살짝 주저앉는다 */
.oa-st-off .oa-tr { transform: scale(1.05, 0.92); transition: transform 0.6s; }
.oa.oa-st-off .oa-lt, .oa.oa-st-off .oa-lb { transform: scaleY(1); }
.oa-st-off .oa-shut { opacity: 1; transition-delay: 0.3s; }

/* 전환 — 웃으며 한 번 뜀, 깨어나며 기지개 */
.oa.oa-tr-joy .oa-tr { animation: oa-t-joy 0.9s both; }
.oa-tr-joy .oa-eyev, .oa-tr-joy .oa-lt, .oa-tr-joy .oa-lb { display: none; }
.oa-tr-joy .oa-smile { display: inline; }
@keyframes oa-t-joy { 0% { transform: translateY(0) scale(1); } 15% { transform: scale(1.1, 0.88); } 38% { transform: translateY(-6px) scale(0.92, 1.1); } 60% { transform: translateY(0) scale(1.1, 0.9); } 80% { transform: scale(0.98, 1.02); } 100% { transform: scale(1); } }
.oa.oa-tr-wake .oa-tr { animation: oa-t-wake 0.9s both; }
.oa.oa-tr-alert .oa-tr { animation: oa-t-alert 0.5s both; }
.oa.oa-tr-alert .oa-face { animation: oa-t-pop 0.45s cubic-bezier(0.2, 1.7, 0.4, 1) both; }
@keyframes oa-t-alert { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-3.5px) scale(0.93, 1.09); } 70% { transform: translateY(0) scale(1.05, 0.95); } 100% { transform: translateY(0) scale(1); } }
@keyframes oa-t-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
@keyframes oa-t-wake { 0% { transform: scale(1.05, 0.92); } 28% { transform: scale(0.9, 1.14); animation-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1); } 55% { transform: scale(1.06, 0.95); } 76% { transform: scale(0.98, 1.02); } 100% { transform: scale(1); } }

/* 화면 밖이면 멈춘다 */
.oa.oa-hidden svg * { animation-play-state: paused !important; }

/* ───────── 움직임 줄이기: 전부 멈춘 그림, 스크롤 장면은 마지막 장면 그대로 ───────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .cm-story {
    height: auto;
  }

  .cm-sticky {
    position: static;
    height: auto;
    padding-top: 64px;
  }
}
