:root {
  --paper: #f3f0ea;
  --paper-2: #e9e4da;
  --white: #ffffff;
  --ink: #151413;
  --ink-2: #55504a;
  --ink-3: #89837a;
  --line: #dbd5ca;
  --accent: #a8472a;
  --accent-dark: #8c3a21;
  --ok: #1f6b45;
  --err: #b3261e;
  --radius: 14px;
  --wrap: 1160px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Bodoni Moda", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 80px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #33302d; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 234, .93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--accent);
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 550; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
h2 { font-size: clamp(27px, 3.5vw, 40px); line-height: 1.24; letter-spacing: -.03em; font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.wordmark {
  display: block; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(80px, 11vw, 148px); line-height: .9; letter-spacing: -.03em;
}
.hero-model { display: block; margin-top: 18px; font-size: clamp(25px, 3.2vw, 38px); }
.lead { margin-top: 22px; max-width: 31em; font-size: 18px; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; gap: 36px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero-facts dd { font-size: 17px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; }

.stage { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 28px 28px 22px; }
.stage-frame { position: relative; aspect-ratio: 1 / 1; perspective: 900px; --rx: 0deg; --ry: 0deg; --sx: 0%; }
.stage-frame .photo-slot {
  position: absolute; inset: 0; opacity: 0;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity .35s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
  pointer-events: none;   /* 기울어진 사진 틀이 아래 색상 버튼의 클릭을 가로채지 않도록 */
}
.stage-frame .photo-slot.is-active { opacity: 1; }
/* 마우스를 따라 움직이는 동안에는 지연 없이 바로 반응 */
.stage-frame.is-tilting .photo-slot { transition: opacity .35s ease, transform .08s linear; }
/* 바닥 그림자: 기울기 반대 방향으로 살짝 이동해 입체감을 더한다 */
.stage-frame::after {
  content: ""; position: absolute; left: 14%; right: 14%; top: 79.5%; height: 5.5%;
  background: radial-gradient(ellipse at center, rgba(21, 20, 19, .2) 0%, rgba(21, 20, 19, .08) 45%, rgba(21, 20, 19, 0) 72%);
  transform: translateX(var(--sx));
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.stage-frame.is-tilting::after { transition: transform .08s linear; }
.stage-frame:has(.photo-slot.is-empty)::after { display: none; }

/* 360도 회전 보기: config의 product.spin에 사진이 있는 색상에서만 켜진다 */
.stage-frame.is-spin { cursor: ew-resize; touch-action: pan-y; border-radius: 12px; }
.stage-frame.is-spin::after { display: none; }
.stage-frame.is-spin .photo-slot { transform: none; }
.photo-slot.has-spin { border: 0; background: none; padding: 0; }
.photo-slot.has-spin > :not(.spin-set) { display: none; }
.spin-set { position: absolute; inset: 0; overflow: hidden; }
.spin-set img { position: absolute; inset: 0; visibility: hidden; -webkit-user-drag: none; user-select: none; }
.spin-set img.is-on { visibility: visible; }
/* box 좌표가 있는 사진: 크기와 위치를 스크립트가 계산해 모든 각도에서 제품 크기·바닥 높이를 맞춘다 */
.spin-set img.is-placed { inset: auto; left: 50%; width: auto; max-width: none; object-fit: fill; }
.spin-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.spin-btn {
  flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid #c9c2b6; background: var(--white); font-size: 18px; line-height: 1; cursor: pointer;
}
.spin-btn:hover { border-color: var(--ink); }
.spin-hint { font-size: 14px; color: var(--ink-2); text-align: center; }
.spin-note { display: block; margin-top: 2px; font-size: 12.5px; }
.stage-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.stage-label { font-size: 14px; color: var(--ink-2); }
.stage-label strong { color: var(--ink); font-weight: 750; }
.swatches { display: flex; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 650; cursor: pointer;
}
.swatch::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #bdb6aa; background: #fff; }
.swatch[data-color="black"]::before { background: #1b1a19; border-color: #1b1a19; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Colour cards ---------- */
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.color-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.color-card figure { aspect-ratio: 4 / 3; padding: 28px; }
.color-card figure img { width: 100%; height: 100%; object-fit: contain; }
.color-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px 26px; border-top: 1px solid var(--line); }
.color-body h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 800; }
.color-body p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }

/* ---------- Dark feature band ---------- */
.band { background: var(--ink); color: var(--paper); }
.band .eyebrow { color: #e0906f; }
.band-head { max-width: 640px; margin-bottom: 40px; }
.band-head p:not(.eyebrow) { margin-top: 14px; color: #c4beb4; font-size: 17px; }
.display-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }

/* 제품 전체 사진 + 디스플레이 위치 표시 + 확대 */
.spot { background: #fff; color: var(--ink); border-radius: 22px; padding: 22px 22px 20px; }
.spot-frame { position: relative; aspect-ratio: 3 / 2; }
.spot-frame .photo-slot { position: absolute; inset: 0; }
.mark {
  position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 0 5px rgba(168, 71, 42, .16);
  pointer-events: none;
}
.zoom-row { display: flex; align-items: center; gap: 20px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.lens {
  flex: none; width: 168px; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--accent); background-color: #111; background-repeat: no-repeat;
}
.zoom-text { font-size: 15px; color: var(--ink-2); }
.zoom-text strong { display: block; margin-bottom: 2px; font-size: 17px; color: var(--ink); }

.points li { padding: 24px 0; border-top: 1px solid rgba(243, 240, 234, .18); }
.points li:last-child { border-bottom: 1px solid rgba(243, 240, 234, .18); }
.points h3 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.points p { margin-top: 6px; color: #c4beb4; font-size: 16px; }

.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.also li { padding: 22px 24px; border: 1px solid rgba(243, 240, 234, .18); border-radius: 16px; }
.also h3 { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.also p { margin-top: 6px; color: #c4beb4; font-size: 15px; }

/* ---------- Service steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 28px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--display); font-style: italic; font-size: 34px; line-height: 1; color: var(--accent); margin-bottom: 18px;
}
.steps h3 { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- Specs ---------- */
.spec-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.spec-list { border-top: 2px solid var(--ink); }
.spec-list div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink-2); font-size: 15px; }
.spec-list dd { font-weight: 650; }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.form-aside h2 { margin-bottom: 14px; }
.form-aside > p { color: var(--ink-2); font-size: 17px; }
.aside-list { margin-top: 28px; border-top: 1px solid var(--line); }
.aside-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.aside-list strong { display: block; color: var(--ink); font-size: 16px; }
.contact-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.contact-line:hover { color: var(--accent); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 34px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 650; padding: 0; }
.req { color: var(--accent); margin-left: 2px; }
.opt { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1px solid #c9c2b6; border-radius: 10px; font-size: 16px;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #a39c92; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border: 1px solid #c9c2b6; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent { grid-column: 1 / -1; margin-top: 6px; padding: 16px 18px; background: var(--paper); border-radius: 12px; font-size: 14px; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 650; font-size: 15px; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.consent details { margin-top: 10px; color: var(--ink-2); }
.consent summary { cursor: pointer; font-weight: 600; width: fit-content; }
.consent dl { margin-top: 10px; display: grid; grid-template-columns: 84px 1fr; gap: 6px 12px; }
.consent dt { font-weight: 650; color: var(--ink); }
.consent .fine { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.form-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.form-status { font-size: 14.5px; color: var(--err); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.result { text-align: center; padding: 28px 8px; }
.result-mark { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.result h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 800; }
.result p { margin-top: 10px; color: var(--ink-2); }
.result-no { display: inline-block; margin: 22px 0 6px; padding: 14px 26px; background: var(--paper); border: 1px dashed #b9b1a4; border-radius: 12px; font-size: 22px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.result .btn { margin-top: 22px; }

/* ---------- CTA strip ---------- */
.strip { background: var(--accent); color: #fff; padding: 52px 0; }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.strip h2 { font-size: clamp(22px, 2.6vw, 30px); }
.strip p { margin-top: 6px; opacity: .9; }

/* ---------- Support page ---------- */
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.14; letter-spacing: -.035em; font-weight: 800; }
.page-hero .lead { max-width: 36em; }
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq-body { padding: 0 4px 22px; color: var(--ink-2); }
.faq-body li { position: relative; padding-left: 16px; margin-top: 6px; }
.faq-body li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.faq-body .then { margin-top: 12px; font-weight: 650; color: var(--ink); }
.caution { max-width: 860px; margin-top: 28px; padding: 18px 20px; background: #fbeee9; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; font-size: 15px; }
.caution strong { display: block; margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b3a9; padding: 52px 0 40px; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { color: var(--paper); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.footer-brand + p { margin-top: 6px; }
.bizinfo { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; max-width: 640px; }
.bizinfo span b { color: #e2ddd3; font-weight: 600; margin-right: 6px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; color: #e2ddd3; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(243, 240, 234, .14); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .display-grid, .spec-grid, .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .also { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .btn { margin-top: 16px; min-height: 48px; font-size: 16px; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 36px 0 60px; }
  .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-facts { gap: 20px; justify-content: space-between; }
  .hero-facts dd { font-size: 15px; }
  .stage { padding: 18px 18px 16px; border-radius: 20px; }
  .stage-bar { flex-direction: column; align-items: stretch; }
  .swatches { display: grid; grid-template-columns: 1fr 1fr; }
  .swatch { justify-content: center; }
  .color-grid, .steps, .fields { grid-template-columns: 1fr; }
  .spot { padding: 14px 14px 16px; border-radius: 18px; }
  .zoom-row { gap: 14px; }
  .lens { width: 116px; }
  .zoom-text { font-size: 14.5px; }
  .zoom-text strong { font-size: 16px; }
  .color-body { flex-direction: column; align-items: stretch; }
  .form-card { padding: 22px 18px; border-radius: 18px; }
  .spec-list div { grid-template-columns: 120px 1fr; }
  .form-actions .btn { width: 100%; }
  .strip-row .btn { width: 100%; }
  .brand-tag { display: none; }
}
/* ---------- Photo slots (config-driven) ---------- */
.photo-slot { display: grid; place-items: center; width: 100%; height: 100%; }
.photo-slot img { width: 100%; height: 100%; object-fit: contain; }
.photo-slot.is-empty {
  border: 1px dashed #c2baad; border-radius: 14px; background: var(--paper);
  color: var(--ink-2); font-size: 14.5px; font-weight: 650; text-align: center; padding: 16px;
}
.photo-slot.is-empty[data-photo="black"] { background: #1b1a19; border-color: #1b1a19; color: #cfc8bc; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
