/* =============================================================================
 * SCALE BUILD · 마케팅 리드 엔진 — 디자인 시스템 (design tokens + components)
 * -----------------------------------------------------------------------------
 * 톤: "Claude처럼 깔끔함 + 클래식 한 스푼". 색상은 홍보엽서 Color palette 기반의
 * 따뜻한 웜톤(베이지·밀·피치·샌드·번트시에나). 본문 Pretendard + 헤드라인 세리프.
 * 이 파일 하나로 모든 페이지(index/pro/pro-remodel)가 동일한 룩을 공유합니다.
 *
 * 폰트 로드(각 HTML <head>에 포함):
 *   <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css">
 *   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;700&display=swap">
 * ========================================================================== */

:root {
  /* SCALE 디자인 가이드라인(2026-09-30): 블랙 모노톤 · 컬러 포인트 없음 · Spoqa Han Sans Neo · 삼선표.
   * 옛 웜 팔레트(테라코타·크림)의 변수 이름은 그대로 두고 값만 모노로 — 화면 전체가 변수로 칠해져 있어 이름을 바꾸지 않는다. */
  --beige: #F6F6F6;      /* 옅은 회색 면 */
  --wheat: #EDEDED;      /* 회색 면(강조 행) */
  --peach: #FFFFFF;      /* 다크 위 강조 → 흰색 */
  --sand:  #000000;      /* 강조 → 검정 */
  --terra: #000000;      /* 주 강조/CTA → 검정 */

  --terra-d: #222222;    /* CTA hover */
  --terra-soft: #F0F0F0; /* 옅은 강조 배경 → 옅은 회색 */
  --cream: #FFFFFF;      /* 페이지 배경 → 흰색 */
  --cream-2: #F6F6F6;    /* 섹션 교차 배경 */
  --paper: #FFFFFF;      /* 카드 */
  --ink: #000000;        /* 본문 텍스트 */
  --ink-2: #444444;      /* 보조 텍스트 */
  --mute: #6F6F6F;       /* 흐린 텍스트 (AA 대비) */
  --line: #E5E5E5;       /* 경계선 */
  --line-2: #D9D9D9;
  --char: #000000;       /* 다크 섹션 → 순흑 */
  --char-2: #111111;     /* 다크 섹션 카드 */
  --char-line: rgba(255,255,255,.14);
  --on-dark: #FFFFFF;    /* 다크 위 텍스트 */
  --on-dark-mute: #BDBDBD;
  --ok: #000000;         /* 상태색도 모노 — 의미는 글자·굵기로 */
  --warn: #444444;
  --crit: #000000;

  /* 타이포 — 전체 Spoqa Han Sans Neo (제목도 세리프 없이) */
  --sans: "Spoqa Han Sans Neo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --serif: "Spoqa Han Sans Neo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;

  /* 반경 · 그림자 · 간격 — 각지고 평평하게 */
  --r-sm: 2px; --r: 2px; --r-lg: 4px; --r-xl: 4px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(0,0,0,.04);
  --sh-2: 0 4px 14px rgba(0,0,0,.06);
  --sh-3: 0 14px 36px rgba(0,0,0,.12);
  --sh-terra: none;
  --wrap: 1140px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------------------------------------------------------------- reset -- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans); color: var(--ink); background: var(--cream);
  line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: #fff; }   /* 모노 전환 뒤 흰 바탕에 흰 선택 영역이 되어 드래그한 글자가 안 보였다 */

