/* ==========================================================================
   팔자도록 · 메인 스타일시트
   --------------------------------------------------------------------------
   목차
   00. 디자인 토큰 (색·폰트·간격)  ← 브랜드 컬러는 여기서만 바꾸면 됩니다
   01. 리셋 & 베이스
   02. 레이아웃 (모바일 앱 컬럼 + 데스크톱 사이드 패널)
   03. 공통 컴포넌트 (로고, 버튼, 태그, 글래스 카드)
   04. 헤더 & 메뉴
   05. 히어로
   06. 신뢰 마키 / 공감 버블
   07. 무료 명식 폼 & 결과
   08. 도록 미리보기
   09. 브랜드 필름
   10. 제작 과정
   11. 상품·가격
   12. 후기
   13. 비교표 / 약속 / FAQ
   14. 마지막 CTA / 푸터
   15. 하단 고정 CTA / 실시간 토스트
   16. 애니메이션 & 모션 접근성
   ========================================================================== */

/* ---------- 00. 디자인 토큰 ---------- */
:root {
  --ink: #0B0A09;
  --ink-2: #131110;
  --ink-3: #1C1916;
  --ink-4: #26221E;
  --line: rgba(255, 236, 200, .10);
  --line-2: rgba(255, 236, 200, .18);

  --text: #F5EEDF;
  --muted: rgba(245, 238, 223, .62);
  --dim: rgba(245, 238, 223, .40);

  --paper: #F3ECDD;
  --paper-2: #E8DDC7;
  --paper-ink: #221D17;
  --paper-muted: #6E6355;

  --gold: #D8B77A;
  --gold-2: #F3DDA8;
  --gold-3: #A98546;
  --red: #C83A28;
  --red-2: #E5513D;

  --wood: #5BA97B;
  --fire: #E2574C;
  --earth: #D4A24C;
  --metal: #C9CED6;
  --water: #4A7BD0;

  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --app-w: 480px;
  --pad: 22px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 64px;
}

/* ---------- 01. 리셋 & 베이스 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 필름 그레인 – 고급스러운 질감 */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--gold), var(--gold-2)); }

/* ---------- 02. 레이아웃 ---------- */
.app {
  position: relative;
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ink);
  overflow-x: clip;
}
.side-panel { display: none; }

@media (min-width: 1080px) {
  body {
    background:
      radial-gradient(1200px 700px at 15% 20%, rgba(200, 58, 40, .16), transparent 60%),
      radial-gradient(900px 600px at 85% 90%, rgba(216, 183, 122, .12), transparent 60%),
      #070605;
  }
  .app {
    margin-left: calc(50% + 40px);
    box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .6);
  }
  .side-panel {
    display: flex; align-items: center; position: fixed; top: 0; bottom: 0;
    left: max(40px, calc(50% - 560px)); width: min(480px, calc(50% - 80px));
  }
  .side-inner { display: grid; gap: 28px; }
  .side-copy { font-family: var(--serif); font-size: 44px; line-height: 1.3; font-weight: 700; }
  .side-copy em { font-style: normal; color: var(--gold); }
  .side-points { display: grid; gap: 10px; color: var(--muted); font-size: 17px; }
  .side-points i { color: var(--gold); font-style: normal; margin-right: 6px; }
  .side-panel .btn { justify-self: start; }
  .side-hint { color: var(--dim); font-size: 14px; }
  .sticky-cta, .live-toast { max-width: calc(var(--app-w) - 24px); }
}

.section { position: relative; padding: 96px var(--pad); }
.section-head { margin-bottom: 36px; }
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 8vw, 36px); line-height: 1.32; letter-spacing: -.03em;
  margin-top: 14px;
}
.section-desc { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.center { text-align: center; }
.kicker { color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .02em; }

/* 종이(한지) 섹션 */
.paper {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(255, 255, 255, .6), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
}
.paper .section-desc { color: var(--paper-muted); }
.paper .section-title { color: var(--paper-ink); }

/* ---------- 03. 공통 컴포넌트 ---------- */
/* 로고 */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-seal { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 14px rgba(200, 58, 40, .45)); transition: transform .6s var(--ease); }
.logo:hover .logo-seal { transform: rotate(-8deg) scale(1.06); }
.logo-seal svg { width: 100%; height: 100%; }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: -.02em; }
.logo-text small { margin-top: 5px; font-family: var(--serif); font-size: 10.5px; letter-spacing: .42em; color: var(--gold); }
.logo--xl .logo-seal { width: 76px; height: 76px; }
.logo--xl .logo-text b { font-size: 48px; }
.logo--xl .logo-text small { font-size: 15px; margin-top: 10px; }
.logo--footer .logo-seal { width: 48px; height: 48px; }
.logo--footer .logo-text b { font-size: 28px; }

/* 버튼 */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn:active { transform: scale(.97); }
.btn--lg { height: 58px; padding: 0 28px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }
.btn--gold {
  color: #1A1206;
  background: linear-gradient(135deg, #FFF1C9 0%, #E9C98A 35%, #C99A52 70%, #E7C483 100%);
  box-shadow: 0 10px 30px -8px rgba(216, 183, 122, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--gold:hover { box-shadow: 0 16px 44px -10px rgba(216, 183, 122, .75), inset 0 1px 0 rgba(255, 255, 255, .6); transform: translateY(-2px); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); }
.btn--shine::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .75) 48%, transparent 66%);
  transform: translateX(-120%); animation: shine 3.6s var(--ease-in-out) infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-sub { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--ink); color: var(--gold-2); }

