/* AuraX Private Studio — 공통 디자인
   딥 차콜 #0F0F0F · 웜 아이보리 #FAF7F2 · 샴페인 골드 #D4AF37 / Noto Serif KR + Pretendard
   모서리는 각지게(2px), 구역은 카드 대신 가는 금색 선으로 나눈다. 밝은 면은 견적서 한 곳뿐이다. */
:root {
  --bg: #0F0F0F;
  --coal: #171614;
  --ash: #24221F;
  --edge: #3A362F;
  --ivory: #FAF7F2;
  --ivory-soft: #D9D2C5;
  --gold: #D4AF37;
  --gold-deep: #A8872A;
  --gold-line: rgba(212, 175, 55, .28);
  --paper: #F6F1E7;
  --ink: #1B1916;
  --ink-soft: #4A453D;
  --rose: #E89482;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .8, .22, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
img, video, canvas { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }
/* 입력 칸 공통 규칙(width: 100% · min-height · padding)이 이겨서 숨김 칸이 화면 밖까지 늘어났었다 — 크기는 여기서 못 박는다 */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.serif { font-family: var(--serif); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gold { color: var(--gold); }
.muted { color: var(--ivory-soft); }

/* ── 버튼 ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: #14120C; position: relative; overflow: hidden; }
.btn-gold::after {   /* 눌렀을 때·올렸을 때 한 번 지나가는 빛 */
  content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-gold:hover::after, .btn-gold:focus-visible::after { transform: translateX(120%); }
.btn-line { border-color: var(--gold-line); color: var(--ivory); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: #B4533F; color: #fff; }
.btn-paper { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 500; }
.link-btn { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; padding: 8px 0; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--ivory-soft); border-radius: 2px; }
.icon-btn:hover { color: var(--gold); }

/* ── 머리줄 ───────────────────────────────────────────────────────────────── */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-solid { background: rgba(15, 15, 15, .92); border-bottom-color: var(--gold-line); backdrop-filter: blur(10px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 600; }
.head-nav { display: none; gap: 28px; }
.head-link { font-size: 15px; color: var(--ivory-soft); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.head-link:hover, .head-link-strong { color: var(--ivory); }
.head-link-strong { border-bottom: 1px solid var(--gold); }
.head-auth { display: flex; gap: 18px; align-items: center; }
@media (min-width: 860px) { .head-nav { display: flex; } }

/* ── 첫 화면 ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 2s var(--ease); }
.hero.is-ready .hero-video { opacity: 1; }
.hero::after {   /* 글이 읽히게 아래·왼쪽을 눌러 준다(장식이 아니라 가독성용) */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 15, 15, .55) 0%, rgba(15, 15, 15, 0) 30%, rgba(15, 15, 15, .2) 60%, #0F0F0F 100%),
              linear-gradient(90deg, rgba(15, 15, 15, .7) 0%, rgba(15, 15, 15, 0) 62%);
}
.hero-inner { padding: 120px 0 72px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 9.2vw, 88px); line-height: 1.16; letter-spacing: -.035em; }
.hero .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero .line > span { display: block; transform: translateY(108%); transition: transform 1.3s var(--ease); }
.hero .line:nth-child(2) > span { transition-delay: .14s; }
.hero.is-ready .line > span { transform: none; }
.hero-rule { width: 0; height: 1px; background: var(--gold); margin: 30px 0 22px; transition: width 1.4s var(--ease) .5s; }
.hero.is-ready .hero-rule { width: 88px; }
.hero-sub { max-width: 30em; font-size: clamp(16px, 2.2vw, 19px); color: var(--ivory-soft); opacity: 0; transition: opacity 1.2s var(--ease) .8s; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; transition: opacity 1.2s var(--ease) 1s; }
.hero.is-ready .hero-sub, .hero.is-ready .hero-cta { opacity: 1; }

/* ── 구역 ─────────────────────────────────────────────────────────────────── */
.band { padding: 88px 0; border-top: 1px solid var(--gold-line); }
.sec-head { margin-bottom: 40px; max-width: 40em; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 5vw, 42px); line-height: 1.3; letter-spacing: -.03em; }
.sec-head p { margin-top: 14px; color: var(--ivory-soft); }

