/* www/assets/css/style.css
   인스레드 — 프리미엄 에디토리얼 테마
   잉크 · 딥 인디고 · 샴페인 골드 / 모바일 우선 · 이탤릭 금지 · word-break: keep-all */

:root {
  --bg: #f4f3ef;
  --bg-2: #eceae4;
  --ink: #141419;
  --ink-soft: #55545e;
  --ink-faint: #9b9aa4;
  --card: #ffffff;
  --line: #e6e4db;
  --accent: #3b37a0;
  --accent-2: #5b4bc4;
  --gold: #b28a52;
  --grad: linear-gradient(135deg, #26255c 0%, #3b37a0 50%, #5b4bc4 100%);
  --grad-gold: linear-gradient(120deg, #2b2a63 0%, #4b3fb0 40%, #8a63cf 70%, #b28a52 100%);
  --shadow-sm: 0 1px 1px rgba(20, 20, 28, .03), 0 8px 24px rgba(20, 20, 28, .05);
  --shadow-lg: 0 12px 34px rgba(20, 20, 28, .10), 0 34px 70px rgba(35, 30, 70, .10);
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; font-style: normal; }
html {
  scroll-behavior: smooth;
  /* 콘텐츠가 화면보다 넓어지면 모바일 브라우저(특히 사파리)가 전체를 축소해
     "PC 화면처럼 작게" 보입니다. 레이아웃 뷰포트가 커지지 않게 원천 차단합니다. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* 모바일에서는 기본 글자를 한 단계 키워 가독성을 확보합니다 (rem 기반이라 전체가 비례 확대) */
@media (max-width: 768px) {
  html { font-size: 17px; }
}

body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: keep-all;
  /* keep-all은 한글만 어절 단위로 유지합니다. 긴 영문 단어·URL·해시태그가
     화면 밖으로 삐져나가 축소를 유발하지 않도록 넘칠 때만 강제로 줄바꿈합니다. */
  overflow-wrap: break-word;
  line-height: 1.66;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.012em;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── 배경 레이어: 종이 질감 + 떠다니는 오브 ───────────────── */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
.orb {
  position: fixed; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(60px);
}
.orb-1 {
  width: 480px; height: 480px; top: -180px; left: 50%; margin-left: -240px;
  background: radial-gradient(circle, rgba(91, 75, 196, .17), transparent 70%);
  animation: orbDrift1 22s ease-in-out infinite;
}
.orb-2 {
  width: 340px; height: 340px; bottom: -140px; right: -110px;
  background: radial-gradient(circle, rgba(178, 138, 82, .13), transparent 70%);
  animation: orbDrift2 26s ease-in-out infinite;
}
.orb-3 {
  width: 260px; height: 260px; top: 40%; left: -130px;
  background: radial-gradient(circle, rgba(59, 55, 160, .10), transparent 70%);
  animation: orbDrift3 30s ease-in-out infinite;
}

/* ── 상단 스크롤 진행선 ───────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-gold);
  z-index: 100;
  transition: width .15s ease-out;
}

button, input, textarea, select { font: inherit; }

/* ── 상단 공통 메뉴 ──────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(244, 243, 239, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 20, 28, .06);
  animation: navIn .5s var(--ease) both;
}
.topnav-inner {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
}
.brand {
  font-weight: 800; font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
  flex: none;
}
.brand span {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* ── 회원 메뉴: 대분류 버튼 + 소분류 드롭다운 (데스크톱) ── */
.nav-menu {
  display: flex; gap: 2px;
  margin-left: auto;
}
.nav-group { position: relative; }
.nav-group-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: .9rem; font-weight: 600;
  color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  padding: 7px 11px; border-radius: 999px;
  transition: color .2s, background .2s;
  position: relative;
  white-space: nowrap;
}
.nav-group-btn:hover { color: var(--ink); background: rgba(20, 20, 28, .05); }
.nav-group-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav-group-btn.active { color: var(--accent); font-weight: 700; }
.nav-group-btn.active::after {
  content: "";
  position: absolute; left: 50%; bottom: 1px;
  width: 14px; height: 2px; margin-left: -7px;
  border-radius: 2px;
  background: var(--gold);
}
.nav-chevron {
  width: 11px; height: 11px; flex: none;
  transition: transform .2s var(--ease);
}
.nav-group.open .nav-chevron { transform: rotate(180deg); }
.nav-group-list {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  display: none; flex-direction: column;
  min-width: 176px;
  background: #fff;
  border: 1px solid rgba(20, 20, 28, .08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 20, 28, .16);
  padding: 6px;
}
.nav-group.open .nav-group-list { display: flex; }
.nav-group-list a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .92rem; font-weight: 600;
  padding: 10px 14px; border-radius: 10px;
  text-align: left;
  white-space: nowrap;
}
.nav-group-list a:hover, .nav-group-list a:active { color: var(--ink); background: rgba(20, 20, 28, .05); }
.nav-group-list a.active { color: var(--accent); font-weight: 700; }
.nav-group-list a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }

