/* 운명을 읽다 — 밤하늘 · 금빛 · 수묵 (휴대폰 먼저, 넓은 화면은 맨 아래 @media) */
:root {
  --bg: #07060f; --bg-2: #0d0a1e; --bg-3: #151032;
  --ink: #f3eee4; --mist: #cbc4dc; --mut: #8f88a8;
  --gold: #e8c57a; --gold-hi: #f8e6b6; --gold-lo: #b4873c;
  --lav: #b9a6ff; --rose: #f0a6b6;
  --line: rgba(232, 197, 122, .18); --line-2: rgba(232, 197, 122, .34);
  --card: rgba(22, 17, 46, .62); --card-2: rgba(30, 23, 62, .72);
  --serif: "Nanum Myeongjo", "Noto Serif KR", serif;
  --sans: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --nav: 60px; --r: 18px; --ease: cubic-bezier(.22, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 15.5px; line-height: 1.7;
  word-break: keep-all; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }
.lav { color: var(--lav); }
.center { text-align: center; }
section[id], header[id] { scroll-margin-top: calc(var(--nav) + 8px); }

/* ── 배경: 별(캔버스) + 성운 ─────────────────────────── */
#sky { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: 0; pointer-events: none; }
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.nebula i { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.nebula i:nth-child(1) { width: 90vmax; height: 60vmax; left: -30vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(92, 64, 190, .55), transparent); animation: drift1 38s ease-in-out infinite alternate; }
.nebula i:nth-child(2) { width: 70vmax; height: 50vmax; right: -28vmax; top: 30vh; background: radial-gradient(closest-side, rgba(40, 92, 160, .38), transparent); animation: drift2 46s ease-in-out infinite alternate; }
.nebula i:nth-child(3) { width: 60vmax; height: 40vmax; left: 10vw; bottom: -20vmax; background: radial-gradient(closest-side, rgba(170, 110, 60, .22), transparent); animation: drift1 52s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-10vw, -8vh, 0) scale(1.08); } }
.page { position: relative; z-index: 1; }

/* ── 인트로 ─────────────────────────────────────────── */
#intro { display: none; }
html.is-intro #intro { display: block; position: fixed; inset: 0; z-index: 100; touch-action: none; --bx: 50vw; --by: 34svh; --ws: 30; --rs: 22;
  animation: introFailsafe .6s 8s forwards; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }
