/* 챕터살롱 — 출판사 사이트
   글씨: Pretendard 하나 · 제목 700 / 본문 400 · 자간 살짝 좁게
   모양: 와디즈·텀블벅처럼 둥근 카드 + 겹겹의 부드러운 그림자, 포인트 색은 챕터살롱 와인 */
:root {
  --red: #a1101a;
  --red-deep: #860d16;
  --red-50: #fbf1f1;
  --red-100: #f6dfe0;
  --ink: #1c1819;
  --ink-2: #4b4446;
  --gray: #8b8385;
  --gray-2: #b5adaf;
  --line: #eee9e5;
  --line-2: #e2dbd6;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --cream: #f5ede5;
  --white: #ffffff;
  --ok: #1f8a4c; --ok-50: #e9f6ee;
  --warn: #b7791f; --warn-50: #fdf4e3;
  --blue: #3b6fd8; --blue-50: #eef3fe;
  --soft: var(--gray); --muted: var(--gray); --paper: var(--bg);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --r-xl: 28px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(28, 24, 25, .04), 0 2px 10px rgba(28, 24, 25, .04);
  --sh-2: 0 1px 3px rgba(28, 24, 25, .05), 0 10px 30px -6px rgba(28, 24, 25, .1);
  --sh-3: 0 2px 6px rgba(28, 24, 25, .06), 0 24px 60px -12px rgba(28, 24, 25, .22);
  --sh-book: 0 1px 2px rgba(0, 0, 0, .1), 0 12px 24px -6px rgba(40, 10, 14, .28), 0 28px 50px -18px rgba(40, 10, 14, .3);
  --head-h: 70px;
  --wrapw: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: -0.012em; word-break: keep-all; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--red); color: #fff; }
.wrap { max-width: var(--wrapw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───── 시안 모드 표시 ───── */
.demo-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; background: rgba(28, 24, 25, .88); color: #fff; font-size: 12px; text-align: center; padding: 8px 16px; border-radius: 999px; box-shadow: var(--sh-2); max-width: calc(100% - 24px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.demo-bar b { color: #ffb4b9; font-weight: 700; }
body.has-demo { padding-bottom: 56px; }
body.has-demo .toast { bottom: 64px; }

/* ───── 머리글 ───── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -10px rgba(28, 24, 25, .12); }
.site-header .in { height: var(--head-h); max-width: var(--wrapw); margin: 0 auto; display: flex; align-items: center; gap: 36px; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 10px -2px rgba(161, 16, 26, .35); }
.brand .word { font-size: 19px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a { position: relative; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.menu a:hover { background: var(--bg-soft); color: var(--ink); }
.menu a.on { color: var(--red); font-weight: 600; }
.menu a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; border-radius: 2px; background: var(--red); }
.lock { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--red); background: var(--red-50); border-radius: 6px; padding: 1px 5px; margin-left: 5px; vertical-align: 2px; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: none; }
.nav .who { font-size: 14px; color: var(--gray); margin-right: 2px; white-space: nowrap; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: var(--bg-soft); border-radius: 12px; cursor: pointer; padding: 0; place-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.site-header.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .burger span:nth-child(2) { opacity: 0; }
.site-header.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.m-panel { display: none; }

/* ───── 버튼 ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 12px; padding: 11px 20px; min-height: 46px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(28, 24, 25, .05); transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.btn:hover { border-color: var(--gray-2); box-shadow: 0 4px 12px -4px rgba(28, 24, 25, .15); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #b0141f, var(--red)); border-color: var(--red); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(161, 16, 26, .3), 0 8px 20px -6px rgba(161, 16, 26, .45); }
.btn.primary:hover { background: linear-gradient(180deg, #a1101a, var(--red-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 2px 4px rgba(161, 16, 26, .3), 0 12px 26px -8px rgba(161, 16, 26, .55); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.lg { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn.small.primary { box-shadow: 0 4px 12px -4px rgba(161, 16, 26, .5); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--gray); font-weight: 500; box-shadow: none; }
.btn.ghost:hover { color: var(--ink); background: var(--bg-soft); }
.btn.glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: none; }
.btn.block { width: 100%; }
.btn + .btn.block, .btn.block + .btn.block { margin-top: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn .arrow { font-style: normal; font-weight: 500; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───── 공통 글자 ───── */
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: -.005em; margin: 0; }
.eyebrow .dot { display: none; }
.h2, .sec-head h2 { font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.32; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--red-50); color: var(--red); }
.chip.gray { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.chip.glass { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }

/* ───── 구역 ───── */
.sec { padding-top: clamp(72px, 9vw, 120px); }
.sec-head { display: grid; gap: 10px; margin-bottom: 32px; }
.sec-head p { margin: 0; color: var(--gray); font-size: 16.5px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head.row > div { display: grid; gap: 10px; }
.sec-head.center { text-align: center; justify-items: center; }
.more-link { font-weight: 600; font-size: 15px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; padding: 8px 2px; }
.more-link .arrow { font-style: normal; transition: transform .2s; }
.more-link:hover { color: var(--red); }
.more-link:hover .arrow { transform: translateX(3px); }

/* ───── 첫 화면 ───── */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, #fbeeee 0%, rgba(251, 238, 238, 0) 60%), radial-gradient(900px 500px at -10% 110%, #f6efe8 0%, rgba(246, 239, 232, 0) 60%), var(--bg); }
.hero .in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: clamp(520px, 64vh, 640px); padding-top: 40px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; line-height: 1.22; letter-spacing: -.045em; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); line-height: 1.7; margin: 0 0 32px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.stack { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 24px 0 46px; --h: clamp(200px, 21vw, 280px); --hc: clamp(250px, 26vw, 345px); }
.stack .bk { position: relative; flex: none; height: var(--h); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: var(--sh-book); transition: transform .5s cubic-bezier(.2, .7, .2, 1); cursor: pointer; background: var(--cream); }
.stack .bk img { display: block; height: 100%; width: auto; }
.stack .b1 { z-index: 1; margin-right: -36px; transform: rotate(-3deg); transform-origin: bottom right; }
.stack .b2 { z-index: 3; height: var(--hc); }
.stack .b3 { z-index: 1; margin-left: -36px; transform: rotate(3deg); transform-origin: bottom left; }
.stack .bk:hover { transform: translateY(-8px); z-index: 5; }
.stack .floor { position: absolute; left: 10%; right: 10%; bottom: 22px; height: 36px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 20, 24, .18), rgba(60, 20, 24, 0)); filter: blur(6px); }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: var(--sh-1); }
.hero-badges b { color: var(--red); font-weight: 700; }

