/* ==========================================================================
   프레임웍스 (FRAMEWORKS) — 카메라·촬영장비 · DREXLY 템플릿
   원자료: 템플릿/56 · 00-디자인보드(색·활자·UI 상태 정본)
           02-페이지시안(면별 정본) · 01-home(홈 정본) · 06-mobile
   성격: Task-first Finder — 「무엇을 찍는가」에서 출발해 사양을 좁히고
         바디·렌즈·메모리·배터리를 합친 실제 시작 비용까지 한 줄로 보여 준다.
   ========================================================================== */

:root {
  /* ── 색 (디자인보드 「컬러」) ── */
  --graphite: #0e0f11;
  --grey: #2a2d31;
  --lightgray: #f2f3f5;
  --white: #ffffff;
  --red: #ff2d2d;

  --red-deep: #e01414;      /* 눌림·링크용 (흰 바탕 대비 4.6:1) */
  --red-wash: #fff0f0;
  --ink: #0e0f11;
  --ink2: #3d4147;
  --muted: #6b7078;         /* 흰 바탕 대비 5.0:1 */
  --paper: #ffffff;
  --paper2: #f2f3f5;
  --paper3: #e6e9ed;
  --line: #d9dce1;
  --line-soft: #ecedf0;

  /* 의미색 — 상태는 색만으로 전하지 않는다(글자·아이콘 병기) */
  --ok: #0f7a43;
  --ok-bg: #e9f5ee;
  --warn: #9a5b00;
  --warn-bg: #fdf2e2;
  --info: #1857c4;
  --info-bg: #eaf0fd;
  --off: #6b7078;
  --off-bg: #eef0f2;

  /* 어두운 띠 위 */
  --on-dark: #ffffff;
  --on-dark2: rgba(255, 255, 255, 0.66);
  --on-dark3: rgba(255, 255, 255, 0.34);
  --dark-line: rgba(255, 255, 255, 0.14);

  /* ── 활자 (디자인보드 「타이포그래피」 — Pretendard 32/40·20/28·16/24·14/20·12/16) ── */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* ── 조판 ── */
  --wrap: 1240px;
  --gutter: 32px;
  --section: 92px;
  --r: 4px;
  --r-lg: 10px;
  --shadow: 0 1px 2px rgba(14, 15, 17, 0.05), 0 10px 28px rgba(14, 15, 17, 0.07);
  --shadow-sm: 0 1px 2px rgba(14, 15, 17, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* --------------------------------------------------------------- 기본 */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -0.012em;
  /* 한국어는 어절 단위로 끊는다 — 「2층」·「예약 판매」가 갈라지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.24; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--graphite); color: #fff; padding: 14px 22px; font-size: 14px; font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 사진 액자 — inline 요소엔 aspect-ratio 가 안 먹으므로 반드시 block */
.frame { display: block; overflow: hidden; background: var(--paper2); }
/* 상품 사진은 흰 배경으로 잘려 있어, 사진이 든 액자만 흰 바탕으로 맞춘다 */
.frame:has(img), .thumb:has(img) { background: #fff; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 15px; height: 15px; stroke-width: 1.7; }
.ico-lg { width: 26px; height: 26px; stroke-width: 1.35; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --------------------------------------------------------------- 활자 계층 */
.eyebrow {
  font-size: 12px; line-height: 1.34; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.eyebrow-d { color: var(--red); }
.display {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.042em;
}
.h2 { font-size: clamp(24px, 2.9vw, 34px); font-weight: 800; letter-spacing: -0.036em; line-height: 1.2; }
.h3 { font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -0.028em; }
.h4 { font-size: 16px; line-height: 1.5; font-weight: 700; letter-spacing: -0.022em; }
.lead { font-size: 17px; line-height: 1.72; color: var(--ink2); }
.small { font-size: 14px; line-height: 1.6; }
.micro { font-size: 12px; line-height: 1.5; }
.muted { color: var(--muted); }

/* 구획 머리 — 왼쪽 굵은 제목 + 오른쪽 보조 링크 */
.sechead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
  padding-bottom: 16px; border-bottom: 2px solid var(--graphite);
}
.sechead .eyebrow { margin-bottom: 8px; }
.sechead p.lead { margin-top: 10px; max-width: 62ch; }
.sechead .more { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.sechead .more:hover { color: var(--red-deep); }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.66) 0; }
.pt0 { padding-top: 0; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r); border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  cursor: pointer; background: none; text-align: center;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-dark { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.btn-dark:hover { background: var(--grey); border-color: var(--grey); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--graphite); }
.btn-ghost { border-color: var(--dark-line); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { min-height: 48px; padding: 8px 14px; font-size: 13px; }
.btn-wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--red-deep); }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- 상태 표식
   §09 — 색만으로 상태를 전하지 않는다. 글자 + 아이콘을 반드시 함께 둔다. */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.5;
  border: 1px solid transparent; white-space: nowrap;
}
.tag .ico { width: 13px; height: 13px; stroke-width: 2; }
.tag-ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe2cd; }
.tag-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0d7ac; }
.tag-info { background: var(--info-bg); color: var(--info); border-color: #c4d5f7; }
.tag-off { background: var(--off-bg); color: var(--off); border-color: #d5d9de; }
.tag-red { background: var(--red-wash); color: var(--red-deep); border-color: #f7c9c9; }
.tag-solid { background: var(--graphite); color: #fff; border-color: var(--graphite); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink2); background: var(--paper);
}

/* --------------------------------------------------------------- 헤더 */
.hd {
  position: sticky; top: 0; z-index: 90;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.hd-top {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 23px; font-weight: 800; letter-spacing: -0.045em; }
.brand span {
  margin-top: 4px; font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em; color: var(--muted);
}

.search { display: flex; align-items: center; max-width: 520px; width: 100%; margin: 0 auto; }
.search input {
  flex: 1 1 auto; min-width: 0; height: 48px;
  border: 1.5px solid var(--graphite); border-right: 0;
  border-radius: var(--r) 0 0 var(--r);
  padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--paper); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--graphite); }
.search-go {
  height: 48px; width: 54px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--red); background: var(--red); color: #fff;
  border-radius: 0 var(--r) var(--r) 0; cursor: pointer;
}
.search-go:hover { background: var(--red-deep); border-color: var(--red-deep); }

.hd-util { display: flex; align-items: center; gap: 4px; }
.util {
  display: inline-flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 10px; border-radius: var(--r);
  font-size: 13px; font-weight: 600; color: var(--ink2);
}
.util:hover { background: var(--paper2); color: var(--ink); }
.util .count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--paper); cursor: pointer;
}