.intro-veil { position: absolute; inset: 0; background: radial-gradient(120% 90% at var(--bx) var(--by), rgba(40, 26, 92, .15), rgba(7, 6, 15, .55) 75%); }
.intro-copy { position: absolute; left: var(--bx); top: calc(var(--by) + 96px); width: min(92vw, 560px); transform: translateX(-50%); text-align: center; }
.intro-mark { width: 30px; height: 30px; margin: 0 auto 14px; color: var(--gold); opacity: 0; }
.intro-k { font-family: var(--serif); font-weight: 700; color: var(--gold); letter-spacing: .5em; font-size: 12.5px; opacity: 0; padding-left: .5em; }
.intro-t { margin-top: 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(21px, 5.6vw, 30px); line-height: 1.55; color: var(--ink); }
.intro-t span { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(6px); }
.ph-copy .intro-mark { animation: fadeIn 1.1s var(--ease) forwards; }
.ph-copy .intro-k { animation: kIn 1.4s var(--ease) .15s forwards; }
.ph-copy .intro-t span { animation: wordIn 1s var(--ease) forwards; }
.ph-copy .intro-t span:nth-child(1) { animation-delay: .35s; }
.ph-copy .intro-t span:nth-child(2) { animation-delay: .6s; }
.ph-copy .intro-t span:nth-child(3) { animation-delay: .85s; }
.ph-core .intro-copy { animation: copyOut .8s ease forwards; }
@keyframes copyOut { to { opacity: 0; transform: translate(-50%, -10px); filter: blur(6px); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes kIn { from { opacity: 0; letter-spacing: 1em; } to { opacity: .95; letter-spacing: .5em; } }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.bloom i { position: absolute; left: var(--bx); top: var(--by); border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; will-change: transform, opacity; }
/* 빛은 모두 상자 안에서 투명해지는 그라데이션(그림자를 쓰면 확대할 때 네모 경계가 보일 수 있음) */
.bloom-core { width: 280px; height: 280px;
  background: radial-gradient(circle closest-side, #fff 0 4%, #fff4cf 7%, rgba(246, 214, 140, .72) 14%, rgba(246, 214, 140, .26) 30%, rgba(185, 166, 255, .12) 52%, rgba(185, 166, 255, 0) 100%); }
.bloom-ring { width: 120px; height: 120px;
  background: radial-gradient(circle closest-side, rgba(255, 238, 196, 0) 80%, rgba(255, 240, 200, .95) 91%, rgba(255, 222, 150, .35) 96%, rgba(255, 222, 150, 0) 100%); }
.bloom-wave { width: 120px; height: 120px;
  background: radial-gradient(circle, #fffdf7 0%, #fff3d2 30%, rgba(248, 226, 170, .92) 46%, rgba(226, 190, 128, .45) 60%, rgba(0, 0, 0, 0) 71%); }
.ph-core .bloom-core { animation: coreIn .75s cubic-bezier(.2, .8, .2, 1) forwards; }
.ph-wave .bloom-ring { animation: ringOut 1.15s cubic-bezier(.15, .7, .3, 1) forwards; }
.ph-wave .bloom-wave { animation: waveOut .95s cubic-bezier(.55, 0, .8, .35) forwards; }
@keyframes coreIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 55% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(.85); } }
@keyframes ringOut { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.15); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(var(--rs)); } }
@keyframes waveOut { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 12% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, -50%) scale(var(--ws)); } }
html.is-intro.ph-out #intro { animation: introOut 1s ease forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro-skip { position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); padding: 8px 14px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: var(--mist); font: 500 12.5px var(--sans); cursor: pointer; }
.ph-wave .intro-skip { opacity: 0; transition: opacity .3s; }
/* 인트로 동안 본문은 숨겼다가, 빛이 다 번지면 「노출 과다 → 제 밝기」로 드러남 */
html.is-intro .page { opacity: 0; animation: pageFailsafe .01s 8s forwards; }
html.is-intro.intro-reveal .page { opacity: 1; animation: none; }
@keyframes pageFailsafe { to { opacity: 1; } }
html.intro-reveal .hero-in { animation: expose 1.6s var(--ease) both; }
@keyframes expose { from { filter: brightness(2.2) blur(5px); transform: scale(1.05); } to { filter: none; transform: none; } }