/* --------------------------------------------------------------- layout -- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 88px 0; }
.sec-sm { padding: 56px 0; }
.sec-cream2 { background: var(--cream-2); }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }

/* ---------------------------------------------------------- typography --- */
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.14; }
h1, h2, h3 { color: var(--ink); }
.h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.h3 { font-weight: 800; font-size: clamp(18px, 2vw, 22px); }
.eyebrow { color: var(--terra); font-weight: 700; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; }
.lead { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 18px); }
.muted { color: var(--mute); }
.serif-num { font-family: var(--serif); font-weight: 700; }
.accent { color: var(--terra); }

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--terra); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: background .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
  box-shadow: var(--sh-terra); white-space: nowrap;
}
.btn:hover { background: var(--terra-d); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none;
}
.btn-ghost:hover { background: var(--paper); border-color: var(--terra); color: var(--terra); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.btn-dark:hover { background: #222; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.link-arrow { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--terra); padding-bottom: 2px; }
.link-arrow:hover { color: var(--terra); }

/* --------------------------------------------------------------- badges -- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--terra-soft); color: var(--terra-d);
}
.badge-wheat { background: var(--wheat); color: #444444; }
.badge-dark { background: rgba(255,255,255,.12); color: var(--on-dark); }
.badge-pro { background: var(--ink); color: #fff; box-shadow: none; }
.pill-num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 15px;
}

/* ---------------------------------------------------------- top navbar --- */
.topnav {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 20px; color: var(--ink); }
.brand b { font-family: var(--serif); }
.brand small { color: var(--terra); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--terra); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ----------------------------------------------------------------- hero -- */
.hero { background: var(--char); color: var(--on-dark); position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: none;   /* 모노 — 장식 그라데이션 없음 */
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); color: #fff; font-size: clamp(36px, 5vw, 62px); line-height: 1.08; letter-spacing: -.02em; }
.hero .eyebrow { color: var(--peach); margin-bottom: 22px; }
.hero p.sub { color: var(--on-dark-mute); font-size: clamp(15px, 1.5vw, 18px); margin: 24px 0 32px; max-width: 32em; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 22px; color: var(--on-dark-mute); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note b { color: var(--peach); }

/* ------------------------------------------------- before / after slider - */
.ba {
  position: relative; width: 100%; aspect-ratio: 3/2; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-3); user-select: none; touch-action: none; background: #000000;
}
.ba img, .ba svg, .ba .ba-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { z-index: 1; }
.ba .ba-before { z-index: 2; clip-path: inset(0 var(--clip, 50%) 0 0); }
.ba .ba-tag {
  position: absolute; top: 14px; z-index: 5; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: #fff; background: rgba(0,0,0,.55); padding: 5px 12px; border-radius: var(--r-pill);
}
.ba .ba-tag.b { left: 14px; }
.ba .ba-tag.a { right: 14px; background: var(--terra); }
/* 가격 칩 — BEFORE/AFTER 태그 바로 밑. 값이 있을 때만 붙는다(비면 자리도 없다).
 * '지금 얼마 → 리모델링 후 얼마' 가 사진 위에서 바로 읽히게(사용자 지시). */
.ba .ba-price { position: absolute; top: 44px; z-index: 5; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: rgba(0,0,0,.55); padding: 5px 12px; border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums; }   /* .ba-tag 와 같은 상자·같은 글자 크기(line-height 도 태그처럼 상속) */
.ba .ba-price.b { left: 14px; }
.ba .ba-price.a { right: 14px; background: var(--terra); }
.ba .ba-price[hidden] { display: none; }
.ba .ba-divider { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; z-index: 6; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.ba .ba-handle {
  position: absolute; top: 50%; z-index: 7; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%); box-shadow: 0 4px 16px rgba(0,0,0,.4);
  cursor: ew-resize; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 18px;
}
.ba .ba-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; font-size: 12px;
  color: #fff; background: rgba(0,0,0,.5); padding: 5px 13px; border-radius: var(--r-pill);
}
.ba-cap { margin-top: 12px; font-size: 12.5px; color: var(--mute); text-align: center; }

/* ---------------------------------------------------------------- cards -- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 28px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.feature .ic { width: 46px; height: 46px; border-radius: var(--r); background: var(--ink); color: var(--peach); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--mute); font-size: 14.5px; }

/* ---------------------------------------------------------------- stats -- */
.stats { background: var(--ink); color: var(--on-dark); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 60px 24px; }
.stat { text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(38px, 5vw, 58px); font-weight: 700; color: var(--peach); line-height: 1; letter-spacing: -.02em; }
.stat .l { color: var(--on-dark-mute); font-weight: 600; margin-top: 12px; font-size: 14.5px; }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: 1fr; gap: 34px; } }

/* --------------------------------------------------------------- forms --- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.field .req { color: var(--terra); }
.field .opt { color: var(--mute); font-weight: 500; }
.input, .field input, .field textarea, .field select {
  width: 100%; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--r);
  color: var(--ink); font-family: var(--sans); font-size: 15px; padding: 13px 15px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9A9A9A; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-soft); }
.field textarea { resize: vertical; min-height: 84px; }
.field .err { color: var(--terra-d); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--terra-d); }
.help { color: var(--mute); font-size: 12.5px; margin-top: 6px; }

/* 파일 업로드(드롭존) */
.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--cream-2);
  padding: 34px 24px; text-align: center; cursor: pointer; transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--terra); background: var(--terra-soft); }