/* ── 햄버거 버튼 (모바일에서만 표시) ─────────────────── */
.nav-burger {
  display: none;
  flex: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 38px;
  padding: 8px 9px;
  background: none; border: none; border-radius: 10px; cursor: pointer;
}
.nav-burger:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav-burger-bar {
  display: block; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), opacity .18s;
}
.topnav.menu-open .nav-burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topnav.menu-open .nav-burger-bar:nth-child(2) { opacity: 0; }
.topnav.menu-open .nav-burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── 비로그인 방문자 메뉴 (모바일에서도 상단 그대로) ──── */
.nav-guest {
  display: flex; gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-left: auto;
}
.nav-guest::-webkit-scrollbar { display: none; }
.nav-guest a {
  flex: none;
  font-size: .9rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  padding: 7px 11px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-guest a:hover { color: var(--ink); background: rgba(20, 20, 28, .05); }
.nav-guest a.active { color: var(--accent); font-weight: 700; }
.nav-cta {
  flex: none;
  padding: 7px 16px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: .88rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(43, 42, 99, .22);
}
.nav-cta:hover { filter: brightness(1.08); }

/* ── 크레딧 잔액 필 (회원) ───────────────────────────── */
.credit-pill {
  flex: none;
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: #e8ecff; color: #3b4bbd; font-size: .8rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.credit-pill:hover { background: #dde3ff; }

.container {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding-bottom: 8px;
  animation: pageIn .6s var(--ease) both;
}
body.leaving .container { animation: pageOut .32s ease forwards; }

/* ── 히어로: 요소별 순차 등장 ─────────────────────────── */
.hero { padding: 52px 0 20px; text-align: center; }
.hero > * { animation: riseIn .8s var(--ease) both; }
.hero > *:nth-child(1) { animation-delay: .05s; }
.hero > *:nth-child(2) { animation-delay: .18s; }
.hero > *:nth-child(3) { animation-delay: .32s; }
.hero .eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  padding: 8px 18px;
  border: 1px solid rgba(178, 138, 82, .35);
  border-radius: 999px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(1.85rem, 6.6vw, 2.7rem);
  line-height: 1.22; font-weight: 800;
  letter-spacing: -0.038em;
  margin: 0 0 16px;
}
/* 그라데이션 텍스트 — 은은하게 흐르는 시머 */
.hero h1 .grad, .grad {
  background: var(--grad-gold);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
.hero p { font-size: 1.07rem; color: var(--ink-soft); margin: 0 auto; max-width: 36ch; }

/* ── 특징 3종 스트립 ─────────────────────────────────── */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 28px 0 6px;
}
.trio div {
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.trio div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.trio .num {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; color: var(--gold); margin-bottom: 2px;
}
.trio .txt { font-size: .88rem; font-weight: 600; }

/* ── 카드: 스크롤 등장(reveal) + 호버 리프트 ─────────────── */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card::before {
  content: "";
  position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178, 138, 82, .55), transparent);
}
/* JS reveal: .rv는 숨김 → .rv.in 등장 */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in.d1 { transition-delay: .08s; } .rv.in.d2 { transition-delay: .16s; } .rv.in.d3 { transition-delay: .24s; }