/* ── 머리(고정) ──────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav); transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(9, 7, 20, .82); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand b { color: var(--gold); font-weight: 800; }
.brand-mark { width: 24px; height: 24px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(232, 197, 122, .5)); }
.nlinks { display: none; }
.nav-cta { margin-left: auto; padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 13.5px; color: #1d1405;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 4px 18px rgba(232, 197, 122, .3); }

/* ── 버튼 ───────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 99px; font: 700 15.5px var(--sans); cursor: pointer; border: 0; overflow: hidden; transition: transform .2s var(--ease), box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn-gold { color: #1d1405; background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 50%, var(--gold-lo) 100%);
  box-shadow: 0 8px 28px rgba(232, 197, 122, .32), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; transform: translateX(-150%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: sheen 4.2s ease-in-out infinite; }
@keyframes sheen { 0%, 62% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(330%) skewX(-20deg); } }
.btn-ghost { color: var(--gold-hi); background: rgba(232, 197, 122, .06); border: 1px solid var(--line-2); }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── 첫 화면 ─────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav) + 6px) 0 56px; text-align: center; overflow: hidden; }
.hero-art { position: relative; width: min(74vw, 290px); aspect-ratio: 1; margin: 0 auto -6px; }
.halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 214, 140, .22), rgba(185, 166, 255, .1) 55%, transparent); animation: breathe 7s ease-in-out infinite; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.ring-out { animation: spin 160s linear infinite; }
.ring-in { animation: spin 110s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.r-line { fill: none; stroke: var(--gold); stroke-opacity: .35; stroke-width: 1; }
.r-tick { fill: none; stroke: var(--gold); stroke-opacity: .55; stroke-width: 7; stroke-dasharray: 1.2 15; }
.r-dash { fill: none; stroke: var(--lav); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 2 7; }
.r-spoke { fill: none; stroke: var(--gold); stroke-opacity: .4; stroke-width: 14; stroke-dasharray: 1 80.68; }
.r-han { font-family: var(--serif); font-weight: 700; font-size: 25px; fill: var(--gold-hi); fill-opacity: .8; }
.r-han-s { font-size: 21px; fill: var(--lav); fill-opacity: .75; }
.moon { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 32%, #fffbe9 0%, #f6e2a8 26%, #ddb465 58%, #93692b 100%);
  box-shadow: 0 0 34px 6px rgba(246, 214, 140, .5), 0 0 110px 34px rgba(232, 190, 110, .2), inset -10px -12px 24px rgba(90, 58, 18, .45);
  animation: moonGlow 6s ease-in-out infinite; }
.moon i { position: absolute; inset: 0; border-radius: 50%; opacity: .32;
  background: radial-gradient(circle at 62% 38%, rgba(120, 84, 30, .55) 0 7%, transparent 8%), radial-gradient(circle at 40% 64%, rgba(120, 84, 30, .45) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 70%, rgba(120, 84, 30, .4) 0 5%, transparent 6%), radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .5) 0 4%, transparent 5%); }
@keyframes moonGlow { 50% { box-shadow: 0 0 46px 10px rgba(246, 214, 140, .62), 0 0 140px 46px rgba(232, 190, 110, .26), inset -10px -12px 24px rgba(90, 58, 18, .45); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
.eyebrow { font-family: var(--serif); font-weight: 700; color: var(--gold); letter-spacing: .42em; font-size: 11.5px; padding-left: .42em; }
.hook { margin: 16px 0 14px; font-family: var(--serif); }
.h-old { position: relative; display: inline-block; color: var(--mut); font-size: 15px; }
.h-old::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left; animation: strike .7s var(--ease) calc(var(--hd, 0s) + 1s) forwards; }
html.is-intro:not(.intro-reveal) .h-old::after { animation: none; }
@keyframes strike { to { transform: scaleX(1); } }
.h-new { margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.mk { background: linear-gradient(transparent 62%, rgba(232, 197, 122, .38) 0); padding: 0 2px; }
h1 { font-family: var(--serif); font-size: clamp(25px, 7vw, 46px); line-height: 1.36; letter-spacing: -.01em; text-wrap: balance; }
.gold-t { background: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, #fff2c8 55%, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% 100%; animation: goldMove 6s ease-in-out infinite; }
@keyframes goldMove { 50% { background-position: 100% 0; } }
.sub { margin: 14px auto 0; max-width: 34em; color: var(--mist); font-size: 14.5px; font-weight: 300; }
.cta-row { display: grid; gap: 10px; margin: 24px auto 0; max-width: 360px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 20px; }
.chip { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(232, 197, 122, .05); color: var(--mist); font-size: 12px; }
.chip b { color: var(--gold-hi); font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 22px; height: 34px; margin-left: -11px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
/* 첫 화면 차례로 나타나기(인트로가 없을 때) */
html.js .hero-copy > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--hd, 0s) + var(--n, 0) * .1s); }
.hero-copy > :nth-child(2) { --n: 1; } .hero-copy > :nth-child(3) { --n: 2; } .hero-copy > :nth-child(4) { --n: 3; } .hero-copy > :nth-child(5) { --n: 4; } .hero-copy > :nth-child(6) { --n: 5; }
html.intro-reveal .hero-copy { --hd: .45s; }
html.is-intro:not(.intro-reveal) .hero-copy > * { animation: none; opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── 구간 공통 ──────────────────────────────────────── */
.sec { position: relative; padding: 76px 0; }
.stitle { text-align: center; margin-bottom: 30px; }
.k { font-family: var(--serif); font-weight: 700; color: var(--gold); letter-spacing: .36em; font-size: 11px; padding-left: .36em; }
.stitle h2, .cf-head h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(23px, 6.2vw, 38px); line-height: 1.38; text-wrap: balance; }
.stitle > p:last-child:not(.k) { margin-top: 8px; color: var(--mut); font-size: 14px; }
.card { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 22px 20px; }
.fine { margin-top: 14px; color: var(--mut); font-size: 12px; }
.note { margin-top: 22px; color: var(--mut); font-size: 12.5px; line-height: 1.7; }
/* 화면에 들어오면 나타나기 — JS 가 있을 때만 숨김 */
html.js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-rv].in { opacity: 1; transform: none; }