.hd-nav { border-top: 1px solid var(--line-soft); }
.hd-nav .wrap { display: flex; gap: 30px; }
.hd-nav a {
  position: relative; padding: 13px 0; font-size: 14px; font-weight: 700;
  color: var(--ink2); letter-spacing: -0.02em;
}
.hd-nav a:hover { color: var(--ink); }
.hd-nav a[aria-current="page"] { color: var(--ink); }
.hd-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red);
}

/* 서랍 — 모바일 전용. 데스크톱엔 햄버거를 남기지 않는다. */
.scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(14, 15, 17, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(86vw, 340px); background: var(--paper);
  transform: translateX(101%); transition: transform 0.3s var(--ease);
  padding: 18px 22px 32px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-close {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.drawer nav a {
  padding: 15px 2px; font-size: 17px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between;
}
.drawer nav a[aria-current="page"] { color: var(--red-deep); }
.drawer-foot { margin-top: 24px; display: grid; gap: 10px; }

/* --------------------------------------------------------------- 히어로 */
.hero { background: var(--graphite); color: var(--on-dark); position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 48px; align-items: center; padding-top: 68px; padding-bottom: 68px;
}
.hero h1 { margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.hero .lead { color: var(--on-dark2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: auto; border-radius: var(--r-lg); }
.hero-cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(14, 15, 17, 0.76); border: 1px solid var(--dark-line);
  padding: 7px 12px; border-radius: var(--r); font-size: 12px; color: var(--on-dark2);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px; margin-top: 38px; border-top: 1px solid var(--dark-line); padding-top: 22px;
}
.hero-stats dt { font-size: 12px; color: var(--on-dark3); font-weight: 700; letter-spacing: 0.06em; }
.hero-stats dd { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; margin-top: 4px; }
.hero-stats dd small { font-size: 13px; font-weight: 600; color: var(--on-dark2); margin-left: 3px; letter-spacing: 0; }

/* --------------------------------------------------------------- 약속 4칸 */
.promise { border-bottom: 1px solid var(--line); background: var(--paper); }
.promise ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promise li { padding: 26px 26px 26px 0; border-left: 1px solid var(--line-soft); padding-left: 26px; }
.promise li:first-child { border-left: 0; padding-left: 0; }
.promise .ico { color: var(--red); margin-bottom: 10px; }
.promise b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.promise p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------- 용도 파인더 (필름 스트립) */
.finder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fcard { padding: 26px 22px 24px; border-left: 1px solid var(--line-soft); background: var(--paper); display: flex; flex-direction: column; }
.fcard:first-child { border-left: 0; }
.fcard-no { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }
.fcard .ico-lg { color: var(--graphite); margin: 14px 0 12px; }
.fcard h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; }
.fcard .why { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.62; min-height: 3.2em; }
.fcard .need { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: grid; gap: 7px; }
.fcard .need li { font-size: 13px; font-weight: 600; display: flex; gap: 7px; align-items: flex-start; line-height: 1.5; }
.fcard .need .ico { color: var(--red); margin-top: 3px; }
.fcard .from { margin-top: 16px; font-size: 12px; color: var(--muted); }
.fcard .from b { display: block; font-size: 17px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.fcard .tlink { margin-top: 14px; }
.fcard:hover { background: var(--paper2); }

/* --------------------------------------------------------------- 상품 줄(목록형) */
.plist { border-top: 2px solid var(--graphite); }
.prow {
  display: grid; grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.prow .thumb {
  width: 116px; height: 96px; display: grid; place-items: center;
  background: var(--paper2); border: 1px solid var(--line-soft);
  border-radius: var(--r); overflow: hidden;
}
.prow .thumb img { width: 102px; height: 84px; object-fit: contain; }
.prow .maker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.prow h3 { font-size: 18px; font-weight: 700; margin: 3px 0 8px; }
.prow .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.prow .states { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prow .note { font-size: 12.5px; color: var(--muted); }
.prow .price-col { text-align: right; min-width: 210px; }
.prow .price { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.prow .start { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.prow .start b { color: var(--ink2); font-weight: 700; }
.prow .row-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.prow.is-off .thumb img { opacity: 0.5; filter: grayscale(1); }
.prow[hidden] { display: none; }

.pick { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; padding: 6px 0; }
.pick input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }

/* 홈 인기 장비 — 가로 스크롤 띠 */
.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--paper); display: flex; flex-direction: column; }
.pcard .frame { border-radius: var(--r); aspect-ratio: 102 / 84; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid var(--line-soft); }
.pcard .frame img { width: 102px; height: 84px; object-fit: contain; }
.pcard .maker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.pcard h3 { font-size: 15px; font-weight: 700; margin: 3px 0 8px; line-height: 1.4; }
.pcard .use { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.55; }
.pcard .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.pcard .price { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.pcard .tag { margin-top: 8px; }

/* --------------------------------------------------------------- 시작 비용 (시그니처) */
.cost { background: var(--graphite); color: var(--on-dark); }
.cost .sechead { border-bottom-color: var(--dark-line); }
.cost .lead { color: var(--on-dark2); }
.cost-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 52px; align-items: start; }

.costbar { margin-top: 6px; }
.costbar-track {
  height: 46px; border-radius: var(--r); overflow: hidden;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--dark-line);
}
.costbar-fill { display: flex; height: 100%; }
.costbar-fill .seg { height: 100%; display: grid; place-items: center; overflow: hidden; }
.costbar-fill .seg span { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: #fff; white-space: nowrap; }
/* 어두운 띠 위에서 네 칸이 서로 구분되도록 명도를 벌린다 — 아래 범례의 점과 같은 색 */
.seg-1 { background: var(--red); }
.seg-2 { background: #f2f3f5; }
.seg-2 span { color: var(--graphite) !important; }
.seg-3 { background: #8b9199; }
.seg-4 { background: #4b5158; }

/* 스크롤 연동 채움 — 미지원 브라우저는 IntersectionObserver 로 같은 결과를 낸다.
   자바스크립트가 없으면 애초에 잘리지 않은 완성 상태로 보인다. */
html.js .costbar-fill { clip-path: inset(0 100% 0 0); }
html.js .costbar.is-on .costbar-fill { clip-path: inset(0 0 0 0); transition: clip-path 1.15s var(--ease); }
@supports (animation-timeline: view()) {
  html.js .costbar-fill {
    animation-name: cost-wipe; animation-duration: auto; animation-timing-function: linear;
    animation-fill-mode: both; animation-timeline: view(); animation-range: entry 30% cover 52%;
  }
}
@keyframes cost-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.cost-legend { margin-top: 22px; border-top: 1px solid var(--dark-line); }
.cost-legend li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto;
  gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--dark-line);
}
.cost-legend .dot { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.cost-legend .nm { font-size: 14.5px; font-weight: 700; }
.cost-legend .nm small { display: block; font-size: 12px; font-weight: 500; color: var(--on-dark3); letter-spacing: 0; }
.cost-legend .amt { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.cost-legend .cum { font-size: 12px; color: var(--on-dark3); min-width: 78px; text-align: right; }
.cost-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0 0; }
.cost-total b { font-size: 15px; }
.cost-total .v { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.04em; color: var(--red); }
.cost-warn {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--r);
  background: rgba(255, 45, 45, 0.1); border: 1px solid rgba(255, 45, 45, 0.34);
  font-size: 13.5px; line-height: 1.65; display: flex; gap: 10px;
}
.cost-warn .ico { color: var(--red); flex: none; margin-top: 2px; }

.preset { border: 1px solid var(--dark-line); border-radius: var(--r-lg); overflow: hidden; }
.preset li { padding: 18px 20px; border-bottom: 1px solid var(--dark-line); display: grid; gap: 4px; }
.preset li:last-child { border-bottom: 0; }
.preset .top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.preset .nm { font-size: 15px; font-weight: 800; }
.preset .sum { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.preset .items { font-size: 12.5px; color: var(--on-dark2); line-height: 1.6; }
.preset .x { font-size: 12px; color: var(--on-dark3); }

/* --------------------------------------------------------------- 아코디언 */
.accordion { border-top: 2px solid var(--graphite); }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 700; letter-spacing: -0.025em; min-height: 56px;
}
.acc-trigger:hover { color: var(--red-deep); }
.acc-trigger .ico { flex: none; color: var(--muted); transition: transform 0.24s var(--ease); }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); color: var(--red); }
.acc-panel { display: none; padding: 0 2px 22px; font-size: 14.5px; color: var(--ink2); line-height: 1.75; max-width: 76ch; }
.acc-item.open .acc-panel { display: block; }
.acc-panel p + p { margin-top: 10px; }
/* 자바스크립트가 없으면 전부 펼친 완성본으로 보여 준다 */
html:not(.js) .acc-panel { display: block; }
html:not(.js) .acc-trigger .ico { display: none; }

/* --------------------------------------------------------------- 페이지 머리 */
.phead { background: var(--paper2); border-bottom: 1px solid var(--line); }
.phead .wrap { padding-top: 44px; padding-bottom: 40px; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.phead h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.042em; }
.phead .lead { margin-top: 14px; max-width: 68ch; }

/* --------------------------------------------------------------- 탐색면 */
.explore-grid { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 40px; align-items: start; }
.facets { position: sticky; top: 144px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facets h2 { font-size: 14px; font-weight: 800; padding: 14px 16px; background: var(--graphite); color: #fff; letter-spacing: -0.02em; }
.fgroup { border-top: 1px solid var(--line-soft); padding: 14px 16px 16px; }
.fgroup:first-of-type { border-top: 0; }
.fgroup > b { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.fgroup label { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.fgroup input { width: 17px; height: 17px; accent-color: var(--red); margin: 0; flex: none; }
.fgroup label .c { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.facet-foot { padding: 14px 16px; border-top: 1px solid var(--line-soft); background: var(--paper2); }
.facets-nojs { display: none; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 13.5px; color: var(--ink2); background: var(--paper2); }
html:not(.js) .facets-nojs { display: block; }
html:not(.js) .facets { display: none; }

.usetable { width: 100%; font-size: 14px; }
.usetable th, .usetable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.6; }
.usetable thead th { background: var(--graphite); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; border-bottom: 0; }
.usetable tbody th { font-weight: 800; white-space: nowrap; width: 1%; }
.usetable tbody tr:hover { background: var(--paper2); }
.usetable .money { font-weight: 700; white-space: nowrap; }

.usebar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.usebar button {
  min-height: 48px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 700; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 7px;
}
.usebar button:hover { border-color: var(--graphite); }
.usebar button[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.usebar button[aria-pressed="true"] .ico { color: var(--red); }

.listhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.listhead .count { font-size: 14px; font-weight: 700; }
.listhead .count b { color: var(--red-deep); }
.sortsel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sortsel select {
  height: 44px; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 0 12px; font: inherit; font-size: 13.5px; font-weight: 600; background: var(--paper); color: var(--ink);
}
.empty { display: none; padding: 46px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); margin-top: 20px; }
.empty.show { display: block; }
.empty b { display: block; font-size: 17px; font-weight: 800; margin-bottom: 8px; }

/* 상태 정의 카드 */
.states-def { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sdef { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--paper); }
.sdef .tag { margin-bottom: 12px; }
.sdef p { font-size: 13.5px; color: var(--ink2); line-height: 1.68; }
.sdef dl { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.sdef dt { font-weight: 800; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }
.sdef dd { margin-bottom: 8px; color: var(--ink2); }
.sdef dd:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- 표 공통 */
.scrollhint { display: none; }

.tablewrap {
  /* static 이면 넘친 표가 문서 스크롤 폭을 밀어 320·390px 에서 전체가 가로로 밀린다 */
  position: relative;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.dtable { width: 100%; font-size: 14px; min-width: 640px; }
.dtable caption { text-align: left; padding: 16px 18px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.dtable th, .dtable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.62; }
.dtable thead th { background: var(--graphite); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; border-bottom: 0; }
.dtable tbody th { font-weight: 800; white-space: nowrap; }
.dtable tbody tr:last-child th, .dtable tbody tr:last-child td { border-bottom: 0; }
.dtable .grade { display: inline-flex; align-items: center; gap: 8px; }
.dtable .gbadge {
  min-width: 34px; height: 26px; padding: 0 8px; border-radius: var(--r);
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--graphite); color: #fff;
}
.dtable .gbadge.g-a { background: var(--ok); }
.dtable .gbadge.g-b { background: var(--info); }
.dtable .gbadge.g-c { background: var(--warn); }
.dtable .gbadge.g-d { background: var(--grey); }

/* --------------------------------------------------------------- 구성면 */
.build-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 40px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.panel > h2, .panel > h3 { padding: 16px 20px; font-size: 15px; font-weight: 800; border-bottom: 1px solid var(--line-soft); letter-spacing: -0.025em; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-b { padding: 20px; }

.slotgroup { border-bottom: 1px solid var(--line-soft); }
.slotgroup > b { display: block; padding: 12px 20px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.slot { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px 16px; }
.slot .frame { width: 60px; height: 52px; border-radius: var(--r); display: grid; place-items: center; }
.slot .frame img { width: 56px; height: 46px; object-fit: contain; }
.slot .frame .ico { color: var(--muted); }
.slot .nm { font-size: 14px; font-weight: 700; line-height: 1.45; }
.slot .mt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.slot .pr { font-size: 14px; font-weight: 800; white-space: nowrap; text-align: right; }
.slot .rm {
  margin-top: 6px; width: 100%; min-height: 48px; padding: 4px 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.slot .rm:hover { border-color: var(--red); color: var(--red-deep); }
.slot.is-out { opacity: 0.45; }
.slot.is-out .pr { text-decoration: line-through; }

.sumline { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 14px; }
.sumline + .sumline { border-top: 1px solid var(--line-soft); }
.sumline b { font-weight: 700; }
.sumline .v { font-weight: 800; letter-spacing: -0.02em; }
.sumtotal { border-top: 2px solid var(--graphite); margin-top: 6px; padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.sumtotal b { font-size: 15px; font-weight: 800; }
.sumtotal .v { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--red-deep); }
.ratio { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ratio b { color: var(--ink); font-weight: 800; }

/* 호환성 그래프 */
.graph { padding: 12px 12px 4px; }
.graph svg { width: 100%; height: auto; display: block; }
.gnode { cursor: pointer; }
.gnode .gcirc { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; transition: stroke 0.18s var(--ease), fill 0.18s var(--ease); }
.gnode .glabel { font-size: 11px; font-weight: 700; fill: var(--ink2); text-anchor: middle; }
.gnode.fit-full .gcirc { stroke: var(--ok); fill: var(--ok-bg); }
.gnode.fit-part .gcirc { stroke: var(--info); fill: var(--info-bg); }
.gnode.fit-no .gcirc { stroke: var(--red); fill: var(--red-wash); }
.gnode.is-sel .gcirc { stroke-width: 3.5; }
.gnode:hover .gcirc { stroke-width: 3; }
.gedge { stroke-width: 1.6; fill: none; }
.gedge.fit-full { stroke: var(--ok); }
.gedge.fit-part { stroke: var(--info); stroke-dasharray: 5 4; }
.gedge.fit-no { stroke: var(--red); stroke-dasharray: 2 4; }
.glegend { display: flex; flex-wrap: wrap; gap: 16px; padding: 4px 20px 18px; }
.glegend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.glegend .sw { width: 24px; height: 0; border-top-width: 2.5px; border-top-style: solid; }
.glegend .sw-full { border-top-color: var(--ok); }
.glegend .sw-part { border-top-color: var(--info); border-top-style: dashed; }
.glegend .sw-no { border-top-color: var(--red); border-top-style: dotted; }
.gnote { border-top: 1px solid var(--line-soft); padding: 18px 20px; background: var(--paper2); }
.gnote b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.gnote p { font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.gnote .tag { margin-bottom: 10px; }

/* --------------------------------------------------------------- 비교면 */
.cmp { width: 100%; min-width: 760px; font-size: 14px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.6; }
.cmp thead th { background: var(--graphite); color: #fff; vertical-align: bottom; border-bottom: 0; }
.cmp thead .rowlab { width: 190px; }
.cmp thead .frame { background: #fff; border-radius: var(--r); display: grid; place-items: center; padding: 10px; margin-bottom: 14px; }
.cmp thead .frame img { width: 104px; height: 88px; object-fit: contain; }
.cmp thead .maker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--on-dark3); }
.cmp thead .nm { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; margin: 3px 0 6px; }
.cmp thead .pr { display: block; font-size: 15px; font-weight: 800; color: var(--red); }
.cmp tbody th { font-weight: 700; background: var(--paper); white-space: nowrap; }
.cmp tbody th .dl { display: block; font-size: 11px; font-weight: 700; color: var(--red-deep); margin-top: 3px; }
.cmp tbody tr.same th .dl { display: none; }
.cmp .v { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.cmp td small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 3px; line-height: 1.5; }
.cmp tbody tr:hover td { background: var(--paper2); }
.diffonly .cmp tbody tr.same { display: none; }
.togglebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 700; min-height: 44px; }
.switch input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }

/* 화각 비교 */
.fov { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: start; }
.fovstage { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--graphite); }
.fovstage svg { width: 100%; height: auto; display: block; }
.fovframe { fill: none; stroke-width: 2; }
.fovlabel { font-size: 12px; font-weight: 800; }
.fovctl { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fovctl button {
  min-height: 48px; padding: 10px 16px; cursor: pointer; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 700;
}
.fovctl button[aria-pressed="true"] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.fovlist { border-top: 2px solid var(--graphite); }
.fovlist li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.fovlist .mm { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.fovlist .mm i { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.fovlist .ds { font-size: 13.5px; color: var(--ink2); line-height: 1.6; }

/* 판정 카드 */
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vcard { border: 1px solid var(--line); border-top: 4px solid var(--graphite); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 22px; background: var(--paper); }
.vcard h3 { font-size: 17px; font-weight: 800; }
.vcard .sub { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 12px; }
.vcard dl { font-size: 13.5px; line-height: 1.68; }
.vcard dt { font-weight: 800; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.vcard dt:first-child { margin-top: 0; }
.vcard dt .ico { width: 15px; height: 15px; }
.vcard .yes { color: var(--ok); }
.vcard .no { color: var(--red-deep); }
.vcard dd { color: var(--ink2); }

/* 용어 각주 */
.fnote { font-size: 11px; font-weight: 800; color: var(--red-deep); vertical-align: super; margin-left: 2px; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--graphite); }
.terms > div { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.terms dt { font-size: 14.5px; font-weight: 800; }
.terms dd { font-size: 13.5px; color: var(--ink2); line-height: 1.65; margin-top: 3px; }

/* --------------------------------------------------------------- 구매면 */
.stepper { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-bottom: 34px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.stepper li .n {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  border: 1.5px solid var(--line); font-size: 13px; font-weight: 800; background: var(--paper);
}
.stepper li.done { color: var(--ink); }
.stepper li.done .n { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.stepper li.now { color: var(--ink); }
.stepper li.now .n { background: var(--red); border-color: var(--red); color: #fff; }
.stepper .bar { flex: 1 1 40px; min-width: 28px; height: 1.5px; background: var(--line); margin: 0 14px; }

.order-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.72fr); gap: 40px; align-items: start; }
.tabs { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.tabs button {
  flex: 1 1 0; min-height: 48px; padding: 12px; cursor: pointer; background: var(--paper); border: 0;
  font-size: 14.5px; font-weight: 700; color: var(--ink2); border-left: 1px solid var(--line);
}
.tabs button:first-child { border-left: 0; }
.tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.tabpanel { display: block; }
html.js .tabpanel[hidden] { display: none; }

.citem { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.citem:first-of-type { border-top: 2px solid var(--graphite); }
.citem .frame { width: 96px; height: 82px; border-radius: var(--r); display: grid; place-items: center; }
.citem .frame img { width: 88px; height: 74px; object-fit: contain; }
.citem .frame .ico-lg { color: var(--muted); }
.citem .maker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.citem h3 { font-size: 16px; font-weight: 700; margin: 2px 0 8px; }
.citem .opt { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.citem .right { text-align: right; }
.citem .pr { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); margin-top: 10px; }
.qty button { width: 48px; height: 48px; display: grid; place-items: center; background: var(--paper); border: 0; cursor: pointer; }
.qty button:hover { background: var(--paper2); color: var(--red-deep); }
.qty .n { width: 46px; text-align: center; font-size: 14px; font-weight: 800; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 48px; }
.citem .drop {
  margin-top: 8px; min-height: 48px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.citem .drop:hover { border-color: var(--red); color: var(--red-deep); }

.alertline {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r);
  font-size: 13.5px; line-height: 1.62; margin-top: 14px;
}
.alertline .ico { flex: none; margin-top: 2px; }
.alertline b { font-weight: 800; }
.al-warn { background: var(--warn-bg); border: 1px solid #f0d7ac; color: #6f4200; }
.al-warn .ico { color: var(--warn); }
.al-info { background: var(--info-bg); border: 1px solid #c4d5f7; color: #123f8f; }
.al-info .ico { color: var(--info); }
.al-ok { background: var(--ok-bg); border: 1px solid #bfe2cd; color: #0b5c33; }
.al-ok .ico { color: var(--ok); }

.summary { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); position: sticky; top: 144px; overflow: hidden; }
.summary h2 { padding: 16px 20px; font-size: 15px; font-weight: 800; background: var(--graphite); color: #fff; }
.summary .b { padding: 18px 20px 22px; }
.sum-r { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 14px; }
.sum-r .k { color: var(--ink2); }
.sum-r .v { font-weight: 700; letter-spacing: -0.02em; }
.sum-r .v.free { color: var(--ok); font-weight: 800; }
.sum-r .v.minus { color: var(--red-deep); font-weight: 800; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 16px; border-top: 2px solid var(--graphite); }
.sum-total b { font-size: 15px; font-weight: 800; }
.sum-total .v { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: var(--red-deep); }
.sum-vat { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.point { margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--paper2); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.point .v { color: var(--ok); font-weight: 800; }
.summary .btn { margin-top: 16px; }
.paylist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.paylist li { font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 8px; }

.rentbox { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rentbox .rb-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: var(--paper2); border-bottom: 1px solid var(--line-soft); }
.rentbox .rb-h b { font-size: 15px; font-weight: 800; }
.rentbox .rb-b { padding: 18px; }
.rentbox .rl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.rentbox .rl:last-child { border-bottom: 0; }
.rentbox .rl .v { font-weight: 800; }

/* 주문서 폼 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field label .req { color: var(--red-deep); margin-left: 3px; }
.control {
  height: 50px; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 0 14px; font: inherit; font-size: 14.5px; background: var(--paper); color: var(--ink);
  width: 100%; -webkit-appearance: none; appearance: none;
}
textarea.control { height: auto; min-height: 104px; padding: 13px 14px; line-height: 1.6; resize: vertical; }
.control:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(14, 15, 17, 0.08); }
.field.invalid .control { border-color: var(--red); background: var(--red-wash); }
.field .msg { display: none; font-size: 12.5px; font-weight: 700; color: var(--red-deep); align-items: center; gap: 5px; }
.field.invalid .msg { display: flex; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.agree input { width: 20px; height: 20px; accent-color: var(--red); margin: 2px 0 0; flex: none; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }

/* 모바일 하단 구매 Dock */
.dock {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(14, 15, 17, 0.08);
  align-items: center; gap: 14px;
}
.dock .d-sum { flex: 1 1 auto; min-width: 0; }
.dock .d-k { font-size: 11px; font-weight: 700; color: var(--muted); }
.dock .d-v { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; color: var(--red-deep); }
.dock .btn { flex: 0 0 auto; min-width: 132px; }

/* --------------------------------------------------------------- 띠 CTA */
.band { background: var(--graphite); color: var(--on-dark); }
.band .wrap { padding-top: 58px; padding-bottom: 58px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.035em; }
.band p { color: var(--on-dark2); font-size: 15px; margin-top: 10px; max-width: 54ch; }
.band .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- 푸터 */
.ft { background: var(--graphite); color: var(--on-dark2); border-top: 1px solid var(--dark-line); font-size: 13.5px; }
.ft .wrap { padding-top: 56px; padding-bottom: 40px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.72fr)); gap: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--dark-line); }
.ft .brand b { color: #fff; }
.ft .brand span { color: var(--on-dark3); }
.ft-about { margin-top: 16px; line-height: 1.72; max-width: 34ch; }
.ft-tel { display: block; margin-top: 18px; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.ft-hours { font-size: 12.5px; color: var(--on-dark3); margin-top: 4px; }
.ft-col b { display: block; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; margin-bottom: 14px; }
.ft-col a { display: block; padding: 5px 0; }
.ft-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-legal { padding: 26px 0 0; font-size: 12px; line-height: 1.9; color: var(--on-dark3); }
.ft-legal .row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ft-bot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.ft-bot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ft-bot a:hover { color: #fff; }
.ft-disc { margin-top: 12px; font-size: 11.5px; color: var(--on-dark3); }

/* --------------------------------------------------------------- 토스트·맨 위로 */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 200;
  transform: translate(-50%, 18px);
  min-width: 260px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 11px;
  padding: 14px 20px; background: var(--graphite); color: #fff;
  border-radius: var(--r); font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 36px rgba(14, 15, 17, 0.3);
  opacity: 0; visibility: hidden;
  /* 알림일 뿐이므로 아래 제출 버튼의 클릭을 삼키지 않는다 */
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--red); flex: none; }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--graphite); }

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- 등장 */
/* 자바스크립트로만 동작하는 조작기는 JS 가 없을 때 감춘다 — 눌러도 반응 없는 단추를 남기지 않는다.
   감춰도 목록·표·금액·설명은 완성된 상태 그대로 보인다(§06 무JS 완성본). */
html:not(.js) .usebar,
html:not(.js) .sortsel,
html:not(.js) .fovctl,
html:not(.js) .switch,
html:not(.js) .tabs,
html:not(.js) .qty,
html:not(.js) .slot .rm,
html:not(.js) .citem .drop,
html:not(.js) .pick,
html:not(.js) .to-top,
html:not(.js) .toast,
html:not(.js) .menu-btn { display: none; }
/* 서랍을 못 여는 대신 좁은 화면에서도 주요 메뉴 줄을 그대로 펼쳐 둔다 */
html:not(.js) .hd-nav { display: block; }
html:not(.js) .hd-nav .wrap { flex-wrap: wrap; gap: 8px 20px; }

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* =============================================================== 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --gutter: 28px; --section: 80px; }
  .hero .wrap { gap: 34px; }
  .explore-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .cost-grid { gap: 34px; }
  .build-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .order-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr); gap: 28px; }
  .finder { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fcard { padding: 20px 16px; }
  .rail { gap: 12px; }
}

@media (max-width: 1024px) {
  :root { --section: 72px; }
  .hd-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hd-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; }
  .hd-util .util-txt { display: none; }
  .util { padding: 0 8px; }
  .finder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcard { border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
  .fcard:nth-child(-n+2) { border-top: 0; }
  .fcard:nth-child(odd) { border-left: 0; }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promise ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise li { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line-soft); }
  .promise li:nth-child(-n+2) { border-top: 0; }
  .promise li:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line-soft); }
  .cost-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .explore-grid { grid-template-columns: minmax(0, 1fr); }
  .facets { position: static; }
  .build-grid { grid-template-columns: minmax(0, 1fr); }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .states-def { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdicts { grid-template-columns: minmax(0, 1fr); }
  .fov { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .terms { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --section: 60px; }
  /* grid 의 auto 트랙은 input 의 고유 폭을 min-content 로 물고 늘어나 320px 에서 헤더가
     통째로 밀려났다(실측 375px). 이 폭부터는 flex 줄바꿈으로 바꾼다. */
  .hd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .search { order: 3; flex: 1 0 100%; min-width: 0; max-width: none; margin: 0; }
  .hd-util { flex: 0 0 auto; }
  .hd-util .util:not(.util-cart) { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 44px; gap: 28px; }
  .hero-figure { order: -1; }
  .hero-stats { margin-top: 28px; }
  .hero-stats dd { font-size: 20px; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .prow .thumb { width: 92px; height: 78px; }
  .prow .thumb img { width: 84px; height: 69px; }
  .prow .price-col { grid-column: 1 / -1; text-align: left; min-width: 0; padding-top: 4px; border-top: 1px solid var(--line-soft); }
  .prow .row-acts { justify-content: flex-start; }
  .scrollhint { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
  /* 좁은 화면에서 표를 가로로 밀어도 어느 항목인지 잃지 않게 첫 칸을 붙박이로 */
  .cmp thead .rowlab, .cmp tbody th { position: sticky; left: 0; z-index: 2; }
  .cmp thead .rowlab { background: var(--graphite); width: 132px; }
  .cmp tbody th { background: var(--paper); box-shadow: 1px 0 0 var(--line-soft); }
  .cmp th, .cmp td { padding: 12px 14px; }
  .prow { align-items: start; }
  .scrollhint .ico { color: var(--red); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .band .wrap { padding-top: 44px; padding-bottom: 44px; }
  .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .ft-brand { grid-column: 1 / -1; }
  .to-top { display: none; }
  .has-dock .dock { display: flex; }
  .has-dock { padding-bottom: 86px; }
  .slot { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .citem { grid-template-columns: 76px minmax(0, 1fr); }
  .citem .frame { width: 76px; height: 66px; }
  .citem .frame img { width: 70px; height: 60px; }
  .citem .right { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .stepper { gap: 8px 0; }
  .stepper .bar { margin: 0 8px; }
}

@media (max-width: 560px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
  .fcard { border-left: 0; border-top: 1px solid var(--line-soft); }
  .fcard:first-child { border-top: 0; }
  .fcard .why { min-height: 0; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .states-def { grid-template-columns: minmax(0, 1fr); }
  .promise ul { grid-template-columns: minmax(0, 1fr); }
  .promise li:nth-child(even) { padding-left: 0; border-left: 0; }
  .promise li:nth-child(2) { border-top: 1px solid var(--line-soft); }
  .sumtotal, .cost-total { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .hero-stats dd { font-size: 19px; }
  .cost-legend li { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; }
  .cost-legend .cum { grid-column: 2 / -1; text-align: left; min-width: 0; margin-top: -6px; }
  .ft-top { grid-template-columns: minmax(0, 1fr); }
  .ft-bot { flex-direction: column; gap: 12px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand b { font-size: 20px; }
  .btn { padding: 12px 16px; font-size: 14px; }
}

/* 가로 화면(낮은 높이)에서는 붙박이 요소가 화면을 먹지 않게 */
@media (max-height: 480px) and (orientation: landscape) {
  .hd { position: static; }
  .facets, .summary { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .costbar-fill { animation: none !important; transition: none !important; clip-path: none !important; }
}

@media print {
  .hd, .drawer, .scrim, .to-top, .toast, .dock, .band { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .cost, .ft { background: #fff !important; color: #000 !important; }
}