.card h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.02em; }
.card h2 .tick {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-right: 9px; vertical-align: 2px;
}
.card h2 + .muted { margin-top: 0; margin-bottom: 14px; }
.card h3 { font-size: 1.02rem; font-weight: 700; margin: 20px 0 8px; }

/* ── 폼 ─────────────────────────────────────────────── */
.field { margin: 18px 0; position: relative; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; transition: color .2s; }
.field:focus-within label { color: var(--accent); }
.field .hint { font-weight: 400; color: var(--ink-faint); font-size: .84rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fbfaf7;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s, transform .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 55, 160, .11);
  transform: translateY(-1px);
}
.field textarea { min-height: 92px; resize: vertical; }
.topics-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.char-count {
  position: absolute; right: 4px; bottom: -20px;
  font-size: .76rem; color: var(--ink-faint);
  opacity: 0; transition: opacity .25s;
}
.field:focus-within .char-count { opacity: 1; }

/* ── 버튼: 광택 스윕 + 리프트 ─────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-block; width: 100%;
  padding: 17px 24px; border: none;
  border-radius: 15px;
  background: var(--grad); background-size: 180% 180%;
  color: #fff; font-weight: 700; font-size: 1.05rem;
  cursor: pointer; text-align: center; text-decoration: none;
  box-shadow: 0 10px 26px rgba(38, 37, 92, .30);
  transition: transform .18s, box-shadow .18s, background-position .6s, opacity .2s;
}
.btn::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(38, 37, 92, .40); background-position: 100% 0; }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-secondary::after { background: linear-gradient(105deg, transparent, rgba(20, 20, 28, .05), transparent); }
.btn-secondary:hover { background: #fbfaf7; box-shadow: var(--shadow-sm); }

/* ── 메시지 ──────────────────────────────────────────── */
.msg { margin: 16px 0; padding: 15px 17px; border-radius: 15px; font-size: .95rem; animation: riseIn .4s var(--ease) both; }
.msg-error { background: #fbeceb; color: #b23a30; }
.hidden { display: none; }

/* ── 체크박스·라디오 공통 (DEPLOY8: 가시성·정렬 개선) ─────────
   .chk 는 register/consent/account/profile 등에서 쓰는 선택 항목 공통 클래스입니다.
   글자와 박스의 세로 정렬을 맞추고, 선택 여부가 테두리·배경으로도 보이게 합니다. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.chk {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; margin: 8px 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
  cursor: pointer; font-size: .93rem; line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.chk:hover { border-color: rgba(59, 55, 160, .32); }
.chk:has(input:checked) { border-color: rgba(59, 55, 160, .5); background: rgba(59, 55, 160, .06); }
.chk input[type="checkbox"], .chk input[type="radio"] {
  width: 20px; height: 20px; flex: none; margin: 1px 0 0;
}
.chk-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chk-row .chk { margin: 0; flex: 1 1 auto; justify-content: flex-start; align-items: center; }

/* ── 풀스크린 분석 오버레이 ────────────────────────────── */
#overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244, 243, 239, .88);
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
#overlay.on { opacity: 1; pointer-events: auto; }
.ov-box { width: min(100% - 48px, 420px); text-align: center; }
.ov-orb {
  width: 84px; height: 84px; margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--grad);
  position: relative;
  animation: orbPulse 2.2s ease-in-out infinite;
  box-shadow: 0 14px 40px rgba(59, 55, 160, .35);
}
.ov-orb::before {
  content: "";
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 55, 160, .3);
  animation: ringSpin 3.2s linear infinite;
  border-top-color: var(--gold);
}
.ov-orb::after {
  content: "";
  position: absolute; inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(178, 138, 82, .35);
  animation: ringSpin 7s linear infinite reverse;
}
.ov-title { font-size: 1.18rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.ov-sub { color: var(--ink-soft); font-size: .92rem; margin: 0 0 22px; }
.ov-steps { text-align: left; margin: 0 auto 22px; max-width: 300px; }
.ov-step {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 0; font-size: .95rem; color: var(--ink-faint);
  transition: color .4s;
}
.ov-step .dot {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: transparent;
  transition: all .4s var(--ease);
  background: #fff;
}
.ov-step.active { color: var(--ink); font-weight: 600; }
.ov-step.active .dot { border-color: var(--accent); animation: dotPulse 1.2s ease-in-out infinite; }
.ov-step.done { color: var(--ink-soft); }
.ov-step.done .dot {
  border-color: var(--gold); background: var(--gold); color: #fff;
  animation: popCheck .4s var(--ease);
}
.ov-bar { height: 5px; background: rgba(20, 20, 28, .07); border-radius: 999px; overflow: hidden; }
.ov-bar > span {
  display: block; height: 100%; width: 0%;
  background: var(--grad-gold); background-size: 200% 100%;
  border-radius: 999px;
  animation: barSheen 2.4s linear infinite;
  transition: width .8s var(--ease);
}
.ov-hint { margin-top: 14px; font-size: .82rem; color: var(--ink-faint); }

/* ── 점수 바 ─────────────────────────────────────────── */
.score-row { margin: 17px 0; }
.score-row .score-label { display: flex; justify-content: space-between; font-size: .93rem; margin-bottom: 7px; font-weight: 600; }
.score-row .score-label .val { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.score-bar { height: 10px; background: #ecebe3; border-radius: 999px; overflow: hidden; }
.score-bar > span {
  display: block; height: 100%; width: 0;
  background: var(--grad); background-size: 200% 100%;
  border-radius: 999px;
  transition: width 1.2s var(--ease);
  animation: barSheen 3s linear infinite;
}

/* ── 비율 ────────────────────────────────────────────── */
.ratio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; text-align: center; }
.ratio div {
  background: linear-gradient(160deg, #faf9f5, #f2efff);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 6px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ratio div:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.ratio strong {
  display: block; font-size: 1.6rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ratio span { font-size: .85rem; color: var(--ink-soft); }

/* ── 미션 리스트: 순차 등장 ────────────────────────────── */
ul.missions { padding-left: 4px; margin: 12px 0; list-style: none; }
ul.missions li {
  position: relative; padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
}
ul.missions li:last-child { border-bottom: none; }
ul.missions li::before {
  content: ""; position: absolute; left: 5px; top: 19px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(178, 138, 82, .14);
}
/* 결과 페이지에서 JS가 li에 rv 부여 → 순차 등장 */

/* ── 생성 결과 블록 + 복사 버튼 ────────────────────────── */
.gen-item {
  position: relative;
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  padding-right: 74px;
  margin: 12px 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.gen-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(178, 138, 82, .4); }
.gen-text { margin: 0; white-space: pre-line; font-size: .96rem; }
.gen-num {
  display: inline-block;
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 6px;
}
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .8rem; font-weight: 700;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.copy-btn.copied {
  background: var(--gold); border-color: var(--gold); color: #fff;
  animation: popCheck .35s var(--ease);
}

/* ── 완성 후 액션 바 (DEPLOY32) ─────────────────────────
   "복사 → 저장 → 업로드 완료"를 결과물 바로 아래 한 자리에 모읍니다.
   기존에는 복사 버튼이 본문 우측 상단, 업로드 완료가 본문 위, 저장이 썸네일마다
   흩어져 있어 올릴 때마다 스크롤을 위아래로 오가야 했습니다.
   오늘의 글 · 카드뉴스 · 영상만들기 세 화면이 이 클래스를 공유합니다. */
.done-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 12px; padding: 11px 12px;
  border: 1.5px solid rgba(178, 138, 82, .38);
  border-radius: 14px;
  background: #fffdf7;
}
/* .gen-item은 우측 상단 복사 버튼 자리로 padding-right:74px를 두는데(좌우 기본 18px),
   액션 바에는 그 여백이 필요 없으므로 74-18=56px만큼 되돌려 폭을 확보합니다. */
.gen-item .done-bar { margin-right: -56px; }
.done-bar-title {
  flex: 0 0 100%;
  margin: 0;
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  color: var(--gold);
}
.done-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .85rem; font-weight: 700; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.done-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
/* hidden 속성이 display:inline-flex에 밀리지 않도록 명시합니다 */
.done-btn[hidden] { display: none; }
.done-btn.is-primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.done-btn.is-primary:hover { color: #fff; opacity: .92; }
.done-btn.copied {
  background: var(--gold); border-color: var(--gold); color: #fff;
  animation: popCheck .35s var(--ease);
}
.done-btn.is-done {
  background: rgba(61, 220, 151, .16); border-color: rgba(61, 220, 151, .5);
  color: #1c7a52; cursor: default; transform: none;
}
.done-btn:disabled { opacity: .55; cursor: default; transform: none; }
.done-bar-note { flex: 0 0 100%; margin: 2px 0 0; font-size: 12px; }

/* ── 30일 캘린더 ─────────────────────────────────────── */
.cal-progress {
  height: 7px; background: #ecebe3; border-radius: 999px;
  overflow: hidden; margin: 6px 0 18px;
}
.cal-progress > span {
  display: block; height: 100%; width: 0;
  background: var(--grad-gold); background-size: 200% 100%;
  border-radius: 999px;
  animation: barSheen 3s linear infinite;
  transition: width .8s var(--ease);
}
.day-item .day-goal {
  margin: 0 0 8px; font-size: .82rem; color: var(--ink-faint);
}

.muted { color: var(--ink-soft); font-size: .92rem; }
.center { text-align: center; }
.share-quote {
  font-size: 1.02rem; font-weight: 600; color: var(--ink-soft);
  padding: 14px 18px; margin: 0 0 18px;
  border-left: 3px solid var(--gold);
  background: #faf9f5; border-radius: 0 14px 14px 0;
  text-align: left;
}
footer { padding: 46px 0; text-align: center; color: var(--ink-faint); font-size: .84rem; letter-spacing: .01em; }

/* ── keyframes ──────────────────────────────────────── */
@keyframes navIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes orbDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, 24px) scale(1.08); } }
@keyframes orbDrift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-34px, -26px); } }
@keyframes orbDrift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px, -30px); } }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(59,55,160,.25); } 50% { box-shadow: 0 0 0 6px rgba(59,55,160,0); } }
@keyframes popCheck { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes barSheen { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* 접근성: 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  *, .orb { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .score-bar > span { transition: none !important; }
}

/* ══ 디자인 이펙트 v2 — 프리미엄 코치 일러스트 ═══════════════
   전문 여성 코치 데스크 씬(write/read) · 실 진행바 · 타자기 · 저장 체크
   app.js의 fxScene / fxTypewriter와 짝을 이룹니다. */

.ov-scene {
  width: min(292px, 76vw);
  margin: -2px auto 12px;
  filter: drop-shadow(0 14px 26px rgba(38, 37, 92, .08));
}
.ov-scene svg { display: block; width: 100%; height: auto; }

/* 인물 대신 데스크 오브젝트만 은은하게 움직입니다. */
.fxc-editor-mark {
  transform-box: fill-box;
  transform-origin: center;
  animation: fxMarkFloat 4.8s ease-in-out infinite;
}
.fxc-back-cards {
  transform-box: fill-box;
  transform-origin: center;
  animation: fxCardsFloat 5.8s ease-in-out infinite;
}
/* 글쓰기/검토 도구 움직임 */
.fxc-pen {
  transform-box: fill-box;
  transform-origin: 86% 20%;
  animation: fxWritePro .56s ease-in-out infinite;
}
.fxc-magnifier {
  transform-box: fill-box;
  transform-origin: center;
  animation: fxScanPro 3.2s ease-in-out infinite;
}

/* 노트에 글줄이 차오르는 느낌 */
.fxc-line {
  transform-box: fill-box;
  transform-origin: left center;
  animation: fxLinePro 3.4s ease-in-out infinite;
}
.fxc-page-lines line { opacity: .78; }
.fxc-chk {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  animation: fxChkPro 4.1s ease-in-out infinite;
}
.fxc-spark { animation: fxSparkPro 1.9s ease-in-out infinite alternate; }

/* 실(thread)처럼 배경을 관통하는 금색 연결선 */
.fxc-thread-flow {
  stroke-dasharray: 34 14;
  animation: fxThreadFlow 5.2s linear infinite;
}
.fxc-mini-chart {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: fxChartGrow 3.8s ease-in-out infinite;
}

/* 실이 점(스티치)을 꿰며 채워지는 진행바 */
.ov-thread { position: relative; height: 14px; background: transparent; overflow: visible; border-radius: 0; }
.ov-thread::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(59, 55, 160, .28) 2.3px, transparent 3px);
  background-size: 25% 100%; background-position: 6px 50%; background-repeat: repeat-x;
}
.ov-thread > span {
  position: absolute; left: 0; top: 50%; height: 2.5px; margin-top: -1.25px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(178, 138, 82, .18);
}
.ov-thread > span::after {
  content: "";
  position: absolute; right: -11px; top: 50%; margin-top: -1.3px;
  width: 15px; height: 2.6px; border-radius: 999px;
  background: #33323f;
  transform: rotate(-22deg);
  transform-origin: left center;
}