/* ── 위로 ───────────────────────────────────────────── */
.comfort { text-align: center; }
.cf-head small { display: block; font-family: var(--serif); font-weight: 700; color: var(--gold); letter-spacing: .36em; font-size: 11px; }
.cf-list { display: grid; gap: 10px; margin: 26px 0 34px; text-align: left; }
.cf-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .06); color: var(--mist); font-size: 14.5px; font-weight: 300; }
.cf-card b { color: var(--ink); font-weight: 600; }
.cf-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(185, 166, 255, .1); font-size: 20px; }
.cf-close .big { font-family: var(--serif); font-weight: 800; font-size: clamp(21px, 5.6vw, 32px); line-height: 1.5; }
.cf-p { max-width: 34em; margin: 14px auto 22px; color: var(--mist); font-weight: 300; font-size: 14.5px; }

/* ── 내 띠 ───────────────────────────────────────────── */
.ddi-box { max-width: 880px; margin: 0 auto; }
.ddi-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 460px; margin: 0 auto; padding: 6px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); }
.ddi-form input { min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--sans); padding: 0 16px; outline: none; }
.ddi-form input::placeholder { color: var(--mut); }
.ddi-form .btn { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
.ddi-err { min-height: 1.4em; margin-top: 8px; text-align: center; color: var(--rose); font-size: 13px; }
.ddi-card { display: grid; gap: 20px; margin-top: 6px; align-items: center; scroll-margin-top: calc(var(--nav) + 12px); }
.ddi-pic { position: relative; margin: 0 auto; width: min(76vw, 300px); padding: 10px; border-radius: 6px;
  background: linear-gradient(#efe6cf, #e2d5b5); box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 197, 122, .4), 0 0 60px rgba(232, 197, 122, .12); transform: rotate(-1.5deg); }
.ddi-pic::before, .ddi-pic::after { content: ""; position: absolute; left: -10px; right: -10px; height: 12px; border-radius: 6px; background: linear-gradient(#6b4a22, #3d2810); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.ddi-pic::before { top: -8px; } .ddi-pic::after { bottom: -8px; }
.ddi-pic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: #e9dfc6; }
.ddi-seal { position: absolute; right: 18px; bottom: 18px; padding: 4px 5px; writing-mode: vertical-rl; border: 2px solid #b5322a; border-radius: 3px; color: #b5322a;
  font-family: var(--serif); font-weight: 800; font-size: 13px; letter-spacing: .1em; background: rgba(239, 230, 207, .75); }
.ddi-card.flip .ddi-pic { animation: unroll .9s var(--ease) both; }
.ddi-card.flip .ddi-info > * { animation: rise .7s var(--ease) both; }
.ddi-card.flip .ddi-info > :nth-child(2) { animation-delay: .08s; } .ddi-card.flip .ddi-info > :nth-child(3) { animation-delay: .16s; }
.ddi-card.flip .ddi-info > :nth-child(n+4) { animation-delay: .24s; }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); filter: brightness(1.6); } to { clip-path: inset(-20px -20px -20px -20px); filter: none; } }
.ddi-info { text-align: center; }
.ddi-gz { font-family: var(--serif); font-weight: 700; color: var(--gold); letter-spacing: .12em; font-size: 14px; }
.ddi-name { margin-top: 6px; font-family: var(--serif); font-size: clamp(28px, 8vw, 40px); line-height: 1.3; }
.ddi-trait { margin: 10px auto 0; max-width: 26em; color: var(--mist); font-weight: 300; }
.ddi-hook { margin: 18px auto 18px; padding: 14px 16px; max-width: 28em; border-radius: 14px; background: rgba(232, 197, 122, .07); border: 1px dashed var(--line-2); font-size: 14.5px; line-height: 1.65; }
.ddi-note { margin-top: 12px; color: var(--mut); font-size: 11.5px; line-height: 1.6; }

/* ── 숫자 ───────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 18px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.snum { font-family: var(--serif); font-weight: 800; font-size: clamp(19px, 5.6vw, 36px); color: var(--gold-hi); line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slab { margin-top: 6px; font-weight: 700; font-size: 12.5px; }
.ssub { margin-top: 2px; color: var(--mut); font-size: 10.5px; line-height: 1.45; }

/* ── 후기(두 줄이 반대로 흐름) ─────────────────────── */
.rev-rows { display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rev-row { display: flex; gap: 12px; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.rev-row.r2 { animation-direction: reverse; }
.rev-rows:hover .rev-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.rev { flex: none; width: 270px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .07); }
.stars { color: var(--gold); letter-spacing: .1em; font-size: 13px; }
.rtext { margin-top: 8px; font-size: 13.5px; color: var(--ink); line-height: 1.65; }
.rmeta { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.rav { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1d1405; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }
.rname { font-size: 12px; color: var(--mut); }
.rname b { color: var(--mist); font-weight: 600; }
.rev-disc { margin-top: 16px; text-align: center; color: var(--mut); font-size: 11.5px; }

/* ── 10개 파트 ───────────────────────────────────────── */
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.part { position: relative; overflow: hidden; padding: 16px 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.p-han { position: absolute; right: -6px; top: -14px; font-family: var(--serif); font-weight: 800; font-size: 74px; line-height: 1; color: var(--gold); opacity: .09; }
.p-no { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 10.5px; letter-spacing: .18em; }
.part h3 { margin-top: 6px; font-size: 15px; line-height: 1.4; }
.part p { margin-top: 5px; color: var(--mut); font-size: 12px; line-height: 1.55; }
.part.in .p-han { animation: hanGlow 2.4s ease-out; }
@keyframes hanGlow { 0% { opacity: .0; transform: scale(.8); } 40% { opacity: .3; } 100% { opacity: .09; transform: none; } }

/* ── 진행 ───────────────────────────────────────────── */
.steps { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 14px; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--gold), rgba(185, 166, 255, .5), transparent); opacity: .5; }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.s-no { flex: none; position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); font-weight: 800; font-size: 17px;
  color: #1d1405; background: radial-gradient(circle at 35% 30%, #fff6d6, var(--gold) 60%, var(--gold-lo)); box-shadow: 0 0 22px rgba(232, 197, 122, .45); }
.step > div { flex: 1; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .06); }
.step h3 { font-size: 16px; }
.step p { margin-top: 4px; color: var(--mist); font-size: 13.5px; font-weight: 300; }

/* ── 가격 ───────────────────────────────────────────── */
.plans { display: grid; gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.plan h3 { font-family: var(--serif); font-size: 19px; color: var(--gold-hi); }
.pr { margin-top: 6px; font-family: var(--serif); font-weight: 800; font-size: 34px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pr small { font-size: 15px; color: var(--mut); font-weight: 700; }
.plan ul { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 6px; }
.plan li { position: relative; padding-left: 18px; color: var(--mist); font-size: 14px; }
.plan li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 10px; }
.pnote { margin: -4px 0 16px; color: var(--mut); font-size: 12px; }
.plan .btn { margin-top: auto; }
.plan.feat { order: -1; background: linear-gradient(160deg, rgba(60, 44, 120, .78), rgba(26, 19, 54, .9)); border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(232, 197, 122, .55), 0 18px 50px rgba(0, 0, 0, .45), 0 0 50px rgba(232, 197, 122, .14); }
.plan.feat::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--gold-hi) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: orbit 5s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --a: 360deg; } }
.tag { position: absolute; top: -11px; right: 18px; padding: 3px 12px; border-radius: 99px; font: 800 11px var(--sans); letter-spacing: .14em; color: #1d1405;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); box-shadow: 0 4px 14px rgba(232, 197, 122, .4); }
.tag-new { background: linear-gradient(135deg, #d9ccff, #8a6bd8); color: #1a1038; }

/* ── 신청서 ─────────────────────────────────────────── */
.formwrap { max-width: 640px; margin: 0 auto; padding: 22px 18px 24px; background: rgba(16, 12, 34, .82); }
.fgroup { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-family: var(--serif); font-weight: 800; font-size: 15px; color: var(--gold-hi); }
.fgroup:first-of-type { margin-top: 2px; }
.fgroup span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 800 11.5px var(--sans); color: #1d1405; background: var(--gold); }
.form-field { margin-bottom: 14px; }
.form-field > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--mist); }
.form-field label i { color: var(--rose); font-style: normal; }
.form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(8, 6, 20, .7);
  color: var(--ink); font: 400 16px var(--sans); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
textarea { min-height: 0; resize: vertical; line-height: 1.6; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 197, 122, .16); }
input::placeholder, textarea::placeholder { color: #6d6788; }
input:disabled { opacity: .45; }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; -webkit-appearance: auto; appearance: auto; accent-color: var(--gold); }
.inline-chk { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--mist); }
.hint-gold { display: block; color: var(--gold); }
.hint-mist { color: var(--mut); }
.hp { position: absolute; left: -9999px; }
.pricebox { margin-top: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(232, 197, 122, .08); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--mist); }
.pricebox b { color: var(--ink); }
.amt { color: var(--gold-hi) !important; font-family: var(--serif); font-weight: 800; font-size: 1.12em; }
.notice { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(240, 166, 182, .07); border: 1px solid rgba(240, 166, 182, .28); font-size: 13px; color: var(--mist); line-height: 1.65; }
.notice b { color: var(--ink); }
.notice.left { text-align: left; }
.ent { margin: 0 0 14px; color: var(--mut); font-size: 12px; font-weight: 300; line-height: 1.7; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px; color: var(--mut); line-height: 1.65; cursor: pointer; }
.agree input { margin-top: 2px; }
.agree b { color: var(--mist); }
.success { text-align: center; }
.succ-moon { font-size: 46px; }
.succ-h { margin: 8px 0 6px; font-family: var(--serif); color: var(--gold); font-size: 24px; }
.succ-p { color: var(--mist); font-weight: 300; }
.success .notice { margin: 20px 0; }
.band { padding: 22px 18px; border-radius: 16px; background: linear-gradient(160deg, rgba(60, 44, 120, .55), rgba(20, 15, 44, .8)); border: 1px solid var(--line-2); }
.band-h { font-family: var(--serif); font-size: 20px; color: var(--gold-hi); }
.band > p { margin-top: 8px; color: var(--mist); font-size: 14px; font-weight: 300; }
.small-mut { font-size: 13px; color: var(--mut); }
.paysum { margin: 16px 0 12px; padding: 4px 14px; border-radius: 12px; background: rgba(8, 6, 20, .5); border: 1px solid var(--line); text-align: left; }
.ps-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 13.5px; color: var(--mist); }
.ps-row + .ps-row { border-top: 1px dashed var(--line); }
.ps-total b { font-size: 18px; }
.acct { display: grid; gap: 3px; width: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--gold); background: rgba(232, 197, 122, .1); color: var(--ink); font-family: var(--sans); cursor: pointer; }
.acct-bank { font-family: var(--serif); font-weight: 800; font-size: 18px; color: var(--gold-hi); }
.acct-owner { font-size: 13.5px; color: var(--mist); }
.acct-copy { margin-top: 4px; font-size: 12px; color: var(--mut); }
.band-p { margin: 18px 0 12px; color: var(--mist); font-size: 14px; font-weight: 300; }
.kakao-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 24px; border-radius: 99px; background: #fee500; color: #191600; font-weight: 700; font-size: 15px; }
.prepay { margin-top: 20px; padding: 13px 15px; border-radius: 10px; background: rgba(8, 5, 18, .45); border: 1px solid var(--line); font-size: 12px; color: var(--mut); font-weight: 300; line-height: 1.65; text-align: left; }
.prepay b { color: var(--mist); }