.dropzone .dz-ic { font-size: 30px; }
.dropzone .dz-t { font-weight: 700; margin-top: 8px; }
.dropzone .dz-s { color: var(--mute); font-size: 13px; margin-top: 4px; }

/* 세그먼트 토글 */
.segment { display: inline-flex; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.segment button { border: 0; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer; transition: background .15s, color .15s; }
.segment button.on { background: var(--paper); color: var(--terra); box-shadow: var(--sh-1); }

/* --------------------------------------------------------- stepper (진행) */
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto 8px; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.stepper .step .dot {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--mute);
}
.stepper .step .lbl { font-size: 13.5px; font-weight: 700; }
.stepper .step.active .dot { border-color: var(--terra); background: var(--terra); color: #fff; }
.stepper .step.active .lbl { color: var(--ink); }
.stepper .step.done .dot { border-color: var(--terra); background: var(--terra-soft); color: var(--terra-d); }
.stepper .bar { width: 42px; height: 2px; background: var(--line-2); margin: 0 12px; }
.stepper .step.done + .bar, .stepper .bar.done { background: var(--terra); }
@media (max-width: 640px) { .stepper .step .lbl { display: none; } .stepper .bar { width: 22px; margin: 0 6px; } }

/* 파이프라인 화면(스텝별 패널) */
.screen { display: none; animation: fadeUp .4s var(--ease); }
.screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- render stage -- */
.render-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000000; aspect-ratio: 3/2; }
.render-stage img { width: 100%; height: 100%; object-fit: cover; }
.render-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; background: rgba(0,0,0,.82); z-index: 3; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--terra); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scanline { position: absolute; left: 0; right: 0; height: 30%; z-index: 2; background: linear-gradient(180deg, transparent, rgba(0,0,0,.22), transparent); animation: scan 1.8s var(--ease) infinite; }
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }

/* 모자이크(블러) 잠금 오버레이 — 회원가입/Pro 유도 */
.locked { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.locked > .locked-media { filter: blur(14px) saturate(1.05); transform: scale(1.06); }
.locked .locked-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.62)); color: #fff; z-index: 2; }
/* 잠금 배지: 아웃라인 없이 박스 우상단에 흰색 텍스트로 */
.locked .lock-ic { position: absolute; top: 12px; right: 14px; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.55); }
.locked .locked-veil h4 { font-family: var(--serif); font-size: 20px; }
.locked .locked-veil p { color: rgba(255,255,255,.82); font-size: 13.5px; max-width: 26em; }

/* --------------------------------------------------------- 견적 테이블 --- */
.est-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.est-table td, .est-table th { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.est-table th { color: var(--mute); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }
.est-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.est-table tfoot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; font-size: 16px; padding-top: 15px; }
.est-total { color: var(--terra-d); font-family: var(--serif); }
.est-range { display: flex; align-items: baseline; gap: 8px; }
.est-range .big { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); }

