/* =========================================
   SOLETTE × ACCCOMMS Instagram 마케팅 제안서
   Style Sheet — v3 (4:5 unified upload system)
   ========================================= */

/* ----------- RESET & BASE ----------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #111111;
  --dark:     #1a1a1a;
  --mid:      #2d2d2d;
  --light:    #F7F4F0;
  --white:    #ffffff;
  --sand:     #C8B89A;
  --sage:     #8B9E8F;
  --rose:     #D4668A;
  --ivory:    #F5F0EB;
  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Noto Sans KR', sans-serif;
  --ff-en:    'Inter', sans-serif;
  --radius:   12px;
  --section-pad: 100px 80px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--ff-sans); background: var(--white); color: var(--dark); overflow-x: hidden; }
img  { max-width: 100%; display: block; }

/* =========================================
   UPLOAD CELL — 통합 이미지 업로드 시스템 (4:5)
   ========================================= */
.upload-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}
/* uc-inner: 실제 이미지가 들어가는 레이어 */
.uc-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.upload-cell:hover .uc-inner { transform: scale(1.03); }

/* uc-overlay: 호버 시 나타나는 업로드 힌트 */
.uc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: all .25s ease;
  z-index: 3;
}
.upload-cell:hover .uc-overlay {
  background: rgba(0,0,0,0.38);
  opacity: 1;
}
.uc-icon {
  font-size: 28px;
  color: var(--white);
  font-weight: 300;
  line-height: 1;
}
.uc-text {
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
  font-weight: 500;
}

/* 이미지 등록 후 힌트 강조 테두리 제거 */
.upload-cell.has-image .uc-overlay { background: rgba(0,0,0,0); }
.upload-cell.has-image:hover .uc-overlay { background: rgba(0,0,0,0.3); }

/* ── 빈 셀 플레이스홀더 테두리 ── */
.upload-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(200,184,154,0.4);
  border-radius: var(--radius);
  z-index: 2;
  pointer-events: none;
  transition: border-color .2s;
}
.upload-cell:hover::before { border-color: rgba(200,184,154,0.8); }
.upload-cell.has-image::before { border: none; }

/* =========================================
   IMAGE PLACEHOLDERS
   ========================================= */