/* 타자기 커서 (오늘의 글 결과) */
.gen-text.typing::after {
  content: ""; display: inline-block; width: 2px; height: 1em;
  background: var(--accent); margin-left: 2px; vertical-align: -2px;
  animation: fxCaret .85s step-end infinite;
}

/* 기록 저장 완료 체크 */
.msg-saved { background: #edf3ea; color: #2f6b3f; display: flex; align-items: center; gap: 10px; }
.fx-check {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: #2f6b3f; display: inline-flex; align-items: center; justify-content: center;
  animation: popCheck .45s var(--ease);
}
.fx-check svg { width: 15px; height: 15px; display: block; }
.fx-check svg path {
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: fxCheckDraw .5s .12s var(--ease) forwards;
}

@keyframes fxMarkFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes fxCardsFloat { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-2.2px); opacity: .92; } }
@keyframes fxWritePro { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(2px, 1px) rotate(-1.4deg); } }
@keyframes fxScanPro { 0%,100% { transform: translate(-4px,-1px) rotate(-1deg); } 50% { transform: translate(12px,3px) rotate(2deg); } }
@keyframes fxLinePro {
  0% { transform: scaleX(0); opacity: .95; }
  44% { transform: scaleX(1); opacity: 1; }
  78% { transform: scaleX(1); opacity: 1; }
  92% { opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
@keyframes fxChkPro {
  0% { stroke-dashoffset: 18; opacity: 1; }
  18% { stroke-dashoffset: 0; opacity: 1; }
  76% { stroke-dashoffset: 0; opacity: 1; }
  92% { opacity: 0; }
  100% { stroke-dashoffset: 18; opacity: 0; }
}
@keyframes fxThreadFlow { to { stroke-dashoffset: -96; } }
@keyframes fxChartGrow { 0% { stroke-dashoffset: 46; } 38%,76% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 46; } }
@keyframes fxSparkPro { from { opacity: .18; transform: scale(.88); } to { opacity: .95; transform: scale(1.05); } }
@keyframes fxCheckDraw { to { stroke-dashoffset: 0; } }
@keyframes fxCaret { 50% { opacity: 0; } }

/* 시스템의 '동작 줄이기' 설정을 존중합니다 */
@media (prefers-reduced-motion: reduce) {
  .fxc-editor-mark, .fxc-back-cards,
  .fxc-pen, .fxc-magnifier, .fxc-line, .fxc-chk, .fxc-spark,
  .fxc-thread-flow, .fxc-mini-chart, .fx-check, .fx-check svg path,
  .gen-text.typing::after { animation: none !important; }
  .fxc-chk, .fx-check svg path { stroke-dashoffset: 0; }
  .fxc-mini-chart { stroke-dashoffset: 0; }
}

/* ── 모바일: 상단 햄버거 패널 + 대분류 아코디언 ─────────── */
/* 768px 이하에서 대분류 버튼 행을 숨기고, 햄버거를 누르면 상단에서
   패널이 내려옵니다. 대분류를 누르면 소분류가 하나씩(아코디언) 열립니다. */
@media (max-width: 768px) {
  .nav-burger { display: flex; margin-left: auto; }
  .credit-pill { margin-left: auto; }
  .credit-pill + .nav-burger { margin-left: 0; }

  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid rgba(20, 20, 28, .08);
    box-shadow: 0 18px 34px rgba(20, 20, 28, .14);
    padding: 4px 16px 10px;
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .topnav.menu-open .nav-menu { display: flex; }

  .nav-group { position: static; border-bottom: 1px solid var(--line); }
  .nav-group:last-child { border-bottom: none; }
  .nav-group-btn {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 1rem;
    border-radius: 0;
  }
  .nav-group-btn:hover { background: none; }
  .nav-group-btn.active::after { display: none; }
  .nav-chevron { width: 13px; height: 13px; color: var(--ink-faint); }

  .nav-group-list {
    position: static; transform: none;
    min-width: 0;
    border: none; border-radius: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 10px;
  }
  .nav-group-list a {
    font-size: .95rem;
    padding: 11px 12px;
    border-radius: 10px;
    white-space: normal;
  }
  .nav-group-list a:hover { background: rgba(20, 20, 28, .04); }
  .nav-group-list a.active { background: rgba(59, 55, 160, .07); }
}

/* ── 공개 랜딩 전용 (세션 4-3) ─────────────────────────── */
.landing-cta { display: flex; flex-direction: column; gap: 10px; margin: 4px auto 0; max-width: 420px; }
@media (min-width: 640px) {
  .landing-cta { flex-direction: row; max-width: none; justify-content: center; }
  .landing-cta .btn { width: auto; min-width: 220px; }
}
.landing-login { margin: 14px 0 6px; font-size: .86rem; color: var(--ink-faint); }
.landing-login a { color: var(--ink-soft); text-decoration: underline; }
ol.landing-steps { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: landing-step; }
ol.landing-steps li {
  position: relative; padding: 12px 0 12px 44px;
  border-bottom: 1px solid var(--line);
  counter-increment: landing-step;
}
ol.landing-steps li:last-child { border-bottom: none; }
ol.landing-steps li::before {
  content: counter(landing-step, decimal-leading-zero);
  position: absolute; left: 2px; top: 15px;
  font-weight: 800; color: var(--gold); font-size: .82rem; letter-spacing: .06em;
}
ol.landing-steps strong { display: block; font-size: .98rem; }
ol.landing-steps span { color: var(--ink-soft); font-size: .9rem; }
.landing-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(59, 55, 160, .08); color: var(--accent);
  font-size: .8rem; font-weight: 700;
}
.landing-price { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }

/* ── 가격 페이지 전용 (세션 4-4) ───────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; margin: 20px 0; }
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.pricing-card { margin: 0; }
.pricing-featured { border: 2px solid var(--accent); }
.pricing-ribbon {
  position: absolute; top: -12px; right: 18px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--grad-gold); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.pricing-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 12px 0; }
.pricing-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { text-align: right; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ── 비로그인 상단 링크: 모바일 압축 ───────────────────── */
/* 비로그인 방문자 메뉴는 3개 링크 + 로그인 버튼이라 모바일에서도 상단에 그대로 둡니다. */
@media (max-width: 768px) {
  .nav-guest a { font-size: .84rem; padding: 7px 8px; }
  .nav-cta { font-size: .84rem; padding: 7px 13px; }
}
.landing-footer-links { margin-bottom: 8px; }
.landing-footer-links a { color: var(--ink-soft); text-decoration: none; margin: 0 8px; }
.landing-footer-links a:hover { color: var(--ink); text-decoration: underline; }