/* -------------------------------------------------- 분석 다이어그램 ------ */
.bar-row { margin-bottom: 16px; }
.bar-row .bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.bar-row .bar-lbl { font-weight: 700; font-size: 14px; }
.bar-row .bar-val { font-family: var(--serif); font-weight: 700; color: var(--terra-d); }
.bar-track { height: 12px; border-radius: var(--r-pill); background: var(--cream-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--sand), var(--terra)); width: 0; transition: width 1.1s var(--ease); }
.donut { --pct: 70; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--terra) calc(var(--pct) * 1%), var(--cream-2) 0); display: flex; align-items: center; justify-content: center; }
.donut .hole { width: 92px; height: 92px; border-radius: 50%; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut .hole b { font-family: var(--serif); font-size: 26px; }
.donut .hole span { font-size: 11px; color: var(--mute); }
.stack-bar { display: flex; height: 16px; border-radius: var(--r-pill); overflow: hidden; }
.stack-bar > i { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ------------------------------------------------------- 렌더 벨트(업셀) */
.belt { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.belt-track { display: flex; gap: 18px; width: max-content; animation: belt 40s linear infinite; }
.belt:hover .belt-track { animation-play-state: paused; }
.belt-card { position: relative; width: 236px; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; flex: 0 0 auto; box-shadow: var(--sh-2); }
.belt-card img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) saturate(1.05); transform: scale(1.08); }
.belt-card .belt-veil { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.belt-card .belt-veil span { color: #fff; font-weight: 700; font-size: 13px; }
#belt.belt-open .belt-lock, #belt.belt-open .belt-veil span { display: none; }   /* 유료 회원 = 잠금 표시 없음 */
#belt.belt-open .belt-card img { filter: none; transform: none; }                   /* 유료 회원 = 블러 없이 선명하게 */
.belt-card .belt-lock { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.32); padding: 5px 11px; border-radius: var(--r-pill); backdrop-filter: blur(3px); }
@keyframes belt { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .belt-track { animation: none; } }

/* ---------------------------------------------------- pricing (Pro 유도) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 30px 26px; position: relative; }
.plan.featured { border-color: var(--terra); box-shadow: var(--sh-terra); }
.plan.featured::before { content: "가장 인기"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--terra); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; padding: 5px 14px; border-radius: var(--r-pill); }
.plan .p-name { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.plan .p-price { font-family: var(--serif); font-size: 40px; font-weight: 700; margin: 10px 0 2px; }
.plan .p-price small { font-size: 15px; color: var(--mute); font-family: var(--sans); font-weight: 600; }
.plan ul { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.plan li { font-size: 14px; color: var(--ink-2); padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--terra); font-weight: 800; }

/* --------------------------------------------------------------- modal --- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--sh-3); width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; padding: 32px; position: relative; animation: pop .24s var(--ease); }
.modal-lg { max-width: 900px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--ink-2); font-size: 18px; cursor: pointer; }
.modal .x:hover { background: var(--line); }
.modal h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }

/* ------------------------------------------------------------- toast ----- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; box-shadow: var(--sh-3); z-index: 400; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------------------------------------------------------------- footer --- */
.footer { background: var(--char); color: var(--on-dark-mute); padding: 46px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer .brand { color: #fff; margin-bottom: 8px; }
.footer a { color: var(--on-dark-mute); }
.footer a:hover { color: var(--peach); }
.swatches { display: flex; gap: 6px; margin-top: 12px; }
.swatches i { width: 34px; height: 12px; border-radius: 3px; display: block; }

/* ------------------------------------------------ header 변형 · 어드민 --- */
/* 중앙 로고 전용 헤더(히어로 모듈) */
.topnav.topnav-center .wrap { justify-content: center; }
.topnav.topnav-center .brand { font-size: 22px; }

/* 클릭 가능한 스텝퍼(어드민/자유 이동) */
.stepper.clickable .step { cursor: pointer; }
.stepper.clickable .step:hover .dot { border-color: var(--terra); color: var(--terra); }

/* 어드민/데모 툴바 — 입력 없이 단계 이동·데모 채우기 */
.admin-bar {
  position: fixed; left: 14px; bottom: 14px; z-index: 150; display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.94); color: #fff; padding: 8px 11px; border-radius: var(--r-pill);
  box-shadow: var(--sh-3); font-size: 12px; flex-wrap: wrap; max-width: calc(100vw - 28px);
}
.admin-bar b { color: var(--peach); font-weight: 800; letter-spacing: .1em; font-size: 11px; margin-right: 2px; }
.admin-bar button { border: 0; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 11px; border-radius: var(--r-pill); cursor: pointer; transition: background .15s; }
.admin-bar button:hover { background: var(--terra); }
.admin-bar button.on { background: var(--terra); }
.admin-bar .sep { width: 1px; height: 16px; background: rgba(255,255,255,.22); margin: 0 3px; }
.admin-bar .mini { opacity: .8; font-size: 11px; }

/* ------------------------------------------------------------ utilities -- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}.mt-5{margin-top:52px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:36px}
.row { display: flex; gap: 14px; align-items: center; }
.row-between { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.wrap-flex { display: flex; gap: 14px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-2); }

@media (max-width: 860px) {
  /* ── 어드민 바 모바일 규칙 (실측 375×667 / 360×740 / 412×915 근거) ──────────────
   * 이 바는 데스크톱만 상정하고 만들어져 @media 규칙이 한 줄도 없었다.
   * flex-wrap:wrap + max-width:calc(100vw - 28px) 탓에 세 폭 모두 3줄 108px 로 접히고
   * bottom:14 와 합쳐 화면 하단 122px(667px 화면의 18.3%)를 스크롤 위치와 무관하게 점유했다.
   * 그 결과 pro.html '이 자재 입혀보기 →' 가 73%, index.html '더 많은 디자인 보기(Pro) →'
   * 가 74% 가려지고 두 버튼 모두 정중앙 탭이 바로 먹혔다 — pro 쪽은 하필 '⚙ 어드민 콘솔' 이라
   * CTA 를 누르면 admin.html 로 페이지가 튄다.
   * 버튼을 줄이는 것으로는 안 낫는다(10개도 12개도 똑같이 3줄) → 줄 접기를 끄고
   * 가로 스크롤 한 줄로 바꿔 높이를 상수 56px 로 고정한다. */
  .admin-bar { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .admin-bar::-webkit-scrollbar { display: none; }
  /* 탭 타깃 25~28px 은 50~60대 대상 서비스에서 미달(Apple HIG 44pt / Android 48dp).
   * 하필 가장 작고 가장 흐린 버튼이 유일한 탈출구인 '숨기기' 였다. */
  .admin-bar button { flex: 0 0 auto; min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .admin-bar b, .admin-bar .sep { flex: 0 0 auto; }
  .admin-bar .mini { opacity: 1; font-size: 13px; min-width: 44px; }
  /* 접힘 상태 = ⚙ 하나만 남는 pill. 화면에서 사라지지 않아 손가락으로 다시 펼 수 있다. */
  .admin-bar.folded { left: auto; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    width: 44px; border-radius: var(--r-pill); padding: 0; justify-content: center; }
  .admin-bar.folded > *:not(.mini) { display: none; }
  /* 바가 떠 있는 동안만 본문 끝 CTA 가 바 밑에 깔리지 않게 여백을 만든다. */
  body.has-admin-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  /* 토스트(z-index 200)가 바(150) 전체를 덮어, 바 버튼을 누를 때마다 바가 몇 초간 사라졌다. */
  body.has-admin-bar .toast { bottom: calc(16px + 56px + env(safe-area-inset-bottom)); }
  /* #coachReplayBtn(right16/bottom16, z-index 149)은 바에 100% 덮였다. */
  body.has-admin-bar #coachReplayBtn { bottom: calc(16px + 56px + env(safe-area-inset-bottom)); }

  .hero { padding: 56px 0 66px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero .hero-visual { order: 2; }
  .sec { padding: 60px 0; }
}


/* ===================================================== SCALE 디자인 가이드라인 — 모노 오버라이드 (2026-09-30) ==
 * 삼선표: 머리 위 굵은 선 · 머리 아래 가는 선 · 표 맨 아래 선 · 세로선·중간선 없음 · 머리 배경 흰색·굵게 */
.est-table th { color: var(--ink); background: #fff; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.est-table td { border-bottom: 0; }
.est-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
.est-table tfoot td { border-top: 2px solid var(--ink); }
.est-total { color: var(--ink); }
.iq-tbl td { border-bottom: 0; }
.iq-tbl tr.flr td { background: #fff; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.iq-tbl tr:last-child td { border-bottom: 1px solid var(--ink); }
.iq-tbl tr.tot td { border-top: 1px solid var(--ink); border-bottom: 2px solid var(--ink); }
.flr-tbl th { color: var(--ink); background: #fff; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.flr-tbl td { border-bottom: 0; }
.flr-tbl tr:last-child td { border-bottom: 1px solid var(--ink); }
.flr-tbl tr.sel { background: var(--wheat); }
.v1-heat tr:first-child th { border-top: 2px solid var(--ink); }
.v1-heat th { color: var(--ink); border-bottom: 1px solid var(--ink); }
.v1-heat td { border-bottom: 0; }
.v1-heat tr:last-child td, .v1-heat tr:last-child th { border-bottom: 1px solid var(--ink); }
.v1-heat td.loss { background: var(--wheat); color: var(--ink); font-weight: 800; }
/* 비포/애프터 태그 — 둘 다 모노: BEFORE 검정, AFTER 흰색 */
.ba .ba-tag.a, .ba .ba-price.a { background: #fff; color: #000; }
/* 버튼·카드·입력은 각지게, 그림자 없이 */
.btn { box-shadow: none; border-radius: 2px; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card { box-shadow: none; }
.topnav { background: rgba(255,255,255,.9); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --------------------------------------------- 렌더 대기 진행 표시 (assets/progress.js) --
 * 원본은 계속 보이고(어둡게 덮지 않는다), 그 위에 미리보기(자재 타일 / 프리셋 레퍼런스)와 빛 스윕,
 * 아래쪽에 단계·퍼센트·남은 시간이 있는 진행 패널. 모노 가이드: 검정 바·흰 패널. */
.rp { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.rp-preview { position: absolute; inset: 0; background-size: 96px 96px; background-repeat: repeat; opacity: .38; mix-blend-mode: multiply;
              animation: rpBreath 2.6s ease-in-out infinite; }
.rp-preview.ref { opacity: .34; mix-blend-mode: soft-light; }
.rp-preview.ref img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); }
.rp-preview.none { display: none; }
.rp-sweep { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
            background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
            animation: rpSweep 2.2s var(--ease) infinite; }
.rp-panel { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px 11px; background: rgba(255,255,255,.94);
            border: 1px solid var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ink); }
.rp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rp-label { font-weight: 800; font-size: 14px; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-pct { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rp-bar { position: relative; height: 6px; margin-top: 9px; background: var(--line); overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s linear; }
.rp-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
                 animation: rpSweep 1.6s linear infinite; }
.rp-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rp-eta { color: var(--mute); flex: 0 0 auto; }
.rp-note { margin-top: 7px; font-size: 11.5px; color: var(--mute); line-height: 1.5; }
.rp-over .rp-eta { color: var(--ink); font-weight: 700; }
.rp-done .rp-bar i { transition: width .25s var(--ease); }
.rp-done .rp-panel { opacity: 0; transition: opacity .5s .2s; }
.rp-done .rp-preview, .rp-done .rp-sweep { opacity: 0; transition: opacity .45s; }
.rp-compact .rp-panel { left: 8px; right: 8px; bottom: 8px; padding: 9px 11px 8px; }
.rp-compact .rp-label { font-size: 13px; }
.rp-compact .rp-note { display: none; }
.rp-still .rp-sweep, .rp-still .rp-bar::after { animation: none; display: none; }
.rp-still .rp-preview { animation: none; }
@keyframes rpSweep { 0% { left: -40%; } 100% { left: 110%; } }
@keyframes rpBreath { 0%, 100% { opacity: .30; } 50% { opacity: .44; } }
/* 결과가 바뀔 때 드러나기 */
.rp-reveal { animation: rpReveal .8s var(--ease); }
@keyframes rpReveal { from { opacity: .35; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
@media (max-width: 640px) {
  .rp-panel { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px 9px; }
  .rp-label { font-size: 13px; }
}
.ba .rp { z-index: 9; }              /* 비교 슬라이더 손잡이·덮개보다 위 */
.locked .rp { z-index: 6; }          /* 잠금 베일(2) 위 */
.locked .rp .rp-preview { mix-blend-mode: normal; opacity: .22; }

/* ═══════════════ 스마트폰 최적화 (2026-10-11 · 사장님 지시: 컴퓨터와 별도로 휴대폰에 맞추기) ═══════════════
 * 실측(390×844 · iPhone UA): 가로 넘침 · 16px 미만 입력칸(iOS 가 눌렀을 때 화면 확대) · 40px 미만 터치 영역 ·
 * 12px 미만 글자를 잡아 고친다. 데스크톱 화면은 그대로다(아래 규칙은 640px 이하에서만). */
@media (max-width: 640px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: 16px; }
  .btn-sm { min-height: 44px; }
  .modal .x { width: 44px; height: 44px; top: 10px; right: 10px; }
  .footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .segment button { min-height: 44px; }
  .badge { font-size: 12px; }
  .help { font-size: 12.5px; }
  td .muted, td.muted { font-size: 12px !important; }   /* 견적표 품목·수량은 인라인 11.5px — 휴대폰에서만 키운다 */
  .topnav .brand { min-height: 40px; display: inline-flex; align-items: center; }
  /* 토스트 — 좁은 화면에서 알약 모양이 세 줄짜리 덩어리가 되던 것을 아래쪽 폭 전체 띠로 */
  .toast { left: 16px; right: 16px; transform: translateY(20px); bottom: calc(16px + env(safe-area-inset-bottom));
    border-radius: 14px; padding: 12px 16px; text-align: center; line-height: 1.5; }
  .toast.show { transform: translateY(0); }
  body.has-admin-bar .toast { bottom: calc(16px + 56px + env(safe-area-inset-bottom)); }
}