.img-ph { background-size: cover; background-position: center; }
.img-ph--1 { background: linear-gradient(135deg, #c8b89a 0%, #a89278 40%, #8b9e8f 100%); }
.img-ph--2 { background: linear-gradient(135deg, #e8ddd0 0%, #c8b89a 50%, #b8a88a 100%); }
.img-ph--3 { background: linear-gradient(160deg, #6b7e6f 0%, #8b9e8f 60%, #adb8ae 100%); }
.img-ph--4 { background: linear-gradient(135deg, #f0e8e0 0%, #d4c4b0 50%, #c8b89a 100%); }
.img-ph--5 { background: linear-gradient(160deg, #d4668a 0%, #c8547a 40%, #a8436a 100%); }

/* =========================================
   PAGE NAV DOTS
   ========================================= */
.page-nav {
  position: fixed;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 999;
}
.pn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.7);
  transition: all .3s; cursor: pointer;
}
.pn-dot:hover, .pn-dot--active { background: var(--white); transform: scale(1.4); }

/* =========================================
   SHARED PAGE
   ========================================= */
.page { min-height: 100vh; display: flex; align-items: center; }
.page__inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--section-pad); }
.page-light { background: var(--light); }
.page-dark  { background: var(--dark); color: var(--white); }

.section-label {
  font-family: var(--ff-en); font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--sand); margin-bottom: 16px;
}
.page__title {
  font-family: var(--ff-serif); font-size: clamp(38px, 5vw, 64px);
  font-weight: 600; line-height: 1.1; color: var(--dark); margin-bottom: 28px;
}
.page__title--white { color: var(--white); }
.page__desc { font-size: 15px; line-height: 1.8; color: #555; max-width: 560px; margin-bottom: 48px; }
.page__desc--white { color: rgba(255,255,255,0.75); }

/* =========================================
   COVER
   ========================================= */
.cover {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--dark);
}
.cover__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.92) 40%, rgba(17,17,17,0.6));
  z-index: 1;
}
.cover__img-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; z-index: 0;
}
.grid-item { background-size: cover; background-position: center; }
.gi-1 { background: linear-gradient(160deg, #c8b89a 0%, #8b9e8f 100%); }
.gi-2 { background: linear-gradient(160deg, #e8ddd0 0%, #c8b89a 100%); }
.gi-3 { background: linear-gradient(160deg, #8b9e8f 0%, #6b7e6f 100%); }
.gi-4 { background: linear-gradient(160deg, #d4668a 20%, #c8b89a 100%); }
.cover__content {
  position: relative; z-index: 2; text-align: center; color: var(--white); padding: 40px;
}
.cover__label {
  font-family: var(--ff-en); font-size: 11px; font-weight: 500;
  letter-spacing: 6px; color: var(--sand); margin-bottom: 28px;
}
.cover__title {
  font-family: var(--ff-serif); font-size: clamp(48px, 8vw, 96px);
  font-weight: 600; line-height: 1.05;
  display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.cover__brand { color: var(--white); }
.cover__x     { color: var(--sand); font-weight: 300; font-size: 0.6em; }
.cover__agency { color: var(--sand); font-style: italic; }
.cover__subtitle {
  font-size: 16px; font-weight: 300; letter-spacing: 3px;
  color: rgba(255,255,255,0.7); margin-top: 20px;
}
.cover__date {
  font-family: var(--ff-en); font-size: 13px; letter-spacing: 4px;
  color: rgba(255,255,255,0.4); margin-top: 12px;
}
.cover__scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-family: var(--ff-en); font-size: 10px; letter-spacing: 3px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 40px; }
  50%       { opacity: 0.3; height: 20px; }
}

/* =========================================
   TOC
   ========================================= */
.toc-page { min-height: 100vh; }
.toc-page__inner { max-width: 800px; margin: 0 auto; padding: var(--section-pad); }
.toc-page__title { font-family: var(--ff-serif); font-size: 56px; color: var(--white); margin-bottom: 56px; font-style: italic; }
.toc-list { list-style: none; }
.toc-list li {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; transition: all .3s;
}
.toc-list li:hover { padding-left: 12px; }
.toc-num  { font-family: var(--ff-en); font-size: 12px; color: var(--sand); letter-spacing: 2px; min-width: 32px; }
.toc-text { font-family: var(--ff-serif); font-size: 22px; color: var(--white); flex: 1; }
.toc-line { flex: 1; height: 1px; background: rgba(255,255,255,0.12); }

/* =========================================
   BRAND OVERVIEW
   ========================================= */
.brand-overview .page__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; padding: var(--section-pad);
}
.brand-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tag {
  font-family: var(--ff-en); font-size: 11px; letter-spacing: 2px;
  padding: 7px 16px; border: 1px solid var(--sand); color: var(--sand); border-radius: 20px;
}

/* Brand 이미지 스택 — 두 셀을 겹쳐 배치 (레거시, 미사용) */
.brand-img-stack {
  position: relative;
  height: 560px;
}
.upload-cell--brand-main {
  position: absolute !important;
  width: 78% !important;
  top: 0; right: 0;
  aspect-ratio: 4/5 !important;
  height: auto !important;
}
.upload-cell--brand-sub {
  position: absolute !important;
  width: 54% !important;
  bottom: 0; left: 0;
  aspect-ratio: 4/5 !important;
  height: auto !important;
  border: 4px solid var(--light) !important;
  z-index: 2;
}

/* Brand 이미지 — 단일 (현재 사용) */
.brand-img-single {
  width: 100%;
}
.upload-cell--brand-single {
  width: 100% !important;
  aspect-ratio: 4/5 !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.13);
}

/* =========================================
   MISSION
   ========================================= */
.mission-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 48px; }
.mission-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px 24px; transition: all .3s;
}
.mission-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.mission-icon { color: var(--sand); font-size: 22px; margin-bottom: 16px; }
.mission-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; color: var(--white); }
.mission-card p  { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); }
.mission-quote { border-left: 3px solid var(--sand); padding-left: 28px; }
.mission-quote blockquote { font-family: var(--ff-serif); font-size: 22px; font-style: italic; color: var(--ivory); line-height: 1.6; }

/* =========================================
   TONE & MOOD
   ========================================= */
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 48px; align-items: start; }
.tone-concept__title { font-family: var(--ff-en); font-size: 11px; letter-spacing: 3px; color: var(--sand); text-transform: uppercase; margin-bottom: 20px; }
.tone-concept__desc  { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 28px; }
.keyword-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.kbadge { font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 20px; letter-spacing: 0.5px; }
.kbadge--primary   { background: var(--dark); color: var(--white); }
.kbadge--secondary { background: var(--sand); color: var(--white); }
.kbadge--accent    { background: var(--rose); color: var(--white); }
.kbadge--neutral   { background: var(--sage); color: var(--white); }

.palette-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.swatch__color { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.swatch__name { font-size: 11px; font-weight: 500; color: #444; }
.swatch__hex  { font-family: var(--ff-en); font-size: 10px; color: #999; }

/* 톤앤무드 이미지 4컬럼 */
.tone-images--4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}
/* 4컬럼 모두 동일한 4:5 비율 */
.tone-images--4col .upload-cell { aspect-ratio: 4/5 !important; }

/* 라벨 */
.tone-img-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: var(--white); font-size: 12px; letter-spacing: 1px;
  padding: 20px 14px 12px;
  z-index: 4; pointer-events: none;
}

/* =========================================
   CONTENT STRATEGY
   ========================================= */
.strategy-donut-area { display: flex; align-items: center; gap: 48px; margin: 40px 0; }
.strategy-donut { position: relative; width: 260px; height: 260px; flex-shrink: 0; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.donut-total  { display: block; font-family: var(--ff-en); font-size: 52px; font-weight: 600; color: var(--white); line-height: 1; }
.donut-unit   { font-size: 13px; color: rgba(255,255,255,0.6); }
.strategy-legend { display: flex; flex-direction: column; gap: 24px; }
.legend-item { display: flex; align-items: center; gap: 16px; }
.legend-dot  { width: 14px; height: 14px; border-radius: 50%; background: var(--color); flex-shrink: 0; }
.legend-info strong { display: block; font-size: 16px; color: var(--white); margin-bottom: 4px; }
.legend-info span   { font-size: 13px; color: rgba(255,255,255,0.5); }
.content-type-cards { display: flex; gap: 20px; }
.ct-card {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.ct-card--accent { background: rgba(212,102,138,0.15); border-color: rgba(212,102,138,0.4); }
.ct-num  { font-family: var(--ff-en); font-size: 48px; font-weight: 700; color: var(--white); line-height: 1; }
.ct-type { font-family: var(--ff-serif); font-size: 20px; color: var(--sand); }
.ct-sub  { font-size: 13px; color: rgba(255,255,255,0.5); }

/* =========================================
   CONTENT PLAN — upload-cell 통합
   ========================================= */
.content-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cp-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: transform .3s, box-shadow .3s;
}
.cp-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.cp-card__header {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0;
}
.cp-card__num   { font-family: var(--ff-en); font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--dark); }
.cp-card__count { font-family: var(--ff-en); font-size: 11px; color: var(--sand); background: rgba(200,184,154,0.12); padding: 3px 10px; border-radius: 10px; }

/* cp 카드 내 upload-cell */
.upload-cell--cp {
  margin: 14px 20px 0;
  width: calc(100% - 40px); /* 좌우 margin 20px씩 제외 → 오른쪽 짤림 방지 */
  border-radius: 8px !important;
}

/* 폴라로이드 데코 오버레이 */
.upload-cell--polaroid .polaroid-decoration {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 28px 16px 14px;
  z-index: 4; pointer-events: none;
}
.polaroid-stars   { font-size: 11px; margin-bottom: 2px; }
.polaroid-caption-text { font-size: 11px; color: rgba(255,255,255,0.85); letter-spacing: 0.5px; }

/* 릴스 배지 */
.reels-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(212,102,138,0.9); color: var(--white);
  font-family: var(--ff-en); font-size: 11px; font-weight: 700; letter-spacing: 2px;
  padding: 5px 12px; border-radius: 16px; z-index: 4; pointer-events: none;
}

/* cp-card--5: 릴스 카드 — 4컬럼 전체 가로 배치 */
.cp-card--5 {
  grid-column: span 4;
  display: grid;
  grid-template-columns: auto 1fr;
}
.cp-card--5 .cp-card__header {
  grid-column: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 0;
  gap: 8px;
}
.cp-card--5 .upload-cell--cp {
  grid-column: 1;
  margin: 14px 20px 20px;
  width: 200px;
  aspect-ratio: 4/5 !important;
}
.cp-card--5 .cp-card__body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px;
}