/* ───── 흐르는 책 배너 ───── */
.shelf { padding: clamp(56px, 7vw, 80px) 0 clamp(48px, 6vw, 64px); background: linear-gradient(180deg, var(--bg-soft), #fff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.shelf .sec-head { margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding: 14px 0 26px; }
.marquee .track { display: flex; gap: 26px; width: max-content; animation: flow var(--dur, 40s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes flow { to { transform: translateX(-50%); } }
.mbook { flex: none; display: flex; flex-direction: column; width: 168px; cursor: pointer; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; }
.mbook .cv { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.45; }
.mbook .cv img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 2px 4px 4px 2px; box-shadow: var(--sh-book); background: var(--cream); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.mbook:hover .cv img { transform: translateY(-8px); box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 22px 36px -10px rgba(40, 10, 14, .38); }
.mbook .t { display: block; margin-top: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mbook .a { display: block; font-size: 13px; color: var(--gray); margin-top: 2px; }
.shelf .empty-shelf { text-align: center; color: var(--gray); padding: 40px 0; }

/* ───── 출판 프로그램 카드 ───── */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prog { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 26px 26px; box-shadow: var(--sh-2); transition: transform .3s, box-shadow .3s; }
.prog:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.prog.best { border-color: var(--red-100); background: linear-gradient(180deg, #fff 0%, #fffafa 100%); }
.prog .flag { position: absolute; top: -12px; right: 22px; font-size: 12px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 5px 11px; box-shadow: 0 6px 14px -4px rgba(161, 16, 26, .5); }
.prog .tag { font-size: 13px; font-weight: 600; color: var(--red); }
.prog h3 { margin: 6px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.35; }
.prog .sub { margin: 0 0 18px; color: var(--gray); font-size: 14.5px; min-height: 3.2em; }
.price { padding: 16px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.price .reg { font-size: 14px; color: var(--gray); }
.price .reg s { color: var(--gray-2); }
.price .now { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price .now b { font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.price .now .off { font-size: 15px; font-weight: 700; color: var(--red); }
.price .note { font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.member-price { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--red-50); border: 1px solid var(--red-100); }
.member-price span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.member-price em { font-style: normal; font-weight: 600; }
.member-price i { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--red); border-radius: 6px; padding: 1px 6px; }
.member-price b { font-size: 18px; font-weight: 700; color: var(--red); letter-spacing: -.02em; }
.form-card .sum { flex-wrap: wrap; }
.form-card .sum small { flex-basis: 100%; text-align: right; font-size: 12.5px; color: var(--red); font-weight: 600; margin-top: 2px; }
.price .opts { display: grid; gap: 6px; }
.price .opts div { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.price .opts b { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.4L12 5.4' fill='none' stroke='%23a1101a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ───── 출간 과정 ───── */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.process li { list-style: none; counter-increment: s; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; }
.process li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.process b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 4px; }
.process span { font-size: 14px; color: var(--gray); }
.process { padding: 0; margin: 0; }

/* ───── 목업 스튜디오 안내 ───── */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: #1f1416; color: #fff; box-shadow: var(--sh-3); }
.promo .pic { position: relative; min-height: 380px; }
.promo .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo .txt { padding: clamp(28px, 4.4vw, 56px); display: grid; align-content: center; gap: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(161, 16, 26, .45), rgba(161, 16, 26, 0) 70%), #1f1416; }
.promo h2 { margin: 12px 0 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.32; }
.promo p { margin: 0 0 24px; color: rgba(255, 255, 255, .72); }
.promo .ticks li { color: rgba(255, 255, 255, .85); }
.promo .ticks li::before { background-color: rgba(255, 255, 255, .12); filter: brightness(2.2) saturate(.2); }
.promo .chip { background: rgba(255, 255, 255, .12); color: #ffd3d6; }

/* ───── 자료실 미리보기 + 문의 ───── */
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 26px 22px; box-shadow: var(--sh-2); }
.panel-card h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.panel-card .ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; cursor: pointer; border-radius: 10px; transition: background .2s; width: 100%; background: none; border: 0; text-align: left; }
.post-row:hover { background: var(--bg-soft); }
.post-row .cat { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.post-row .ttl { font-size: 15px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row .ttl .pin { color: var(--red); margin-right: 4px; }
.post-row .meta { font-size: 13px; color: var(--gray); white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.post-row .lockb { font-size: 11px; font-weight: 700; color: var(--red); background: var(--red-50); border-radius: 6px; padding: 1px 6px; }
.empty-note { text-align: center; color: var(--gray); padding: 36px 10px; font-size: 15px; }
.ask-card { background: linear-gradient(160deg, #fff 0%, #fdf5f5 100%); display: grid; align-content: space-between; gap: 18px; }
.ask-card p { margin: 6px 0 0; color: var(--ink-2); }

/* ───── 페이지 머리 ───── */
.page-top { padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); background: radial-gradient(900px 300px at 90% -20%, #fbeeee, rgba(251, 238, 238, 0) 70%), var(--bg); }
.page-top h1 { margin: 10px 0 10px; font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1.25; }
.page-top p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 40em; }

/* 출간 도서 목록 */
.book-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 22px; }
.book-grid .mbook { width: auto; }
.filters-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.seg-chips button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: all .2s; }
.seg-chips button:hover { border-color: var(--gray-2); }
.seg-chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 신청 폼 페이지 */
.apply { display: grid; grid-template-columns: 1fr 440px; gap: 28px; align-items: start; }
.apply .plans { display: grid; gap: 14px; }
.plan-pick { display: block; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .prog { padding: 24px; box-shadow: var(--sh-1); }
.plan-pick .prog:hover { transform: none; box-shadow: var(--sh-2); }
.plan-pick input:checked + .prog { border-color: var(--red); box-shadow: 0 0 0 3px rgba(161, 16, 26, .12), var(--sh-2); }
.plan-pick input:focus-visible + .prog { box-shadow: 0 0 0 4px rgba(161, 16, 26, .25); }
.plan-pick .radio { position: absolute; top: 24px; right: 24px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.plan-pick input:checked + .prog .radio { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 5px, #fff 6px); }
.plan-pick .prog .sub { min-height: 0; }
.plan-pick .ticks { margin-bottom: 0; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.form-card { position: sticky; top: calc(var(--head-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-3); }
.form-card h2 { margin: 0 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -.035em; }
.form-card .intro { margin: 0 0 20px; font-size: 14px; color: var(--gray); }
.form-card .sum { display: flex; justify-content: space-between; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.form-card .sum b { font-size: 16px; }
.done-box { text-align: center; padding: 8px 0 2px; }
.done-box .ok-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--ok-50); color: var(--ok); font-size: 26px; font-weight: 700; }
.done-box h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.done-box p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }
.info-list { list-style: none; margin: 28px 0 0; padding: 22px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.info-list li { position: relative; padding-left: 14px; }
.info-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gray-2); }

/* 폼 */
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > span em { font-style: normal; color: var(--red); margin-left: 2px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid transparent; background: #f6f3f1; border-radius: 12px; padding: 13px 14px; font-size: 16px; outline: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238b8385' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: #b3abad; }
.field input:hover, .field textarea:hover, .field select:hover { background-color: #f1edea; }
.field input:focus, .field textarea:focus, .field select:focus { background-color: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(161, 16, 26, .1); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 4px 0 16px; cursor: pointer; line-height: 1.55; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.form-msg { font-size: 13.5px; margin: 10px 0 0; font-weight: 600; }
.form-msg:empty { margin: 0; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--ok); }
.linkish { display: block; margin: 14px auto 0; background: none; border: 0; padding: 0; color: var(--gray); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; }
.linkish:hover { color: var(--ink); }
.fine { font-size: 12.5px; text-align: center; margin: 16px 0 0; color: var(--gray); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f3efec; border-radius: 13px; margin: 10px 0 18px; }
.tabs button { background: none; border: 0; padding: 9px 0; border-radius: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--gray); transition: background .2s, color .2s, box-shadow .2s; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 24, 25, .08), 0 2px 8px rgba(28, 24, 25, .06); }

/* ───── 1:1 문의 ───── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.inq { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.inq + .inq { margin-top: 10px; }
.inq summary { list-style: none; cursor: pointer; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.inq summary::-webkit-details-marker { display: none; }
.inq summary b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.inq summary small { grid-column: 1; font-size: 12.5px; color: var(--gray); }
.inq summary .pill { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.inq .body { padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; }
.inq .reply { margin: 0 12px 12px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; white-space: pre-wrap; }
.inq .reply b { display: block; font-size: 13px; color: var(--red); margin-bottom: 4px; }
.login-need { text-align: center; padding: 40px 24px; }
.login-need .ill { margin-bottom: 16px; }
.login-need h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.login-need p { margin: 0 0 20px; color: var(--gray); }

/* 자료실 */
.lib { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 8px 14px; }
.post-view h2 { margin: 6px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.4; }
.post-view .meta { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.post-view .body { font-size: 15.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.75; margin-bottom: 20px; }

/* 공통 상태 표시 */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending, .pill.new, .pill.open { color: var(--warn); background: var(--warn-50); }
.pill.approved, .pill.done, .pill.answered { color: var(--ok); background: var(--ok-50); }
.pill.rejected { color: var(--red); background: var(--red-50); }
.pill.contacted { color: var(--blue); background: var(--blue-50); }

/* ───── 바닥글 ───── */
.site-footer { margin-top: clamp(80px, 10vw, 128px); background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 48px; padding-bottom: 36px; }
.site-footer .flogo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer .flogo img { width: 30px; height: 30px; border-radius: 9px; }
.site-footer .flogo b { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.035em; }
.site-footer .about p { margin: 0 0 14px; font-size: 14px; color: var(--gray); max-width: 26em; }
.site-footer .sns { display: flex; gap: 8px; }
.site-footer .sns a { font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; }
.site-footer .sns a:hover { border-color: var(--gray-2); }
.site-footer h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.site-footer ul a:hover { color: var(--red); }
.site-footer .bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 28px; font-size: 12.5px; color: var(--gray); }
.site-footer .bottom::before { content: ''; position: absolute; top: 0; left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); }

/* ───── 팝업(로그인 · 책 상세) ───── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(24, 14, 16, .52); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.on { opacity: 1; visibility: visible; }
.modal .sheet { position: relative; display: grid; grid-template-columns: 340px 1fr; width: 100%; max-width: 820px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 40px 100px -20px rgba(24, 8, 10, .5); transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.modal.on .sheet { transform: none; }
.sheet-side { position: relative; overflow: hidden; color: #fff; background: radial-gradient(500px 300px at 0% 0%, #c0202c 0%, rgba(192, 32, 44, 0) 70%), linear-gradient(160deg, #8f0e18 0%, #5a0910 100%); padding: 30px 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 560px; }
.side-books { position: absolute; left: 22px; top: 78px; width: 320px; height: 230px; perspective: 900px; }
.side-books img { position: absolute; width: 112px; height: 171px; object-fit: cover; border-radius: 3px 5px 5px 3px; box-shadow: 0 18px 30px -8px rgba(0, 0, 0, .55); }
.side-books img:nth-child(1) { left: 0; top: 30px; transform: rotate(-10deg); }
.side-books img:nth-child(2) { left: 88px; top: 0; transform: rotate(3deg); z-index: 2; }
.side-books img:nth-child(3) { left: 172px; top: 34px; transform: rotate(11deg); }
.side-in { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
.side-brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.side-title { margin: 0 0 14px; font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.035em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.sheet-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: rgba(255, 255, 255, .86); }
.sheet-side li { display: flex; gap: 8px; align-items: center; }
.sheet-side li::before { content: '✓'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .16); font-size: 11px; font-weight: 700; }
.side-copy-wrap { margin-top: auto; }
.sheet-main { position: relative; padding: 40px 36px 30px; overflow: auto; }
.modal .x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3efec; cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink-2); z-index: 5; transition: background .2s; }
.modal .x:hover { background: var(--line-2); }
.mhead { margin-bottom: 22px; padding-right: 30px; }
.mhead h2 { margin: 0 0 4px; font-weight: 700; font-size: 23px; letter-spacing: -.04em; line-height: 1.35; }
.mhead p { margin: 0; font-size: 14.5px; color: var(--gray); }
.btn.google { width: 100%; background: #fff; border-color: var(--line-2); color: var(--ink); gap: 10px; min-height: 52px; border-radius: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(28, 24, 25, .06), 0 4px 14px -6px rgba(28, 24, 25, .14); }
.btn.google:hover { background: #fcfbfa; border-color: var(--gray-2); }
.btn.google svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--gray); margin: 20px 0 4px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* 책 상세 */
.book-sheet { grid-template-columns: 300px 1fr !important; max-width: 760px !important; }
.bs-cover { background: radial-gradient(400px 300px at 50% 30%, #fff, var(--cream)); display: grid; place-items: center; padding: 40px 30px; }
.bs-cover img { width: 100%; max-width: 220px; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: var(--sh-book); }
.bs-info { padding: 40px 34px 30px; overflow: auto; display: flex; flex-direction: column; }
.bs-info h2 { margin: 10px 0 4px; font-size: 25px; font-weight: 700; letter-spacing: -.04em; line-height: 1.35; padding-right: 30px; }
.bs-info .by { margin: 0 0 16px; color: var(--gray); font-size: 15px; }
.bs-info .desc { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.bs-info .buy { margin-top: auto; padding-top: 16px; }
.bs-info .buy-t { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--gray); }
.bs-info .soon { margin: 0; padding: 14px; text-align: center; color: var(--gray); background: var(--bg-soft); border-radius: 12px; font-size: 14px; }
.post-sheet { grid-template-columns: 1fr !important; max-width: 640px !important; }
.post-sheet .sheet-main { padding: 36px 34px 30px; }

/* ───── 스튜디오(목업) ───── */
.studio { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; min-height: calc(100vh - var(--head-h)); background: var(--bg-soft); }
.panel { background: var(--bg-soft); }
.panel .in { position: sticky; top: var(--head-h); padding: 26px 20px 40px; max-height: calc(100vh - var(--head-h)); overflow: auto; }
.panel .eyebrow { margin-left: 4px; }
.panel h1 { font-weight: 700; font-size: 26px; letter-spacing: -.04em; margin: 6px 4px 20px; line-height: 1.3; }
.blk { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 20px; margin-bottom: 12px; box-shadow: var(--sh-1); }
.blk .t { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.03em; margin-bottom: 14px; }
.blk .t i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--red-100); color: var(--red); font-size: 12px; font-weight: 700; }
.blk .hint { font-size: 13px; color: var(--gray); margin: 10px 0 0; }
.drop { display: block; border: 1.5px dashed var(--line-2); background: var(--bg-soft); border-radius: var(--r); padding: 24px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--red); background: var(--red-50); }
.drop .big { font-weight: 600; font-size: 15px; }
.drop .sm { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.drop input { display: none; }
.cover-chip { display: flex; gap: 12px; align-items: center; text-align: left; }
.cover-chip img { width: 56px; height: 80px; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.cover-chip .meta { font-size: 13px; color: var(--gray); line-height: 1.5; overflow: hidden; }
.cover-chip .meta b { color: var(--ink); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.cover-chip u { color: var(--red); font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #f3efec; border-radius: 13px; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 9px 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gray); transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 24, 25, .08), 0 2px 8px rgba(28, 24, 25, .06); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick label { cursor: pointer; display: block; position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick .im { border-radius: 12px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); transition: border-color .2s, box-shadow .2s; }
.pick img { aspect-ratio: 6/5; object-fit: cover; width: 100%; }
.pick input:checked + .im { border-color: var(--red); box-shadow: 0 6px 16px rgba(161, 16, 26, .18); }
.pick input:focus-visible + .im { box-shadow: 0 0 0 4px rgba(161, 16, 26, .2); }
.pick .nm { font-size: 13.5px; font-weight: 600; margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.pick .box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); display: inline-grid; place-items: center; flex: none; background: #fff; }
.pick input:checked ~ .nm .box { background: var(--red); border-color: var(--red); }
.pick input:checked ~ .nm .box::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.progress { height: 8px; background: var(--line); margin-top: 14px; overflow: hidden; display: none; border-radius: 999px; }
.progress.on { display: block; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c4202c, var(--red)); transition: width .2s; border-radius: 999px; }
.prog-msg { font-size: 13px; color: var(--gray); margin-top: 8px; min-height: 1.3em; }
.stage { padding: 26px clamp(16px, 2.6vw, 36px) 64px 8px; }
.stage .empty { min-height: calc(100vh - var(--head-h) - 90px); display: grid; place-items: center; text-align: center; color: var(--gray); background: #fff; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.ill { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; background: url('../img/logo.png') center / cover; color: transparent; font-size: 0; overflow: hidden; box-shadow: 0 8px 20px rgba(161, 16, 26, .25); }
.previews { display: grid; gap: 20px; }
.pv { margin: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.pv .frame { position: relative; background: var(--cream); }
.pv canvas { width: 100%; height: auto; display: block; }
.pv .loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250, 247, 244, .8); font-size: 14px; color: var(--gray); font-weight: 600; }
.pv figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 14px; }
.pv figcaption .nm { font-weight: 700; letter-spacing: -.02em; }
.pv figcaption span:last-child { font-size: 12.5px; font-weight: 600; color: var(--gray) !important; background: var(--bg-soft); padding: 3px 9px; border-radius: 999px; }
.gate { min-height: calc(100vh - var(--head-h)); display: grid; place-items: center; padding: 40px 20px; text-align: center; background: var(--bg-soft); }
.gate .card { max-width: 440px; width: 100%; padding: 40px 32px 32px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-2); border: 1px solid var(--line); }
.gate .h2 { font-size: 22px !important; }
.card { background: #fff; border-radius: var(--r-lg); }

/* ───── 마스터 관리 ───── */
.admin { padding: 0 0 80px; background: var(--bg-soft); min-height: calc(100vh - var(--head-h)); }
.admin .wrap { padding-top: 32px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head .h2 { margin-top: 6px !important; }
.atabs { display: flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1); overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.atabs button { flex: none; border: 0; background: none; border-radius: 11px; padding: 10px 16px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--gray); white-space: nowrap; transition: background .2s, color .2s; }
.atabs button:hover { color: var(--ink); }
.atabs button.on { background: var(--ink); color: #fff; }
.atabs .n { margin-left: 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 1px 7px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; box-shadow: var(--sh-1); }
.filters button { border: 0; background: none; border-radius: 9px; padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gray); }
.filters button.on { background: var(--bg-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.filters .n { margin-left: 6px; font-weight: 700; color: var(--red); }
.search { border: 1px solid var(--line-2); background: #fff; border-radius: 12px; padding: 11px 16px; min-width: 260px; outline: none; font-size: 14.5px; box-shadow: var(--sh-1); }
.search:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(161, 16, 26, .1); }
table.members { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
table.members th { text-align: left; font-weight: 600; font-size: 13px; color: var(--gray); padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
table.members td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.members tr:last-child td { border-bottom: 0; }
table.members tbody tr:hover td { background: #fffcfa; }
table.members td.act { text-align: right; white-space: nowrap; }
table.members td.act .btn + .btn { margin-left: 6px; }
.members .name { font-weight: 700; letter-spacing: -.02em; }
.members .em { font-size: 13px; color: var(--gray); }
.members .tagg { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 6px; background: var(--blue-50); color: var(--blue); margin-left: 6px; vertical-align: 1px; }
.admin .none { padding: 56px; text-align: center; color: var(--gray); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.a-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.a-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.a-card h3 { margin: 0 0 14px; font-size: 17px; font-weight: 700; letter-spacing: -.03em; display: flex; justify-content: space-between; align-items: center; }
.a-card.sticky { position: sticky; top: calc(var(--head-h) + 16px); }
.cover-up { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cover-up .cv { width: 74px; aspect-ratio: 3 / 4; border-radius: 3px 5px 5px 3px; background: var(--bg-soft) center / contain no-repeat; border: 1px dashed var(--line-2); flex: none; box-shadow: var(--sh-1); }
.cover-up .cv.has { border: 0; box-shadow: var(--sh-book); }
.cover-up label { cursor: pointer; }
.link-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.link-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 6px; }
.link-row input { width: 100%; border: 1px solid transparent; background: #f6f3f1; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; outline: none; }
.link-row input:focus { background: #fff; border-color: var(--red); }
.icon-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 10px; cursor: pointer; color: var(--gray); font-size: 14px; }
.icon-btn:hover { color: var(--red); border-color: var(--red-100); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; margin: 4px 0 14px; }
.switch input { accent-color: var(--red); width: 17px; height: 17px; }
.blist { display: grid; gap: 10px; }
.brow { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--sh-1); }
.brow img { width: 54px; height: auto; max-height: 76px; object-fit: contain; border-radius: 2px 4px 4px 2px; box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .25); }
.brow b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.brow small { display: block; font-size: 13px; color: var(--gray); }
.brow .lk { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.brow .lk span { font-size: 11.5px; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }
.brow .lk span.no { color: var(--warn); background: var(--warn-50); border-color: transparent; }
.brow .acts { display: flex; gap: 6px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); }
.app-card + .app-card { margin-top: 10px; }
.app-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card .top b { font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.app-card .kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 12px 0; font-size: 14px; }
.app-card .kv dt { color: var(--gray); }
.app-card .kv dd { margin: 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.app-card .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.app-card textarea { width: 100%; min-height: 90px; border: 1px solid transparent; background: #f6f3f1; border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none; margin: 8px 0; resize: vertical; }
.app-card textarea:focus { background: #fff; border-color: var(--red); }

/* ───── 알림 ───── */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--sh-3); transition: all .3s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───── 반응형 ───── */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marquee .track { animation: none; } * { transition: none !important; } }
@media (max-width: 1080px) {
  .site-header .in { gap: 20px; }
  .menu a { padding: 8px 9px; font-size: 14.5px; }
  .nav .who { display: none; }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .menu, .nav { display: none; }
  .burger { display: grid; margin-left: auto; }
  .site-header .in { justify-content: space-between; }
  .m-panel { display: block; max-height: 0; overflow: hidden; transition: max-height .35s ease; background: #fff; }
  .site-header.open .m-panel { max-height: 560px; border-top: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2); }
  .m-panel a { display: block; padding: 14px 24px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .m-panel a.on { color: var(--red); }
  .m-acts { display: grid; gap: 8px; padding: 16px 20px 20px; }
  .hero .in { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .stack { width: 100%; justify-self: center; }
  .programs { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .promo, .duo, .contact, .apply, .a-grid { grid-template-columns: 1fr; }
  .promo .pic { min-height: 260px; }
  .form-card, .a-card.sticky { position: static; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .studio { grid-template-columns: 1fr; min-height: 0; align-content: start; }
  .panel .in { position: static; max-height: none; padding-bottom: 8px; }
  .stage { padding: 12px 20px 48px; }
  .stage .empty { min-height: 34vh; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
  .modal .sheet { grid-template-columns: 1fr; max-width: 460px; }
  .sheet-side { display: none; }
  .book-sheet { grid-template-columns: 1fr !important; max-width: 460px !important; }
  .bs-cover { padding: 28px 20px 8px; background: radial-gradient(300px 200px at 50% 40%, #fff, var(--cream)); }
  .bs-cover img { max-width: 150px; }
}
@media (max-width: 720px) {
  :root { --head-h: 62px; }
  body { font-size: 15.5px; }
  .demo-bar .long { display: none; }
  .demo-bar { padding: 6px 14px; }
  .hero h1 { font-size: 34px; }
  .stack { --h: 148px; --hc: 184px; padding-bottom: 36px; }
  .stack .b1 { margin-right: -22px; } .stack .b3 { margin-left: -22px; }
  .mbook { width: 132px; }
  .marquee .track { gap: 18px; }
  .process { grid-template-columns: 1fr; }
  .plan-pick .ticks { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .post-row { grid-template-columns: 1fr auto; }
  .post-row .cat { grid-column: 1 / -1; justify-self: start; }
  table.members thead { display: none; }
  table.members, table.members tbody, table.members tr, table.members td { display: block; width: 100%; }
  table.members tr { border-bottom: 1px solid var(--line); padding: 12px 4px; }
  table.members tr:last-child { border-bottom: 0; }
  table.members td { border: 0; padding: 3px 14px; }
  table.members td.act { text-align: left; padding-top: 10px; }
  .search { min-width: 0; width: 100%; }
  .sheet-main, .bs-info { padding: 32px 22px 24px; }
  .modal { padding: 10px; align-items: end; }
  .modal .sheet { border-radius: 24px; max-height: calc(100dvh - 20px); }
  .app-card .kv { grid-template-columns: 1fr; }
  .app-card .kv dt { margin-top: 6px; }
  .link-row { grid-template-columns: 90px 1fr 34px; }
}

/* 개인정보처리방침 */
.policy { max-width: 820px; }
.policy h2 { font-size: 19px; font-weight: 700; letter-spacing: -.03em; margin: 34px 0 10px; }
.policy p, .policy li { color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.policy ul { padding-left: 20px; margin: 0; }
.policy a { color: var(--red); text-decoration: underline; }

/* ───── 자주 묻는 질문 ───── */
.faq { max-width: 860px; padding-bottom: 90px; }
.faq .seg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: box-shadow .2s, border-color .2s; }
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { box-shadow: var(--sh-2); border-color: var(--line-2); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red-50); color: var(--red); font-weight: 700; font-size: 14px; }
.faq-item .t { flex: 1; display: grid; gap: 2px; font-size: 16.5px; font-weight: 600; letter-spacing: -.025em; line-height: 1.45; }
.faq-item .t small { font-size: 12.5px; font-weight: 500; color: var(--gray); letter-spacing: -.01em; }
.faq-item .pm { flex: none; position: relative; width: 14px; height: 14px; }
.faq-item .pm::before, .faq-item .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--gray); transition: transform .25s; }
.faq-item .pm::after { transform: rotate(90deg); }
.faq-item[open] .pm::after { transform: rotate(0deg); }
.faq-item .a { padding: 0 22px 22px 66px; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.faq-item .a p { margin: 0 0 8px; }
.faq-item .a p:last-child { margin-bottom: 0; }
.faq-item .a ul { margin: 0 0 10px; padding-left: 18px; }
.faq-item .a a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-item .a b { color: var(--ink); }
.faq-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.faq-cmp > div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.faq-cmp b { display: block; font-size: 15px; }
.faq-cmp span { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.faq-cmp ul { margin: 0; padding-left: 16px; font-size: 14.5px; line-height: 1.7; }
.faq-more { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-lg); background: var(--cream); }
.faq-more div { display: grid; gap: 2px; }
.faq-more b { font-size: 16.5px; letter-spacing: -.025em; }
.faq-more span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 720px) {
  .faq-item summary { padding: 17px 16px; gap: 11px; }
  .faq-item .t { font-size: 15.5px; }
  .faq-item .a { padding: 0 16px 18px 16px; }
  .faq-cmp { grid-template-columns: 1fr; }
}
.faq-prev { margin: 0 0 14px; }
.faq-prev:empty { display: none; }
.faq-prev small { display: block; font-size: 12.5px; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.faq-prev .a { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); max-height: 260px; overflow: auto; }
.faq-prev .a p { margin: 0 0 8px; } .faq-prev .a p:last-child { margin: 0; }
.faq-prev .a ul { margin: 0 0 8px; padding-left: 18px; }
.faq-prev .a a { color: var(--red); text-decoration: underline; }

/* 목업 스튜디오 이용 안내 */
.usage-note { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--gray); }
.usage-note b { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.usage-note ul { margin: 0; padding-left: 16px; }
.usage-note li + li { margin-top: 3px; }
.usage-note em { font-style: normal; font-weight: 600; color: var(--ink-2); }