/* ── 자주 묻는 질문 · 문의 ─────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; padding: 16px 44px 16px 18px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 20px; font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--mist); font-size: 13.5px; font-weight: 300; }
.contact-card { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-card p { margin-bottom: 18px; color: var(--mist); font-weight: 300; }

/* ── 바닥 ───────────────────────────────────────────── */
.foot { position: relative; padding: 40px 0 calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(5, 4, 12, .85); color: var(--mut); font-size: 12px; }
.dis { line-height: 1.75; }
.dis b { color: var(--mist); }
.biz { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); line-height: 1.9; }
.biz .bt { display: block; margin-bottom: 4px; font-weight: 700; color: var(--mist); }
.biz b { display: inline-block; min-width: 9.5em; color: #a8a1bf; font-weight: 500; }
.refund-toggle { margin-top: 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .07); }
.refund-toggle summary { padding: 12px 14px; cursor: pointer; color: var(--mist); }
.rf-body { padding: 0 14px 12px; line-height: 1.75; }
.rf-body p { margin-top: 8px; }
.copy { margin-top: 20px; text-align: center; }

/* ── 휴대폰 아래 고정 신청 바 ─────────────────────── */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(7, 6, 15, .92) 30%); transform: translateY(110%); transition: transform .45s var(--ease); }
.mbar.show { transform: none; }
.mbar-kakao { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #fee500; font-size: 22px; }
.mbar-go { flex: 1; display: grid; place-content: center; text-align: center; height: 54px; border-radius: 99px; color: #1d1405; line-height: 1.25;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 8px 26px rgba(232, 197, 122, .35); }
.mbar-go small { font-size: 10.5px; font-weight: 600; opacity: .8; }
.mbar-go b { font-size: 15px; }

/* ── 휴대폰 전용: 스토리 챕터 + 핵심 단어만 (11-19 사용자 「모바일은 글이 너무 많아, 핵심 단어·후킹 문구만, 스토리형으로」) ──
   기준 한 곳 719.98px — 짧은 문구는 HTML 의 .m-only, PC 문구는 .pc-only */
@media (max-width: 719.98px) {
  .pc-only { display: none !important; }
  .sec { padding: 66px 0; }
  .sec:not(.stats)::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 42px; background: linear-gradient(transparent, rgba(232, 197, 122, .6)); }
  .ch { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(232, 197, 122, .07);
    color: var(--gold-hi); font: 700 12px var(--sans); letter-spacing: .04em; }
  .ch::before { content: "✦"; font-size: 10px; color: var(--gold); }
  .k, .cf-head small { letter-spacing: normal; padding-left: 0; }
  .stitle { margin-bottom: 24px; }
  .stitle h2, .cf-head h2 { margin-top: 14px; font-size: 26px; line-height: 1.42; }
  .stitle > p.m-only { margin-top: 8px; color: var(--mist); font-size: 14px; }
  /* 첫 화면 */
  h1 { font-size: 30px; }
  .cta-row { margin-top: 26px; }
  /* 01 요즘 당신 */
  .cf-list { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 30px; }
  .cf-card { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 18px 6px; }
  .cf-key { font-size: 13.5px; line-height: 1.45; color: var(--ink); font-weight: 700; }
  .cf-m { margin: 14px 0 22px; color: var(--mist); font-size: 15px; line-height: 1.75; }
  /* 02 내 띠 */
  .ddi-hook { font-size: 15.5px; margin: 16px auto; }
  /* 03 내 리포트: 한자 타일, 누르면 한 줄 설명 */
  .parts { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .part { padding: 12px 0 10px; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .25s, border-color .25s; }
  .part .p-no, .part h3, .part p { display: none; }
  .part .p-han { position: static; display: block; font-size: 27px; line-height: 1.15; color: var(--gold-hi); opacity: .9; }
  .part.in .p-han { animation: none; }
  .p-key { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--mist); }
  .part.sel { background: linear-gradient(160deg, rgba(232, 197, 122, .24), rgba(232, 197, 122, .06)); border-color: var(--gold); }
  .part.sel .p-key { color: var(--gold-hi); }
  .part-say { margin-top: 12px; padding: 14px 16px; min-height: 78px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); text-align: center; }
  .part-say b { font-family: var(--serif); font-size: 16px; color: var(--gold-hi); }
  .part-say p { margin-top: 4px; color: var(--mist); font-size: 13.5px; line-height: 1.6; }
  /* 숫자: 제목 없이 이어짐 */
  .stats { padding: 0 0 18px; }
  .ssub { display: none; }
  /* 04 후기: 한 줄만, 세 줄까지 */
  .rev-row.r2 { display: none; }
  .rev { width: 240px; }
  .rtext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* 05 받는 법: 4칸 한 줄 */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: none; }
  .steps::before { left: 12.5%; right: 12.5%; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(185, 166, 255, .6)); }
  .step { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .step > div { padding: 0; background: none; border: 0; }
  .step h3 { font-size: 13px; line-height: 1.4; }
  .step p { display: none; }
  /* 06 가격: 프리미엄은 핵심 단어, 나머지는 한 줄 */
  .plans { gap: 10px; }
  .plan ul, .pnote { display: none; }
  .p-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
  .p-chips span { padding: 4px 10px; border-radius: 99px; background: rgba(232, 197, 122, .12); border: 1px solid var(--line-2); color: var(--gold-hi); font-size: 12px; font-weight: 600; }
  .plan:not(.feat) { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 16px 18px; }
  .plan:not(.feat) h3 { font-size: 17px; }
  .plan:not(.feat) .pr { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 24px; }
  .plan:not(.feat) .pr small { font-size: 12px; }
  .plan:not(.feat) .p-one { grid-column: 1; margin-top: 2px; color: var(--mut); font-size: 12.5px; }
  .plan:not(.feat) .btn { grid-column: 1 / -1; margin-top: 12px; min-height: 44px; font-size: 14px; }
  /* 07 신청: 동의는 제목만, 「내용」을 누르면 전문 */
  .hint-mist { display: none; }
  .agree { align-items: center; }
  .agree > span { flex: 1; }
  .ag-t { color: var(--ink); font-weight: 600; font-size: 13.5px; }
  .ag-full { display: none; }
  .agree.open .ag-full { display: block; margin-top: 8px; }
  .ag-more { flex: none; align-self: flex-start; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--gold-hi); font: 600 12px var(--sans); cursor: pointer; }
  /* 읽는 만큼 차오르는 금빛 줄(지원하는 브라우저만) */
  @supports (animation-timeline: scroll()) {
    .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
      transform-origin: left; transform: scaleX(0); animation: readProg linear both; animation-timeline: scroll(root); }
    @keyframes readProg { to { transform: scaleX(1); } }
  }
}