.cp-card__body { padding: 16px 20px 24px; }
.cp-card__body h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--dark); }
.cp-card__body p  { font-size: 13px; line-height: 1.7; color: #666; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cp-tags span { font-size: 11px; color: var(--sage); background: rgba(139,158,143,0.12); padding: 3px 10px; border-radius: 10px; }

/* =========================================
   BUDGET
   ========================================= */
.budget-total-bar {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px;
}
.budget-bar-label  { font-family: var(--ff-en); font-size: 11px; letter-spacing: 3px; color: var(--sand); }
.budget-bar-amount { font-family: var(--ff-en); font-size: 28px; font-weight: 600; color: var(--white); }
.budget-breakdown  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.budget-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px; }
.budget-item__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.budget-item__title { font-size: 16px; font-weight: 600; color: var(--white); }
.budget-item__pct   { font-family: var(--ff-en); font-size: 24px; font-weight: 700; color: var(--sand); }
.budget-item__bar-wrap { background: rgba(255,255,255,0.08); border-radius: 4px; height: 6px; margin-bottom: 24px; overflow: hidden; }
.budget-item__bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--sand), var(--rose)); transition: width 1s ease; }
.budget-item--content .budget-item__bar { background: linear-gradient(90deg, var(--rose), var(--sand)); }
.budget-item__detail strong { font-family: var(--ff-en); font-size: 22px; color: var(--white); display: block; margin-bottom: 16px; }
.budget-item__detail ul { list-style: none; }
.budget-item__detail li { font-size: 13px; color: rgba(255,255,255,0.6); padding: 5px 0 5px 14px; position: relative; }
.budget-item__detail li::before { content: "·"; position: absolute; left: 0; color: var(--sand); }
.sub-breakdown-title { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--sand); margin-bottom: 20px; text-transform: uppercase; font-family: var(--ff-en); }
.sub-breakdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,0.05); border-radius: var(--radius); overflow: hidden; }
.sbd-item { background: rgba(255,255,255,0.04); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.sbd-item--total { grid-column: span 3; background: rgba(200,184,154,0.12); border-top: 1px solid rgba(200,184,154,0.3); }
.sbd-label  { font-size: 13px; color: rgba(255,255,255,0.7); }
.sbd-amount { font-family: var(--ff-en); font-size: 14px; font-weight: 600; color: var(--white); }
.sbd-item--total .sbd-label, .sbd-item--total .sbd-amount { color: var(--sand); font-size: 15px; }

/* =========================================
   OPERATION
   ========================================= */
.operation-scope-list { display: flex; flex-direction: column; margin-bottom: 60px; border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius); overflow: hidden; }
.scope-item { display: flex; align-items: flex-start; gap: 24px; padding: 28px 32px; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.06); transition: background .2s; }
.scope-item:last-child { border-bottom: none; }
.scope-item:hover { background: rgba(200,184,154,0.06); }
.scope-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.scope-content h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.scope-content p  { font-size: 14px; color: #666; line-height: 1.7; }
.monthly-process__title { font-family: var(--ff-en); font-size: 11px; letter-spacing: 3px; color: var(--sand); text-transform: uppercase; margin-bottom: 28px; }
.process-steps { display: flex; align-items: center; flex-wrap: nowrap; }
.process-step { flex: 1; background: var(--white); border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ps-num { font-family: var(--ff-en); font-size: 12px; font-weight: 700; color: var(--sand); letter-spacing: 2px; margin-bottom: 10px; }
.ps-content strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 6px; }
.ps-content p { font-size: 12px; color: #777; line-height: 1.5; }
.process-arrow { font-size: 20px; color: var(--sand); flex-shrink: 0; padding: 0 8px; }

/* =========================================
   KPI
   ========================================= */
.kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 48px; }
.kpi-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: all .3s; }
.kpi-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); border-color: rgba(200,184,154,0.3); }
.kpi-icon   { font-size: 28px; margin-bottom: 12px; }
.kpi-metric { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.kpi-target { font-family: var(--ff-en); font-size: 13px; color: var(--sand); margin-bottom: 8px; font-weight: 600; }
.kpi-desc   { font-size: 12px; color: rgba(255,255,255,0.45); }
.report-format__title { font-family: var(--ff-en); font-size: 11px; letter-spacing: 3px; color: var(--sand); text-transform: uppercase; margin-bottom: 20px; }
.report-items { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; background: rgba(255,255,255,0.05); border-radius: var(--radius); overflow: hidden; }
.ri { background: rgba(255,255,255,0.04); padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.ri-num { font-family: var(--ff-en); font-size: 24px; font-weight: 700; color: var(--sand); }
.ri span:last-child { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* =========================================
   INSTAGRAM FEED PREVIEW
   ========================================= */
.feed-preview .page__inner { max-width: 1200px; }
.ig-mockup-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: flex-start; margin-top: 8px; }
.ig-phone-bezel {
  background: #111; border-radius: 44px; padding: 14px 10px 18px;
  box-shadow: 0 0 0 2px #333, 0 24px 60px rgba(0,0,0,0.35); width: 300px;
}
.ig-phone-header { display: flex; justify-content: center; margin-bottom: 8px; }
.ig-phone-notch  { width: 90px; height: 22px; background: #111; border-radius: 12px; border: 2px solid #2a2a2a; }
.ig-screen { background: var(--white); border-radius: 32px; overflow: hidden; }
.ig-app-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px solid #f0f0f0; }
.ig-profile-mini { display: flex; align-items: center; gap: 8px; }
.ig-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--sand),var(--rose)); box-shadow: 0 0 0 2px var(--rose); }
.ig-profile-info strong { display: block; font-size: 11px; color: #111; font-weight: 700; }
.ig-profile-info span   { font-size: 9px; color: #999; }
.ig-follow-btn { font-size: 11px; font-weight: 700; color: var(--white); background: #0095f6; padding: 5px 14px; border-radius: 8px; cursor: pointer; }

/* 피드 그리드 (폰 안 — 1:1 비율 유지, 업로드 후에는 4:5 크롭) */
.ig-feed-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: #efefef; }
.ig-feed-cell {
  aspect-ratio: 1/1 !important; /* 폰 안에서는 1:1로 표시 */
  border-radius: 0 !important;
  /* upload-cell의 aspect-ratio를 덮어씀 */
}
.ig-feed-cell .uc-inner { border-radius: 0; }
.ig-feed-cell::before { border-radius: 0; border: none !important; }

.feed-content-badge {
  position: absolute; bottom: 4px; right: 4px; z-index: 4; pointer-events: none;
  background: rgba(0,0,0,0.55); color: var(--white);
  font-size: 7px; font-family: var(--ff-en); padding: 2px 5px; border-radius: 4px; letter-spacing: 0.5px;
}
.feed-reel-badge {
  position: absolute; top: 4px; right: 4px; z-index: 4; pointer-events: none;
  background: rgba(0,0,0,0.6); color: var(--white); font-size: 9px; padding: 2px 6px; border-radius: 4px;
}

/* 왼쪽: 피드 구성 전략 */
.ig-feed-desc { min-width: 0; }
.ig-feed-desc__title { font-family: var(--ff-serif); font-size: 22px; color: var(--dark); margin-bottom: 6px; }
.ig-feed-desc__sub   { font-size: 13px; color: #888; margin-bottom: 24px; }
.ig-feed-legend { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ig-legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #444; }
.ig-legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ig-feed-tips { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ig-tip { display: flex; gap: 10px; align-items: flex-start; }
.ig-tip-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ig-tip p { font-size: 13px; color: #555; line-height: 1.6; }

/* 큰 그리드 미리보기 */
.ig-grid-large h4 { font-size: 12px; font-family: var(--ff-en); letter-spacing: 2px; color: var(--sand); text-transform: uppercase; margin-bottom: 12px; }
.ig-grid-large__cells { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.ig-lc {
  aspect-ratio: 4/5 !important; /* 큰 그리드는 4:5 */
  border-radius: 4px !important;
  transition: transform .2s, filter .2s;
}
.ig-lc:hover { transform: scale(1.04); filter: brightness(.85); z-index: 1; }
.ig-lc::before { border-radius: 4px; }
.lc-reel { position: absolute; top: 4px; right: 5px; z-index: 4; font-size: 8px; color: rgba(255,255,255,0.9); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* =========================================
   CLOSING
   ========================================= */
.closing-page { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.closing-page__bg-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(17,17,17,0.92) 45%, rgba(17,17,17,0.5)); z-index: 1; }
.closing-img { position: absolute; inset: 0; overflow: hidden; }
.closing-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.closing-img .uc-inner { border-radius: 0; }
/* closing에서도 upload-cell 사용 */
.upload-cell--closing {
  position: absolute !important;
  inset: 0 !important;
  aspect-ratio: unset !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  z-index: 0;
}
.upload-cell--closing::before { border-radius: 0; }
.closing-content { position: relative; z-index: 2; max-width: 700px; padding: 80px; color: var(--white); }
.closing-label   { font-family: var(--ff-en); font-size: 11px; letter-spacing: 6px; color: var(--sand); margin-bottom: 28px; }
.closing-title   { font-family: var(--ff-serif); font-size: clamp(40px,5vw,64px); font-weight: 400; line-height: 1.2; color: var(--white); margin-bottom: 24px; }
.closing-title em { color: var(--sand); font-style: italic; }
.closing-desc { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.closing-contact { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 28px; }
.closing-contact p { font-family: var(--ff-en); font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 2px; line-height: 1.8; }

/* =========================================
   RESET ALL BUTTON
   ========================================= */
.reset-all-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 9000;
  background: rgba(26,26,26,0.88); color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 9px 18px; font-size: 12px;
  font-family: var(--ff-en); letter-spacing: 1px;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: all .2s;
}
.reset-all-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }

/* =========================================
   ADMIN PANEL (admin.html 전용)
   ========================================= */
.admin-panel {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px;
  padding: 8px 16px 8px 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.admin-panel__label {
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sand);
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 4px;
  white-space: nowrap;
}
.admin-btn {
  border: none;
  border-radius: 16px;
  padding: 7px 16px;
  font-size: 12px;
  font-family: var(--ff-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.admin-btn--reset {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.admin-btn--reset:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}
.admin-btn--save {
  background: linear-gradient(135deg, var(--sand), var(--rose));
  color: var(--white);
  box-shadow: 0 3px 12px rgba(212,102,138,0.35);
}
.admin-btn--save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,102,138,0.5);
}
.admin-btn:disabled {
  opacity: 0.6; cursor: wait; transform: none;
}

/* ── 어드민 로딩바 슬라이드 애니 ── */
@keyframes loadingSlide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 저장 중 셀 표시 ── */
.upload-cell.is-saving::after {
  content: '저장 중…';
  position: absolute; inset: 0; z-index: 10;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 12px; font-weight: 600;
  letter-spacing: 1px;
}

/* ── 업로드 완료 펄스 애니메이션 ── */
@keyframes uploadFlash {
  0%   { box-shadow: 0 0 0 0 rgba(200,184,154,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(200,184,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,184,154,0); }
}
.upload-cell.just-uploaded { animation: uploadFlash .6s ease-out; }

/* =========================================
   FADE-UP ANIMATION (공통)
   ========================================= */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 72px 48px; }
  .brand-overview .page__inner { grid-template-columns: 1fr; gap: 40px; }
  .brand-img-stack { height: auto; }
  .upload-cell--brand-main { position: relative !important; width: 100% !important; }
  .upload-cell--brand-sub  { display: none; }
  .mission-cards   { grid-template-columns: 1fr; }
  .tone-grid       { grid-template-columns: 1fr; gap: 32px; }
  .tone-images--4col { grid-template-columns: repeat(2,1fr); }
  .content-plan-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-card--5 { grid-column: span 2; }
  .cp-card--5 .upload-cell--cp { width: 180px; }
  .budget-breakdown  { grid-template-columns: 1fr; }
  .sub-breakdown-grid { grid-template-columns: repeat(2,1fr); }
  .sbd-item--total { grid-column: span 2; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .report-items { grid-template-columns: repeat(3,1fr); }
  .process-steps { flex-wrap: wrap; gap: 12px; }
  .process-arrow { display: none; }
  .strategy-donut-area { flex-direction: column; }
  .ig-mockup-wrap { grid-template-columns: 1fr; }
  .ig-phone-bezel { width: 100%; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 768px) {
  :root { --section-pad: 60px 24px; }
  .cover__title { font-size: 44px; flex-direction: column; gap: 8px; }
  .toc-page__title { font-size: 40px; }
  .content-plan-grid { grid-template-columns: 1fr; }
  .cp-card--5 { grid-column: span 1; display: block; }
  .cp-card--5 .upload-cell--cp { width: calc(100% - 40px); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .report-items { grid-template-columns: 1fr; }
  .budget-total-bar { flex-direction: column; gap: 8px; text-align: center; }
  .budget-bar-amount { font-size: 22px; }
  .sub-breakdown-grid { grid-template-columns: 1fr; }
  .sbd-item--total { grid-column: span 1; }
  .tone-images--4col { grid-template-columns: repeat(2,1fr); }
  .closing-content { padding: 48px 28px; }
  .ig-mockup-wrap { grid-template-columns: 1fr; }
}