/* 샘플 상영관 */
.screen-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }   /* minmax(0, …) — 안쪽의 옆으로 미는 탭 줄이 칸을 화면 밖까지 밀어내지 못하게 */
.screen-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--gold-line); }
.screen-frame video, .screen-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.screen-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--edge); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.screen-tabs::-webkit-scrollbar { display: none; }
.screen-tab { padding: 12px 18px 14px; color: var(--ivory-soft); font-size: 16px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.screen-tab[aria-selected='true'] { color: var(--gold); border-bottom-color: var(--gold); }
.screen-caption { margin-top: 14px; color: var(--ivory-soft); font-size: 15px; }
.screen-title { font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.screen-story { margin-top: 22px; padding-left: 18px; border-left: 1px solid var(--gold); font-family: var(--serif); font-size: 18px; line-height: 1.9; color: var(--ivory); max-width: 32em; }
@media (min-width: 900px) { .screen-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* 제작 과정 5단계 — 실제 순서라 번호를 단다 */
.process { display: grid; gap: 0; counter-reset: step; }
.process li { position: relative; padding: 22px 0 22px 58px; border-top: 1px solid var(--edge); counter-increment: step; }
.process li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--serif); font-size: 26px; color: var(--gold); line-height: 1.2; }
.process h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.process .note { display: inline-block; margin-left: 8px; color: var(--gold); font-size: 15px; font-weight: 500; }
.process p { margin-top: 6px; color: var(--ivory-soft); font-size: 15px; }
@media (min-width: 980px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .process li { padding: 62px 0 0; border-top: 1px solid var(--gold-line); }
  .process li::before { top: 18px; }
}

/* ── 스튜디오(주문서) ─────────────────────────────────────────────────────── */
/* 칸 폭은 반드시 minmax(0, 1fr) — 그냥 두면 탭 줄(줄바꿈 없는 세 탭, 1,127px)이 칸을 밀어 휴대폰에서 화면 전체가 1,147px 로 벌어졌다(2026-11-13 실측) */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1020px) { .studio-grid { grid-template-columns: minmax(0, 1fr) 372px; gap: 56px; } }
.tabs { display: flex; border-bottom: 1px solid var(--edge); overflow-x: auto; scrollbar-width: none; margin-bottom: 34px; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 16px 18px; font-size: 16px; color: var(--ivory-soft); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.tab[aria-selected='true'] { color: var(--ivory); border-bottom-color: var(--gold); }
.tab[aria-selected='true'] .icon { color: var(--gold); }
.panel { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lead { font-family: var(--serif); font-size: 18px; line-height: 1.9; color: var(--ivory); margin-bottom: 34px; }

.block { padding: 34px 0; border-top: 1px solid var(--edge); }
.block:first-child { border-top: 0; padding-top: 0; }
.block > h3, .block > legend { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; padding: 0; }
.block-help { color: var(--ivory-soft); font-size: 15px; margin-bottom: 20px; }
.block > h3 + .choices, .block > legend + .choices, .block > h3 + .grid2, .block > legend + .field { margin-top: 18px; }
/* fieldset 의 제목(legend)은 그냥 두면 위쪽 선 위에 걸터앉는다("에디션———"). 띄워서 선 아래로 내려 h3 구역과 같은 모양으로 맞춘다 */
.block > legend { float: left; width: 100%; margin-bottom: 0; padding-bottom: 6px; }
.block > legend:has(+ .choices), .block > legend:has(+ .field), .block > legend:has(+ .grid2), .block > legend:has(+ .styles) { padding-bottom: 18px; }
.block > legend + * { clear: both; }

/* 선택지(에디션·옵션·일정) */
.choices { display: grid; gap: 12px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: grid; gap: 8px; padding: 20px 20px 20px 54px; border: 1px solid var(--edge); border-radius: 2px; background: var(--coal); transition: border-color .25s var(--ease), background .25s var(--ease); }
.choice-body::before { content: ''; position: absolute; left: 20px; top: 24px; width: 20px; height: 20px; border: 1px solid var(--ivory-soft); border-radius: 50%; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice input[type='checkbox'] + .choice-body::before { border-radius: 2px; }
.choice input:checked + .choice-body { border-color: var(--gold); background: #1C1A15; }
.choice input:checked + .choice-body::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px #1C1A15; }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice input:disabled + .choice-body { opacity: .45; }
.choice-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.choice-name { font-size: 18px; font-weight: 600; line-height: 1.45; }
.choice-price { font-family: var(--serif); font-size: 19px; color: var(--gold); white-space: nowrap; }
.choice-lines { color: var(--ivory-soft); font-size: 15px; display: grid; gap: 3px; }
.choice-lines li { position: relative; padding-left: 14px; }
.choice-lines li::before { content: ''; position: absolute; left: 0; top: .78em; width: 6px; height: 1px; background: var(--gold); }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .04em; vertical-align: 2px; }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choices-row .choice-body { padding: 16px 16px 16px 48px; }
.choices-row .choice-body::before { left: 16px; top: 19px; }
.free-line { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--gold); font-size: 15px; }

/* 입력 칸 */
.field { display: grid; gap: 8px; }
.field + .field, .grid2 + .field, .field + .grid2, .grid2 + .grid2 { margin-top: 18px; }
.field-label { font-size: 15px; font-weight: 500; color: var(--ivory-soft); }
.field-label em { font-style: normal; color: var(--gold); margin-left: 4px; }
input[type='text'], input[type='password'], input[type='date'], input[type='time'], input[type='tel'], input[type='url'], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; background: var(--coal); border: 1px solid var(--edge); border-radius: 2px;
  color: var(--ivory); font-size: 16px; line-height: 1.6; transition: border-color .2s var(--ease); color-scheme: dark;
}
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8E877A; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.grid2 > .field + .field { margin-top: 0; }
@media (min-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); } }
.hint { font-size: 15px; color: var(--ivory-soft); }
.form-error { min-height: 1.5em; color: var(--rose); font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin: 2px 0 0; border: 1px solid var(--ivory-soft); border-radius: 2px; background: var(--coal); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 11px; height: 6px; border: solid #14120C; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check span { font-size: 16px; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--gold-line); border-left: 2px solid var(--gold); background: #15140F; font-size: 15px; }
.notice .icon { color: var(--gold); margin-top: 3px; }
.notice-warn { border-color: rgba(232, 148, 130, .4); border-left-color: var(--rose); }
.notice-warn .icon { color: var(--rose); }
.notice p + .btn { margin-top: 12px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* 파일 올리기 */
.drop { position: relative; display: grid; place-items: center; gap: 6px; padding: 24px 16px; border: 1px dashed var(--edge); border-radius: 2px; background: var(--coal); text-align: center; color: var(--ivory-soft); font-size: 15px; transition: border-color .2s, color .2s; }
.drop:hover, .drop.is-over { border-color: var(--gold); color: var(--ivory); }
.drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.files { display: grid; gap: 8px; margin-top: 12px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--edge); background: var(--coal); font-size: 15px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--ivory-soft); white-space: nowrap; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--edge); }
.thumb .icon-btn { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; background: rgba(15, 15, 15, .8); color: var(--ivory); }
.thumb .check { padding: 6px 0 0; gap: 8px; }
.thumb .check input { width: 20px; height: 20px; }
.thumb .check span { font-size: 14px; line-height: 1.4; }