.chip-btn {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 99px;
  font-size: 13.5px; font-weight: 700; color: var(--gold-2);
  border: 1px solid rgba(216, 183, 122, .35); background: rgba(216, 183, 122, .08);
}

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
  color: var(--gold); border: 1px solid rgba(216, 183, 122, .35);
}
.tag--red { color: var(--red); border-color: rgba(200, 58, 40, .4); }

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.gold-text {
  background: linear-gradient(100deg, #F6E3B4 0%, #D2A962 30%, #FFF3D1 50%, #C9994F 70%, #F6E3B4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldflow 6s linear infinite;
}
@keyframes goldflow { to { background-position: -200% 0; } }

/* ---------- 04. 헤더 & 메뉴 ---------- */
.header {
  position: fixed; top: 0; z-index: 60; width: 100%; max-width: var(--app-w);
  height: var(--header-h); padding: 0 16px 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(11, 10, 9, .72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.menu-btn { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; max-width: var(--app-w); margin: 0 auto;
  padding: calc(var(--header-h) + 30px) var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(11, 10, 9, .96); backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 38px) 32px);
  transition: clip-path .8s var(--ease);
  pointer-events: none;
}
@media (min-width: 1080px) { .menu { margin-left: calc(50% + 40px); } }
.menu-open .menu { clip-path: circle(150% at calc(100% - 38px) 32px); pointer-events: auto; }
.menu ul { display: grid; gap: 4px; }
.menu a:not(.btn) {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 0;
  font-family: var(--serif); font-size: 28px; font-weight: 700; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.menu a small { font-family: var(--sans); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.menu a:hover { color: var(--gold-2); }
.menu-open .menu a:not(.btn) { opacity: 1; transform: none; }
.menu-open .menu li:nth-child(1) a { transition-delay: .15s; } .menu-open .menu li:nth-child(2) a { transition-delay: .2s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .25s; } .menu-open .menu li:nth-child(4) a { transition-delay: .3s; }
.menu-open .menu li:nth-child(5) a { transition-delay: .35s; } .menu-open .menu li:nth-child(6) a { transition-delay: .4s; }

/* ---------- 05. 히어로 ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--header-h) + 8px) var(--pad) 72px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hero-video, .hero-canvas, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; opacity: .55; }
.hero-shade {
  background:
    radial-gradient(120% 70% at 50% 30%, transparent 30%, rgba(11, 10, 9, .85) 100%),
    linear-gradient(180deg, rgba(11, 10, 9, .25) 0%, transparent 30%, rgba(11, 10, 9, .9) 92%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }

.orbit { width: min(78vw, 320px); aspect-ratio: 1; margin: 0 auto 6px; position: relative; }
.orbit::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 58, 40, .35), transparent 70%); filter: blur(20px); animation: breathe 5s ease-in-out infinite; }
.orbit-svg { width: 100%; height: 100%; overflow: visible; position: relative; z-index: 1; }
.ring { transform-origin: 200px 200px; }
.ring--outer { animation: spin 90s linear infinite; }
.ring--inner { animation: spin 60s linear infinite reverse; }
.ring-line { fill: none; stroke: rgba(216, 183, 122, .35); stroke-width: 1; }
.ring-line--dash { stroke-dasharray: 2 6; stroke: rgba(216, 183, 122, .5); }
.ticks line { stroke: rgba(216, 183, 122, .45); stroke-width: 1; }
.ring-text { font-family: var(--serif); font-size: 17px; fill: rgba(243, 221, 168, .75); font-weight: 600; }
.ring-text--lg { font-size: 20px; fill: rgba(243, 221, 168, .9); }
.five { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.five circle { filter: drop-shadow(0 0 6px currentColor); }
.orbit-core { font-family: var(--serif); font-size: 92px; font-weight: 900; fill: url(#orbGlow); fill: #F3DDA8; opacity: .95; filter: drop-shadow(0 0 18px rgba(243, 221, 168, .55)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px;
  font-size: 13px; font-weight: 600; color: var(--gold-2);
  background: rgba(216, 183, 122, .08); border: 1px solid rgba(216, 183, 122, .25); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(229, 81, 61, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(229, 81, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 81, 61, 0); } }

.hero-title {
  margin-top: 18px; font-family: var(--serif); font-weight: 900;
  font-size: clamp(38px, 11.4vw, 52px); line-height: 1.22; letter-spacing: -.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .14s; }
.is-loaded .hero-title .line > span { transform: none; }
.hero-sub { margin: 20px auto 0; max-width: 360px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.hero-sub b { color: var(--text); }
.hero-cta { margin-top: 30px; display: grid; gap: 10px; }
.hero-stats {
  margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); padding-top: 22px;
}
.hero-stats li { display: grid; gap: 2px; }
.hero-stats li + li { border-left: 1px solid var(--line); }
.hero-stats strong { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: var(--dim); }

.scroll-cue { position: absolute; z-index: 2; bottom: 18px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border-radius: 12px; border: 1.5px solid var(--line-2); }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 06. 신뢰 마키 / 공감 ---------- */
.trust { border-block: 1px solid var(--line); background: var(--ink-2); padding: 16px 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 32px; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.empathy { padding-top: 88px; }
.empathy .kicker { text-align: center; }
.bubbles { display: grid; gap: 10px; margin: 28px 0 56px; }
.bubble {
  justify-self: start; max-width: 80%; padding: 13px 18px; border-radius: 22px 22px 22px 6px;
  background: var(--ink-3); border: 1px solid var(--line); font-size: 15px;
}
.bubble--r { justify-self: end; border-radius: 22px 22px 6px 22px; background: linear-gradient(135deg, rgba(216, 183, 122, .2), rgba(200, 58, 40, .14)); border-color: rgba(216, 183, 122, .25); }

/* ---------- 07. 무료 명식 폼 & 결과 ---------- */
.free { background: radial-gradient(600px 500px at 50% 0%, rgba(200, 58, 40, .14), transparent 70%); }
.saju-form { padding: 26px 20px 22px; display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.field label:first-child, .field .label { font-size: 14px; font-weight: 700; }
.field small { color: var(--dim); font-weight: 500; }
.field input[type="text"], .select select, .field textarea {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); outline: none;
  font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field label[for="oPhone"], .field label[for="oEmail"] { color: #fff7e6; }
.field label[for="oPhone"] small, .field label[for="oEmail"] small { color: #e6d7be; }
.field #oPhone, .field #oEmail {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px;
  color: #fff7e6; background: rgba(0, 0, 0, .35); border: 1px solid #8c7960;
  outline: none; font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.field #oPhone::placeholder, .field #oEmail::placeholder { color: #cdbda4; opacity: 1; }
.field.is-error #oPhone, .field.is-error #oEmail { border-color: var(--red-2); }
.field input:focus, .select select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216, 183, 122, .15); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.select select option { background: var(--ink-3); color: var(--text); }
.select::after { content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); pointer-events: none; }
.select select:disabled { opacity: .35; }
.date-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 8px; }
.date-row--2 { grid-template-columns: 1fr 1fr; }
.hint { font-size: 12.5px; color: var(--dim); }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 44px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .35s var(--ease); }
.seg input:checked + span { background: var(--text); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.form-safe { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
.form-safe .ic { width: 15px; height: 15px; color: var(--gold); }
.field.is-error input, .field.is-error select { border-color: var(--red-2); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* 분석 로딩 */
.analyzing { padding: 60px 0; display: grid; justify-items: center; gap: 22px; text-align: center; }
.analyzing-seal { width: 96px; height: 96px; animation: sealSpin 1.6s var(--ease-in-out) infinite; filter: drop-shadow(0 10px 30px rgba(200, 58, 40, .6)); }
@keyframes sealSpin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.86); } 100% { transform: rotate(360deg) scale(1); } }
.analyzing-text { font-family: var(--serif); font-size: 19px; font-weight: 600; min-height: 30px; }
.analyzing-bar { width: 220px; height: 3px; border-radius: 3px; background: var(--ink-4); overflow: hidden; }
.analyzing-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); animation: load 3.2s var(--ease-in-out) forwards; }
@keyframes load { to { width: 100%; } }

/* 결과 */
.result { display: grid; gap: 16px; }
.res-head { text-align: center; padding: 8px 0 6px; }
.res-head small { color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: 12px; }
.res-head h3 { margin-top: 8px; font-family: var(--serif); font-size: 28px; font-weight: 900; line-height: 1.3; }
.res-badges { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.res-badges span { padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--muted); }
.res-badges span.hl { color: var(--gold-2); border-color: rgba(216, 183, 122, .4); }

.res-card { padding: 22px 18px; }
.res-card h4 { font-size: 13px; letter-spacing: .1em; color: var(--gold); font-weight: 800; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.res-card h4 em { font-style: normal; color: var(--dim); font-weight: 500; letter-spacing: 0; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.pillar { display: grid; gap: 6px; text-align: center; }
.pillar-label { font-size: 12px; color: var(--dim); font-weight: 600; }
.pillar.me .pillar-label { color: var(--gold-2); }
.glyph {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 14px; display: grid; place-items: center; align-content: center;
  background: color-mix(in srgb, var(--c) 16%, #0f0d0c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  opacity: 0; transform: rotateY(90deg); transition: opacity .5s, transform .9s var(--ease);
}
.glyph.in { opacity: 1; transform: none; }
.glyph b { font-family: var(--serif); font-size: clamp(28px, 8.6vw, 38px); font-weight: 900; color: var(--c); line-height: 1; text-shadow: 0 0 22px color-mix(in srgb, var(--c) 50%, transparent); }
.glyph span { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.glyph i { position: absolute; top: 5px; left: 0; right: 0; font-style: normal; font-size: 10px; color: var(--dim); }
.pillar.me .glyph:first-of-type { box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(216, 183, 122, .3); }
.glyph.empty { --c: #555; opacity: 1; transform: none; border-style: dashed; }
.glyph.empty b { font-size: 22px; color: var(--dim); text-shadow: none; }

.el-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.pentagon { width: 100%; }
.pentagon .pt-line { stroke: rgba(255, 255, 255, .12); fill: none; }
.pentagon .pt-shape { fill: rgba(216, 183, 122, .18); stroke: var(--gold); stroke-width: 1.5; transition: all 1.2s var(--ease); }
.pentagon text { font-family: var(--serif); font-weight: 900; font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.el-bars { display: grid; gap: 9px; }
.el-bar { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; font-size: 13px; }
.el-bar b { font-family: var(--serif); color: var(--c); }
.el-bar i { height: 8px; border-radius: 8px; background: var(--ink-4); overflow: hidden; }
.el-bar i::after { content: ''; display: block; height: 100%; width: var(--w, 0); background: var(--c); border-radius: 8px; transition: width 1.4s var(--ease); }
.el-bar em { font-style: normal; color: var(--muted); text-align: right; }
.el-note { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.7; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.el-note b { color: var(--text); }

.dm { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.dm-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.dm h5 { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.4; }
.dm h5 em { font-style: normal; color: var(--c); }
.dm p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.kw { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.kw span { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--text); }

.year-card { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(200, 58, 40, .22), rgba(216, 183, 122, .1)); border-color: rgba(200, 58, 40, .35); }
.year-card::before { content: '丁未'; position: absolute; right: -6px; bottom: -22px; font-family: var(--serif); font-size: 92px; font-weight: 900; color: rgba(255, 255, 255, .05); }
.year-card .god { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 800; }
.year-card h5 { margin-top: 10px; font-family: var(--serif); font-size: 22px; font-weight: 900; }
.year-card p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.75; position: relative; }

.locked { position: relative; }
.locked ul { display: grid; gap: 10px; }
.locked li { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); font-size: 14.5px; }
.locked li .ic { color: var(--gold); flex: none; }
.locked li span { filter: blur(0); }
.locked li em { font-style: normal; filter: blur(5px); user-select: none; color: var(--gold-2); }
.locked-cta { margin-top: 16px; text-align: center; }
.locked-cta p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.locked-cta p b { color: var(--gold-2); }
.res-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.res-actions .btn { height: 48px; font-size: 14.5px; }

/* 무료 분석: 만세력처럼 종이 위에 세 편의 풀이를 이어서 읽는 구성 */
.taste { overflow: hidden; border-color: rgba(216,183,122,.36); background: radial-gradient(ellipse at 70% 0%, rgba(145,93,37,.18), transparent 52%), #1d1713; }
.taste .taste-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.taste .taste-skip { border: 1px solid #7b6442; border-radius: 999px; color: var(--gold-2); padding: 5px 10px; font: inherit; background: transparent; cursor: pointer; }
.taste .taste-title { display: block; font-family: var(--serif); color: var(--gold-2); font-size: clamp(21px, 5.3vw, 28px); line-height: 1.46; letter-spacing: -.04em; margin: 12px 0 10px; }
.taste-steps { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; padding: 0; list-style: none; }
.taste-steps li { padding: 5px 8px; font-size: 11px; border-radius: 8px; color: #d0bfaa; background: #312722; }
.taste-steps li.is-current { color: #fff6df; background: #473326; }
.taste-steps li.is-current::before { content: '● '; color: var(--gold); }
.taste-steps li.is-done::before { content: '✓ '; color: var(--gold); }
.taste-doc { background: #f6efe3; color: #2a2018; border-radius: 14px; padding: 15px clamp(12px,4vw,20px) 16px; min-height: 150px; }
.taste-deck { color: #735d48; font-size: 12px; }
.taste-chapter { margin-top: 15px; border-top: 1px solid #dfd0ba; padding-top: 11px; }
.taste-chapter h5 { color: #8a3529; font-family: var(--serif); font-size: 15px; margin-bottom: 6px; }
.taste-chapter h5 span { font-size: 11px; margin-right: 8px; }
.taste-line { min-height: 1.75em; margin-top: 8px; font-size: 14px; line-height: 1.85; color: #36281e; word-break: keep-all; overflow-wrap: anywhere; }
.taste-line.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; background: #9a322b; vertical-align: -.1em; margin-left: 3px; animation: taste-blink .75s step-end infinite; }
@keyframes taste-blink { 50% { opacity: 0; } }
.taste-lock { position: relative; margin-top: 16px; min-height: 168px; overflow: hidden; text-align: center; border-radius: 10px; }
.taste-mask { position: absolute; inset: 0; display: grid; align-content: start; gap: 14px; padding: 10px 8%; }
.taste-mask i { display: block; height: 6px; background: #72573f; opacity: .54; filter: blur(3.5px); border-radius: 99px; }
.taste-mask i:nth-child(2n) { width: 88%; }
.taste-overlay { position: relative; padding: 28px 6px 5px; background: linear-gradient(transparent, #f6efe3ed 45%, #f6efe3 80%); }
.taste-lock-head { font-size: 15px; color: #452c1d; font-weight: 900; }
.taste-lock-note { font-size: 12px; color: #5d4a39; margin: 4px 0 11px; }
.taste-overlay .btn { font-size: clamp(13px,3.7vw,16px); min-height: 47px; }
@media (prefers-reduced-motion: reduce) { .taste-line.is-typing::after { animation: none; } }

/* ---------- 08. 도록 미리보기 ---------- */
.book { overflow: hidden; }
.pages {
  display: flex; gap: 16px; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad) 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; perspective: 1200px;
}
.pages::-webkit-scrollbar { display: none; }
.page {
  position: relative; flex: none; width: 74%; aspect-ratio: 3 / 4.2; scroll-snap-align: center;
  padding: 26px 20px; border-radius: 6px 16px 16px 6px; overflow: hidden;
  background: linear-gradient(90deg, #EDE3CF 0%, #FBF6EC 6%, #FFFDF7 100%);
  color: var(--paper-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), -10px 24px 40px -18px rgba(60, 40, 10, .45), inset 10px 0 18px -12px rgba(80, 60, 20, .35);
  transition: transform .6s var(--ease);
}
.page.is-active { transform: translateY(-6px); }
.pg-kicker { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--red); }
.pg-title { margin-top: 6px; font-family: var(--serif); font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.pg-body { margin-top: 14px; font-family: var(--serif); font-size: 12.5px; line-height: 1.85; color: #4A4034; }
.pg-body b { color: var(--paper-ink); }
.pg-no { position: absolute; bottom: 14px; right: 18px; font-family: var(--serif); font-size: 11px; color: #A39785; }
.pg-blur { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, #FFFDF7 70%); }

.page--cover { background: radial-gradient(120% 80% at 50% 0%, #2a211a, #0E0C0A 70%); color: var(--gold-2); padding: 14px; }
.cover-frame { position: relative; height: 100%; border: 1px solid rgba(216, 183, 122, .5); border-radius: 4px; display: grid; justify-items: center; align-content: space-between; padding: 20px 10px; }
.cover-frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(216, 183, 122, .2); }
.cover-top, .cover-bottom { font-family: var(--serif); font-size: 10px; letter-spacing: .3em; color: var(--gold); }
.cover-vertical { writing-mode: vertical-rl; font-family: var(--serif); font-size: 40px; font-weight: 900; letter-spacing: .1em; background: linear-gradient(180deg, #FFF3D1, #C9994F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover-name { text-align: center; font-family: var(--serif); font-size: 13px; color: var(--text); line-height: 1.6; }
.cover-name b { font-size: 17px; color: var(--gold-2); }
.cover-seal { position: absolute; right: 18px; bottom: 54px; width: 36px; height: 36px; transform: rotate(-6deg); }

.toc { margin-top: 18px; display: grid; gap: 11px; font-family: var(--serif); font-size: 13px; }
.toc li { display: flex; align-items: baseline; gap: 8px; }
.toc span { color: var(--red); font-weight: 900; width: 20px; }
.toc i { flex: 1; border-bottom: 1px dotted #BFB29C; transform: translateY(-3px); }
.toc em { font-style: normal; color: #8E826F; }

/* 원본 도록 샘플: PDF 페이지 비율과 콘텐츠를 그대로 유지 */
#book .pdf-original { padding: 0; aspect-ratio: 1017 / 1440; }
#book .pdf-original img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }

.mini-pillars { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-pillars div { display: grid; gap: 4px; text-align: center; }
.mini-pillars small { font-size: 10px; color: #8E826F; }
.mini-pillars b { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-family: var(--serif); font-size: 22px; font-weight: 900; color: #fff; }
.mini-pillars .me b:first-of-type { outline: 2px solid var(--red); outline-offset: 2px; }
.e-wood { background: #3E8A5E; } .e-fire { background: #C8473D; } .e-earth { background: #B98A35; } .e-metal { background: #9EA4AE; } .e-water { background: #2E4E8C; }

.luck-chart { margin-top: 18px; width: 100%; height: 120px; }
.luck-line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease); }
.page.is-active .luck-line, .page.drawn .luck-line { stroke-dashoffset: 0; }
.luck-axis { display: flex; justify-content: space-between; font-size: 9.5px; color: #8E826F; margin-top: 4px; }

.months { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.months span { position: relative; aspect-ratio: 1.1; display: grid; place-items: center; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--paper-ink); }
.months i { position: absolute; top: 2px; right: 5px; font-style: normal; font-size: 9px; color: var(--red); }
.m1 { background: #EADFCB; } .m2 { background: #E6CFA6; } .m3 { background: #DDB271; } .m4 { background: #C83A28; color: #fff !important; }
.m4 i { color: #FFE3A3 !important; }

.lucky { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lucky div { padding: 10px; border-radius: 10px; background: #F3EBDC; }
.lucky small { font-size: 10px; color: #8E826F; }
.lucky p { margin-top: 4px; display: flex; gap: 4px; font-size: 12px; font-weight: 700; }
.lucky p.big { font-family: var(--serif); font-size: 20px; font-weight: 900; color: var(--red); }
.lucky i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }

.pages-dots { display: flex; justify-content: center; gap: 6px; }
.pages-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(34, 29, 23, .2); transition: all .4s var(--ease); }
.pages-dots i.on { width: 22px; background: var(--red); }

.chapters { margin-top: 44px; display: grid; border-top: 1.5px solid var(--paper-ink); }
.chapters li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 18px 2px; border-bottom: 1px solid rgba(34, 29, 23, .14); }
.ch-no { font-family: var(--serif); font-size: 22px; font-weight: 900; color: var(--red); }
.chapters b { font-family: var(--serif); font-size: 17px; }
.chapters p { font-size: 13.5px; color: var(--paper-muted); margin-top: 2px; line-height: 1.5; }
.chapters em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--paper-muted); }

/* ---------- 09. 브랜드 필름 ---------- */
.film { background: radial-gradient(500px 400px at 50% 60%, rgba(216, 183, 122, .1), transparent 70%); }
.film-player {
  position: relative; width: 82%; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden;
  background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 8px rgba(255, 255, 255, .025);
}
.film-player video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45)); transition: opacity .5s; }
.film-play span { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); animation: ring 2.4s infinite; }
.film-play svg { width: 30px; fill: #fff; margin-left: 4px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(243, 221, 168, .5); } 80%, 100% { box-shadow: 0 0 0 22px rgba(243, 221, 168, 0); } }
.film-player.is-playing .film-play { opacity: 0; }
.film-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.film-bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.film-sound { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .4); backdrop-filter: blur(8px); font-size: 16px; }

/* ---------- 10. 제작 과정 ---------- */
.steps { position: relative; display: grid; gap: 28px; }
.steps::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.steps::after { content: ''; position: absolute; left: 21px; top: 10px; width: 1px; height: calc((100% - 20px) * var(--p, 0)); background: linear-gradient(var(--gold), var(--red)); transition: height .2s linear; }
.steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step-no { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--gold-2); background: var(--ink-3); border: 1px solid rgba(216, 183, 122, .4); }
.steps b { font-size: 17px; display: block; margin-top: 9px; }
.steps p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* ---------- 11. 상품·가격 ---------- */
.pricing { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.countdown { margin-top: 20px; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 14px; background: rgba(200, 58, 40, .12); border: 1px solid rgba(200, 58, 40, .3); font-size: 13px; }
.countdown > span { color: var(--muted); margin-right: 6px; }
.countdown b { min-width: 28px; padding: 4px 0; text-align: center; border-radius: 6px; background: var(--ink); color: var(--gold-2); font-variant-numeric: tabular-nums; font-size: 15px; }
.countdown i { font-style: normal; color: var(--dim); }

.plans { display: grid; gap: 14px; }
.plan { position: relative; padding: 24px 20px; transition: transform .5s var(--ease); }
.plan.best { border: 1px solid transparent; background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box, linear-gradient(135deg, #FFF1C9, #C99A52 40%, #C83A28 70%, #E7C483) border-box; box-shadow: 0 30px 80px -30px rgba(216, 183, 122, .45); }
.plan-badge { position: absolute; top: -12px; left: 20px; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red)); box-shadow: 0 6px 16px rgba(200, 58, 40, .5); }
.plan-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.plan-name { font-family: var(--serif); font-size: 21px; font-weight: 900; }
.plan-pages { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.plan-hanja { font-family: var(--serif); font-size: 26px; font-weight: 900; color: rgba(216, 183, 122, .3); line-height: 1; }
.plan-desc { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .rate { font-size: 22px; font-weight: 900; color: var(--red-2); }
.plan-price .now { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.plan-price .now small { font-size: 16px; font-weight: 700; }
.plan-price del { font-size: 14px; color: var(--dim); }
.plan-feat { margin: 16px 0 20px; display: grid; gap: 8px; font-size: 14px; }
.plan-feat li { display: flex; gap: 8px; align-items: start; }
.plan-feat li::before { content: '✓'; color: var(--gold); font-weight: 900; }
.plan .btn { width: 100%; }
.plan:not(.best) .btn { background: var(--ink-4); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); }
.plans-note { margin-top: 18px; font-size: 12.5px; color: var(--dim); text-align: center; }

/* ---------- 12. 후기 ---------- */
.rating { padding: 22px 20px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.rating-score { display: grid; justify-items: center; gap: 4px; }
.rating-score strong { font-family: var(--serif); font-size: 46px; font-weight: 900; line-height: 1; }
.rating-score small { font-size: 12px; color: var(--dim); }
.rating-bars { display: grid; gap: 6px; }
.rating-bars li { display: grid; grid-template-columns: 30px 1fr 32px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.rating-bars i { height: 6px; border-radius: 6px; background: var(--ink-4); overflow: hidden; }
.rating-bars i::after { content: ''; display: block; width: var(--w); height: 100%; background: var(--gold); border-radius: 6px; }
.rating-bars em { font-style: normal; text-align: right; }

.stars { --v: 5; display: inline-block; font-size: 15px; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(90deg, var(--gold) calc(var(--v) / 5 * 100%), rgba(255, 255, 255, .18) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: '★★★★★'; }

.review-rows { margin: 26px calc(-1 * var(--pad)) 0; display: grid; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.review-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.review-row--rev .review-track { animation-direction: reverse; animation-duration: 54s; }
.review-rows:hover .review-track { animation-play-state: paused; }
.review { width: 270px; padding: 18px; border-radius: 18px; background: var(--ink-3); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.review p { font-size: 14.5px; line-height: 1.7; }
.review footer { font-size: 12px; color: var(--dim); }

/* ---------- 13. 비교 / 약속 / FAQ ---------- */
.compare-table { overflow: hidden; font-size: 13.5px; }
.ct-head, .ct-row { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; }
.ct-head > span, .ct-row > span { padding: 14px 10px; display: flex; align-items: center; justify-content: center; text-align: center; }
.ct-head > span:first-child, .ct-row > span:first-child { justify-content: flex-start; color: var(--muted); font-weight: 600; padding-left: 16px; }
.ct-head { font-weight: 800; font-size: 13px; color: var(--dim); }
.ct-head .me { color: var(--ink); background: var(--gold); font-family: var(--serif); font-size: 15px; }
.ct-row { border-top: 1px solid var(--line); }
.ct-row .me { background: rgba(216, 183, 122, .09); font-weight: 700; color: var(--gold-2); }
.ct-row .x { color: var(--dim); }
.ct-row .o { color: var(--gold); font-size: 18px; }

.master { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: 20px; background: #FFFDF7; box-shadow: 0 20px 40px -24px rgba(60, 40, 10, .4); margin-bottom: 24px; }
.master-photo { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #3a2e22, #14100c); border: 3px solid var(--paper-2); }
.master-photo span { font-family: var(--serif); font-size: 34px; font-weight: 900; color: var(--gold-2); }
.master small { font-size: 12px; color: var(--red); font-weight: 800; letter-spacing: .1em; }
.master b { display: block; font-family: var(--serif); font-size: 20px; margin-top: 2px; }
.master p { font-size: 13.5px; color: var(--paper-muted); margin-top: 6px; line-height: 1.6; }
.promises { display: grid; gap: 12px; }
.promises li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(34, 29, 23, .08); }
.promises i { font-style: normal; font-family: var(--serif); font-size: 24px; font-weight: 900; color: var(--red); line-height: 1.1; }
.promises b { font-size: 16.5px; }
.promises p { margin-top: 4px; font-size: 14px; color: var(--paper-muted); line-height: 1.65; }

.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--ink-3); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: rgba(216, 183, 122, .35); }
.faq summary { list-style: none; position: relative; padding: 19px 52px 19px 20px; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; font-family: var(--serif); color: var(--gold); margin-right: 10px; font-weight: 900; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px 42px; font-size: 14.5px; color: var(--muted); line-height: 1.75; animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 14. 마지막 CTA / 푸터 ---------- */
.final { position: relative; padding: 110px var(--pad) 120px; text-align: center; overflow: hidden; display: grid; justify-items: center; gap: 18px;
  background: radial-gradient(500px 400px at 50% 40%, rgba(200, 58, 40, .25), transparent 70%), var(--ink); }
.final-seal { width: 120px; height: 120px; margin-bottom: 8px; opacity: 0; filter: drop-shadow(0 20px 40px rgba(200, 58, 40, .6)); }
.final-seal.in { animation: stampIn 1s var(--ease) both; }
@keyframes stampIn { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(.92) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
.final-title { font-family: var(--serif); font-size: clamp(32px, 9.6vw, 42px); font-weight: 900; line-height: 1.3; letter-spacing: -.04em; }
.final-desc { color: var(--muted); font-size: 15.5px; }
.final .btn { margin-top: 10px; }
.link-more { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

.footer { padding: 48px var(--pad) 130px; background: #070605; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.biz { font-size: 12px; color: var(--dim); line-height: 1.8; }
.disclaimer { font-size: 11.5px; color: var(--dim); padding: 12px 14px; border-radius: 12px; background: var(--ink-2); }
.copy { font-size: 11.5px; color: var(--dim); letter-spacing: .08em; }

/* ---------- 15. 하단 고정 CTA / 토스트 ---------- */
.sticky-cta {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: calc(var(--app-w) - 24px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 14px; border-radius: 22px;
  background: rgba(28, 25, 22, .82); border: 1px solid var(--line-2); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  transform: translateY(140%); transition: transform .7s var(--ease);
}
@media (min-width: 1080px) { .sticky-cta { left: calc(50% + 40px + 12px); right: auto; width: calc(var(--app-w) - 24px); margin: 0; } }
.sticky-cta.show { transform: none; }
.sticky-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sticky-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red)); }
.sticky-info b { display: block; font-size: 14.5px; white-space: nowrap; }
.sticky-info small { display: block; font-size: 12px; color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sticky-cta .btn { height: 48px; padding: 0 20px; flex: none; }

.live-toast {
  position: fixed; z-index: 49; left: 16px; bottom: calc(92px + env(safe-area-inset-bottom));
  max-width: min(330px, calc(100% - 32px));
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(243, 236, 221, .96); color: var(--paper-ink); font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px) scale(.96); transition: all .6s var(--ease); pointer-events: none;
}
@media (min-width: 1080px) { .live-toast { left: calc(50% + 40px + 16px); } }
.live-toast.show { opacity: 1; transform: none; }
.live-toast .lt-seal { flex: none; width: 34px; height: 34px; }
.live-toast b { font-weight: 800; }
.live-toast small { display: block; color: var(--paper-muted); font-size: 11px; }

/* ---------- 16. 스크롤 리빌 & 모션 접근성 ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { transition-delay: calc(400ms + var(--d, 0) * 120ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
}

@media (max-width: 360px) {
  :root { --pad: 18px; }
  .el-wrap { grid-template-columns: 1fr; }
  .pentagon { max-width: 180px; margin: 0 auto; }
}

/* ---------- 17. 신청(주문) 페이지 ---------- */
.order-page .app { padding-bottom: 120px; }
.order-header { justify-content: space-between; padding: 0 14px; }
.back-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.back-btn .ic { width: 24px; height: 24px; }
.logo--sm .logo-seal { width: 32px; height: 32px; }
.logo--sm .logo-text b { font-size: 20px; }
.step-count { width: 44px; text-align: center; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.step-count b { color: var(--gold-2); }
.order-progress { position: fixed; top: var(--header-h); z-index: 61; width: 100%; max-width: var(--app-w); height: 3px; background: var(--ink-3); }
.order-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(.25); background: linear-gradient(90deg, var(--red), var(--gold)); transition: transform .8s var(--ease); }

.order { padding: calc(var(--header-h) + 36px) var(--pad) 40px; }
.o-step { display: none; }
.o-step.is-active { display: grid; gap: 20px; animation: stepIn .7s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); } }
.o-kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--gold); }
.o-title { font-family: var(--serif); font-size: clamp(28px, 8vw, 34px); font-weight: 900; line-height: 1.32; letter-spacing: -.03em; margin-top: -10px; }
.o-desc { color: var(--muted); font-size: 15px; line-height: 1.7; }
.o-desc b { color: var(--gold-2); }
.o-sub { margin-top: 14px; font-size: 17px; font-weight: 800; }
.right { text-align: right; }

.o-products { display: grid; gap: 12px; }
.o-product input { position: absolute; opacity: 0; }
.o-product-card { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 20px 18px; border-radius: 20px; background: var(--ink-3); border: 1.5px solid var(--line); cursor: pointer; transition: all .4s var(--ease); }
.o-product input:checked + .o-product-card { border-color: var(--gold); background: linear-gradient(135deg, rgba(216, 183, 122, .12), rgba(200, 58, 40, .06)); box-shadow: 0 20px 40px -20px rgba(216, 183, 122, .4); }
.o-product input:focus-visible + .o-product-card { outline: 2px solid var(--gold); outline-offset: 2px; }
.o-radio { width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: all .3s; }
.o-product input:checked + .o-product-card .o-radio { border-color: var(--gold); }
.o-product input:checked + .o-product-card .o-radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.o-product-body b { font-family: var(--serif); font-size: 18px; }
.o-product-body p { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.o-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.o-price em { font-style: normal; font-weight: 900; color: var(--red-2); }
.o-price strong { font-size: 19px; font-weight: 900; }
.o-price del { font-size: 12.5px; color: var(--dim); }
.o-product .plan-badge { top: -10px; left: auto; right: 16px; }

.o-options { display: grid; gap: 10px; margin-top: 4px; }
.o-opt { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; }
.o-opt input { position: absolute; opacity: 0; }
.o-opt-box { width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s; }
.o-opt input:checked + .o-opt-box { background: var(--gold); border-color: var(--gold); }
.o-opt input:checked + .o-opt-box::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.o-opt b { font-size: 15px; }
.o-opt p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.person { padding: 22px 18px; display: grid; gap: 20px; }
.person-title { font-size: 15px; font-weight: 800; color: var(--gold); }
.seg--sm span { height: 38px; font-size: 14px; }
.field textarea { height: auto; padding: 14px 16px; line-height: 1.65; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--ink-3); font-size: 14px; font-weight: 600; transition: all .3s var(--ease); }
.chips button.on { border-color: var(--gold); background: rgba(216, 183, 122, .14); color: var(--gold-2); }

.summary { padding: 20px 18px; display: grid; gap: 12px; font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; }
.sum-row > span:first-child { color: var(--muted); flex: none; }
.sum-row b, .sum-row > span:last-child { text-align: right; }
.sum-row .red { color: var(--red-2); font-weight: 700; }
.summary hr { border: 0; border-top: 1px dashed var(--line-2); }
.sum-row.total { align-items: baseline; padding-top: 4px; }
.sum-row.total b { font-size: 24px; font-weight: 900; color: var(--gold-2); }

.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay input { position: absolute; opacity: 0; }
.pay span { height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ink-3); font-size: 14px; cursor: pointer; transition: all .3s; }
.pay span i { font-style: normal; font-weight: 900; font-size: 12px; padding: 3px 6px; border-radius: 6px; }
.pay-kakao i { background: #FEE500; color: #191600; }
.pay-naver i { background: #03C75A; color: #fff; }
.pay-toss i { background: #0064FF; color: #fff; }
.pay input:checked + span { border-color: var(--gold); background: rgba(216, 183, 122, .1); }

.agree { display: grid; gap: 14px; padding: 18px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.agree .check { justify-content: flex-start; width: 100%; }
.agree .check a { margin-left: auto; font-size: 12.5px; color: var(--dim); text-decoration: underline; }
.check--all { padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text) !important; font-weight: 800; font-size: 15.5px !important; }
.agree.is-error { border-color: var(--red-2); animation: shake .4s; }

.order-bar {
  position: fixed; z-index: 50; bottom: 0; width: 100%; max-width: var(--app-w);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(19, 17, 16, .9); backdrop-filter: blur(18px); border-top: 1px solid var(--line);
}
.ob-price small { display: block; font-size: 12px; color: var(--muted); }
.ob-price b { font-size: 21px; font-weight: 900; }
.order-bar .btn { min-width: 150px; }
.order-bar .btn:disabled { opacity: .7; }

.done { display: grid; gap: 18px; text-align: center; padding-top: 10px; }
.done-seal { width: 120px; height: 120px; margin: 0 auto 10px; animation: stampIn 1s var(--ease) both; filter: drop-shadow(0 20px 40px rgba(200, 58, 40, .6)); }
.done .o-title { margin-top: 0; }
.done-flow { margin: 18px 0; display: grid; gap: 0; text-align: left; padding: 20px; border-radius: 20px; background: var(--ink-3); border: 1px solid var(--line); }
.done-flow li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 20px; }
.done-flow li:last-child { padding-bottom: 0; }
.done-flow li:not(:last-child)::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line-2); }
.done-flow i { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--ink); }
.done-flow li.on i { background: var(--gold); border-color: var(--gold); }
.done-flow li.now i { border-color: var(--gold); box-shadow: 0 0 0 0 rgba(216, 183, 122, .6); animation: pulse 1.8s infinite; }
.done-flow b { font-size: 15px; }
.done-flow p { font-size: 13px; color: var(--muted); }
@media (min-width: 1080px) { .order-progress, .order-bar { left: calc(50% + 40px); } }