/* ── 넓은 화면 ───────────────────────────────────────── */
@media (min-width: 720px) {
  .m-only { display: none !important; }
  .cf-list { grid-template-columns: repeat(3, 1fr); }
  .cf-card { flex-direction: column; text-align: center; padding: 22px 18px; }
  .parts { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan.feat { order: 0; }
  .stat { padding: 26px 12px; }
  .slab { font-size: 14px; } .ssub { font-size: 12px; }
}
@media (min-width: 980px) {
  :root { --nav: 68px; }
  body { font-size: 16px; }
  .wrap { padding: 0 32px; }
  .nlinks { display: flex; gap: 4px; margin-left: 28px; }
  .nlinks a { padding: 8px 12px; border-radius: 99px; color: var(--mist); font-size: 14px; transition: color .2s, background .2s; }
  .nlinks a:hover { color: var(--gold-hi); background: rgba(232, 197, 122, .07); }
  .nav-cta { padding: 10px 20px; font-size: 14px; }
  .hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 20px) 0 80px; text-align: left; }
  .hero-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero-art { order: 2; width: min(42vw, 520px); margin: 0 auto; }
  .hero-copy { order: 1; }
  .sub { margin-left: 0; }
  .cta-row { display: flex; margin: 30px 0 0; max-width: none; }
  .trust { justify-content: flex-start; }
  .h-old { font-size: 17px; } .h-new { font-size: 22px; }
  .sec { padding: 112px 0; }
  .stitle { margin-bottom: 44px; }
  .ddi-card { grid-template-columns: 340px 1fr; gap: 56px; margin-top: 24px; }
  .ddi-pic { width: 100%; }
  .ddi-info { text-align: left; }
  .ddi-trait, .ddi-hook { margin-left: 0; }
  .parts { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .part { padding: 22px 18px; min-height: 172px; }
  .part h3 { font-size: 16px; } .part p { font-size: 12.5px; }
  .steps { max-width: none; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .steps::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(185, 166, 255, .5), transparent); }
  .step { flex-direction: column; }
  .step > div { width: 100%; }
  .plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .plan.feat { transform: translateY(-12px); }
  .formwrap { padding: 34px 36px 36px; }
  .rev { width: 320px; }
  .foot { padding-bottom: 48px; }
  .mbar { display: none; }
}

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rev-rows { overflow-x: auto; } .rev-row { animation: none; }
  html.js [data-rv] { opacity: 1; transform: none; }
}