/* 스토리보드 — 실제 순서라 세로 선으로 잇는다 */
.scenes { display: grid; gap: 0; margin-top: 18px; }
.scene { position: relative; padding: 0 0 30px 26px; border-left: 1px solid var(--gold-line); }
.scene::before { content: ''; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.scene:last-child { padding-bottom: 6px; }
.scene-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.scene-title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.45; }
.scene-sub { display: block; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ivory-soft); }
.recorder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--edge); background: var(--coal); }
.recorder audio { width: 100%; height: 40px; }
.rec-time { font-variant-numeric: tabular-nums; color: var(--gold); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* 화풍 */
.styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.styles .choice-body { padding: 16px 14px 16px 44px; }
.styles .choice-body::before { left: 14px; top: 19px; }
.styles .choice-name { font-size: 16px; }

/* 청첩장 템플릿 갤러리 */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 2px; color: var(--ivory-soft); font-size: 15px; white-space: nowrap; }
.chip[aria-pressed='true'] { border-color: var(--gold); color: var(--gold); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }
.tpl { position: relative; text-align: left; }
.tpl input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.tpl-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--edge); background: var(--coal); transition: border-color .25s, box-shadow .25s; }
.tpl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl input:checked ~ .tpl-card { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.tpl input:focus-visible ~ .tpl-card { outline: 2px solid var(--gold); outline-offset: 3px; }
.tpl-mark { position: absolute; top: 8px; right: 8px; z-index: 1; width: 26px; height: 26px; display: none; place-items: center; background: var(--gold); color: #14120C; border-radius: 50%; }
.tpl input:checked ~ .tpl-card .tpl-mark { display: grid; }
.tpl-name { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tpl-no { color: var(--gold); margin-right: 6px; font-family: var(--serif); }
/* 템플릿 위에 얹는 글(그림에는 글자가 없다) */
.tpl-text { position: absolute; left: 50%; width: 76%; transform: translate(-50%, -50%); top: 50%; text-align: center; color: var(--tpl-ink, #2A241B); font-family: var(--serif); line-height: 1.5; container-type: inline-size; }
.tpl-text.zone-upper { top: 30%; }
.tpl-text.zone-lower { top: 68%; }
.tpl-text.zone-inner { width: 54%; }
.tpl-text .t-small { display: block; font-size: 6.2cqw; letter-spacing: .18em; color: var(--tpl-accent, #B8963E); }
.tpl-text .t-names { display: block; margin: 5cqw 0; font-size: 12.5cqw; font-weight: 600; letter-spacing: -.02em; }
.tpl-text .t-amp { color: var(--tpl-accent, #B8963E); font-weight: 400; margin: 0 .25em; }
.tpl-text .t-date { display: block; font-size: 6.6cqw; }
.tpl-text .t-place { display: block; font-size: 5.6cqw; margin-top: 1.5cqw; opacity: .85; }
.tpl-stage { display: grid; gap: 22px; margin-top: 22px; align-items: start; }
@media (min-width: 720px) { .tpl-stage { grid-template-columns: 240px 1fr; } }
.tpl-preview { position: sticky; top: 92px; }
.tpl-preview .tpl-card { border-color: var(--gold-line); }
.tpl-desc { margin-top: 10px; color: var(--ivory-soft); font-size: 15px; }

/* 6인 계좌 */
.accounts { display: grid; gap: 14px; margin-top: 18px; }
.acc-row { display: grid; gap: 8px; grid-template-columns: 1fr; padding-bottom: 14px; border-bottom: 1px solid var(--edge); }
.acc-row:last-child { border-bottom: 0; }
.acc-role { font-weight: 600; color: var(--gold); }
@media (min-width: 640px) { .acc-row { grid-template-columns: 84px 1fr 1.5fr 1fr; align-items: center; } }

/* ── 견적서(이 화면의 유일한 밝은 면) ─────────────────────────────────────── */
.slip { position: sticky; top: 92px; background: var(--paper); color: var(--ink); padding: 28px 24px 24px; border-radius: 2px; }
.slip::before, .slip::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 8px 0, var(--bg) 5px, transparent 5.5px) 0 0 / 16px 10px repeat-x; }
.slip::before { top: 0; }
.slip::after { bottom: 0; transform: scaleY(-1); }
.slip h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.slip-sub { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.slip-lines { margin: 20px 0 0; padding: 16px 0; border-top: 1px solid rgba(27, 25, 22, .25); border-bottom: 1px dashed rgba(27, 25, 22, .35); display: grid; gap: 10px; font-size: 15px; }
.slip-lines li { display: flex; justify-content: space-between; gap: 14px; }
.slip-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip-empty { color: var(--ink-soft); }
.slip-total { padding: 18px 0 4px; }
.slip-total-label { font-size: 15px; color: var(--ink-soft); }
.slip-total-value { font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.slip-lock { display: grid; gap: 12px; padding: 18px 0 4px; }
.slip-lock-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; }
.slip-lock p { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.5; }
.slip-benefits { margin-top: 14px; padding: 14px; border: 1px solid rgba(27, 25, 22, .25); font-size: 15px; display: grid; gap: 6px; }
.slip-benefits strong { font-weight: 600; }
.slip-benefits li { position: relative; padding-left: 14px; }
.slip-benefits li::before { content: ''; position: absolute; left: 0; top: .78em; width: 6px; height: 1px; background: var(--ink); }
.slip .account { border-color: rgba(27, 25, 22, .25); margin-top: 14px; }
.slip .account .btn-line { border-color: var(--ink); color: var(--ink); }
.slip .account-holder, .slip .account-role { color: var(--ink-soft); }
.slip-note { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
/* 돈을 받는 약속에 붙는 단서 — 보조 글씨보다 또렷하게 */
.slip-caution { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--gold-deep); background: rgba(168, 135, 42, .12); font-size: 15px; color: var(--ink); }
.slip-caution .icon { margin-top: 3px; color: var(--gold-deep); }
.letter-upload { margin-top: 12px; }
.choice-caution { display: flex; gap: 8px; font-size: 15px; color: var(--ivory); }
.choice-caution .icon { margin-top: 3px; color: var(--gold); }
.slip .btn-block { margin-top: 16px; }
.slip .form-error { color: #A33A25; margin-top: 10px; }
@media (max-width: 1019px) { .slip { position: relative; top: 0; } }

.account { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--gold-line); }
.account-info { display: grid; gap: 2px; }
.account-role { font-size: 15px; color: var(--ivory-soft); }
.account-number { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-holder { font-size: 15px; color: var(--ivory-soft); }

/* 모바일 아래 고정 줄 */
.dock { position: fixed; inset: auto 0 0 0; z-index: 30; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: #0F0F0F; border-top: 1px solid var(--gold-line); transform: translateY(110%); transition: transform .4s var(--ease); }
.dock.is-on { transform: none; }
.dock-text { font-size: 15px; color: var(--ivory-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock .btn { min-height: 46px; padding: 0 18px; flex: none; }
@media (min-width: 1020px) { .dock { display: none; } }

/* ── 창 · 알림 ────────────────────────────────────────────────────────────── */
.dialog { width: min(100% - 24px, 520px); max-height: min(88dvh, 860px); padding: 0; border: 1px solid var(--gold-line); border-radius: 2px; background: var(--coal); color: var(--ivory); overflow: hidden; }
.dialog-wide { width: min(100% - 24px, 860px); }
.dialog[open] { display: flex; flex-direction: column; animation: dialog-in .35s var(--ease); }
.dialog::backdrop { background: rgba(8, 8, 8, .78); backdrop-filter: blur(3px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 12px 14px 24px; border-bottom: 1px solid var(--edge); }
.dialog-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.4; }
.dialog-body { padding: 22px 24px 26px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-text { color: var(--ivory-soft); margin-bottom: 18px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.auth-form { display: grid; }
.auth-form .btn-block { margin-top: 6px; }
.auth-form .link-btn { justify-self: center; margin-top: 10px; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(100% - 32px, 440px); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; background: var(--paper); color: var(--ink); font-size: 15px; border-radius: 2px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); animation: toast-in .35s var(--ease); transition: opacity .4s, transform .4s; }
.toast .icon { margin-top: 2px; }
.toast-error { background: #F3D9D2; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 창 안 내용: 약관 · 도우미 · 진행률 */
.terms h3 { font-family: var(--serif); font-size: 18px; margin: 22px 0 10px; }
.terms h3:first-child { margin-top: 0; }
.terms dt { font-weight: 600; color: var(--gold); margin-top: 12px; }
.terms dd { margin: 4px 0 0; color: var(--ivory-soft); font-size: 15px; }
.guide-steps { counter-reset: g; display: grid; gap: 10px; margin: 10px 0 20px; }
.guide-steps li { counter-increment: g; position: relative; padding-left: 34px; font-size: 15px; }
.guide-steps li::before { content: counter(g); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 14px; }
.prompt-list { display: grid; gap: 14px; }
.prompt { padding: 16px; border: 1px solid var(--edge); background: var(--bg); }
.prompt h4 { font-size: 17px; font-weight: 600; }
.prompt .hint { margin: 2px 0 10px; }
.prompt p { font-size: 15px; color: var(--ivory-soft); }
.prompt .btn { margin-top: 12px; }
.progress { height: 6px; background: var(--ash); overflow: hidden; margin: 18px 0 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }
.progress-num { font-family: var(--serif); font-size: 44px; line-height: 1.2; color: var(--gold); font-variant-numeric: tabular-nums; }
.done-id { font-family: var(--serif); font-size: 26px; color: var(--gold); letter-spacing: .02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; font-size: 15px; }
.kv dt { color: var(--ivory-soft); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ── 바닥 ─────────────────────────────────────────────────────────────────── */
.site-foot { padding: 48px 0 120px; border-top: 1px solid var(--gold-line); color: var(--ivory-soft); font-size: 15px; }
.foot-grid { display: grid; gap: 18px; }
.site-foot .brand { color: var(--ivory); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-biz { margin-top: 10px; max-width: 46em; }
.auth-notice a { color: var(--gold); text-underline-offset: 4px; }

/* 글 문서(개인정보 처리방침) */
.doc { padding: 132px 0 88px; max-width: 46em; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 5vw, 40px); line-height: 1.3; }
.doc-lead { margin-top: 14px; color: var(--ivory-soft); }
.doc h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--gold-line); }
.doc p + p, .doc table + p, .doc ul + p { margin-top: 12px; }
.doc-list { display: grid; gap: 8px; }
.doc-list li { position: relative; padding-left: 16px; }
.doc-list li::before { content: ''; position: absolute; left: 0; top: .82em; width: 7px; height: 1px; background: var(--gold); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 6px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--edge); }
.doc-table th { color: var(--ivory-soft); font-weight: 500; white-space: nowrap; }
.doc-table td:first-child { color: var(--ivory); font-weight: 600; min-width: 6.5em; }
@media (max-width: 560px) { .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; } .doc-table thead { display: none; } .doc-table td { padding: 4px 0; border: 0; } .doc-table tr { padding: 12px 0; border-bottom: 1px solid var(--edge); } }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: end; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero .line > span { transform: none; }
}
