/* InteriorQ 판매 페이지 첫 화면(index.html) 모양. 문구는 src/features/legal/siteHome.ts, 틀은 legalRender.ts siteHomeHtml.
   규칙: 색은 아래 토큰만(강조색 하나), 모서리는 상자 16px · 단추와 상자 안 그림 10px, 움직임은 transform·opacity만. */
@font-face { font-family: "Pretendard"; src: url("fonts/PretendardVariable.woff2") format("woff2"); font-weight: 45 920; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f4f6f9; --surface: #ffffff; --tint: #e9edf3; --text: #111a26; --muted: #566273; --line: #dce2ea;
  --accent: #1f6fd1; --accent-hover: #185db5; --accent-ink: #1a5cb0; --on-accent: #ffffff;
  --shadow: 0 30px 70px -32px rgb(22 46 92 / .38);
  /* 앱 화면(어두운 도면·실사 사진)을 담는 칸은 밝은 화면에서도 어둡게 */
  --ink-bg: #111315; --ink-text: #e8edf4; --ink-muted: #9aa7b8; --ink-line: #262b33;
  --r-box: 16px; --r-ctl: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f18; --surface: #101826; --tint: #0d1420; --text: #e8edf4; --muted: #97a5b8; --line: #1f2c3f;
    --accent-ink: #77b7ff;
    --shadow: 0 30px 70px -32px rgb(0 0 0 / .75);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; font-synthesis: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
h1 { font-size: clamp(2.1rem, 3.7vw, 3.2rem); font-weight: 780; line-height: 1.22; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 740; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* 그냥 할 때와 InteriorQ로 할 때(2026-11-30): 줄마다 제목 · 왼쪽 옅은 '그냥 할 때' · 오른쪽 강조 테두리 'InteriorQ로' · 근거 작은 글 */
.versus { padding-top: clamp(40px, 5vw, 72px); }
.versus-list { display: grid; gap: 16px; }
.versus-row { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
.versus-row h3 { margin-bottom: 14px; }
.versus-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.versus-before, .versus-after { padding: 16px 18px; border-radius: var(--r-ctl); }
.versus-before { background: var(--tint); color: var(--muted); }
.versus-after { background: var(--surface); border: 1px solid var(--accent-ink); box-shadow: inset 4px 0 0 var(--accent-ink); }
.versus-tag { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.versus-after .versus-tag { color: var(--accent-ink); }
.versus-pair p { font-size: 1rem; }
.versus-basis { margin-top: 12px; color: var(--muted); font-size: .86rem; }
@media (max-width: 720px) {
  .versus-row { padding: 20px 18px; }
  .versus-pair { grid-template-columns: 1fr; }
}

/* 단추: 내려받기(채움) · 보조(테두리) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: transparent; border-color: var(--muted); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* 위 메뉴 */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { color: var(--text); font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
/* 이름의 Q는 강조색(Q = Quantity → Quote, 2026-11-29) */
.brand-q { color: var(--accent-ink); }
/* 첫 화면 첫 줄 끝의 Q 뜻: 둥근 테두리 칩(좁은 화면에선 다음 줄로 통째로) */
.q-mean { display: inline-block; margin-left: 8px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; font-weight: 650; font-size: .88em; white-space: nowrap; }
/* 'InteriorQ' 왼쪽 회사 로고: 가는 세로선으로 나누고, 메뉴 사이 간격(28px)보다 붙인다 */
.nav-company { display: flex; align-items: center; margin-right: -12px; padding-right: 16px; border-right: 1px solid var(--line); }
.nav-company img { display: block; width: auto; height: 40px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
/* 로그인·회원가입: 메뉴 줄 밖이라 좁은 화면에서도 보인다 */
.nav-account { display: flex; align-items: center; gap: 16px; }
.nav-login { color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-login:hover { color: var(--text); }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.eyebrow { margin-bottom: 14px; color: var(--accent-ink); font-size: .92rem; font-weight: 700; }
.lead { margin-top: 18px; max-width: 30em; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* 첫 화면 스크롤 장면(film.js): 검은 무대(공정 재생 그림 바탕이 검정이라 무대와 이어진다)가 화면에 붙어 있는 동안
   스크롤바로 견본 아파트가 지어진다. 스크립트가 없으면(.film-on 없음) 마지막 장면 그림과 마디 글이 차례로 보인다. */
/* 위 메뉴(64px + 선 1px) 밑까지 당겨 맨 위에서도 무대가 화면을 꽉 채운다(메뉴는 무대 위에 떠 있다). */
.film { --accent-ink: #77b7ff; --film-gutter: clamp(16px, 4vw, 40px); background: #000; color: var(--ink-text); margin-top: -65px; padding: calc(65px + clamp(36px, 6vh, 72px)) 0 clamp(36px, 6vh, 72px); }
.film-pin { width: min(1200px, 100% - 48px); margin-inline: auto; display: grid; gap: 28px; }
.film-poster { width: 100%; height: auto; border-radius: var(--r-box); }
.film-canvas, .film-readout, .film-rail, .film-cue { display: none; }
.film-chapters { display: grid; gap: 28px; }
.film h1, .film h2 { color: var(--ink-text); }
.film .lead, .film-ch p { color: var(--ink-muted); }
.film-ch > p:not(.eyebrow, .lead, .film-when, .film-note, .film-cue) { margin-top: 12px; font-size: 1.05rem; line-height: 1.65; }
.film-when { margin-bottom: 10px; color: var(--accent-ink); font-size: .92rem; font-weight: 700; }
.film-note { margin-top: 14px; font-size: .9rem; }
.film .btn-ghost { color: var(--ink-text); border-color: var(--ink-line); }
.film .btn-ghost:hover { border-color: var(--ink-muted); }

.film.film-on { height: 760svh; padding: 0; }
.film-on .film-pin { position: sticky; top: 0; width: auto; height: 100svh; display: block; overflow: hidden; }
.film-on .film-poster { display: none; }
.film-on .film-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.film-on .film-readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; position: absolute; z-index: 1; left: var(--film-gutter); top: 84px; color: var(--ink-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.film-readout b { color: var(--ink-text); font-size: 1.5rem; font-weight: 760; letter-spacing: -.01em; }
.film-phase { color: var(--accent-ink); font-weight: 700; font-size: .95rem; }
.film-on .film-rail { display: block; position: absolute; left: var(--film-gutter); right: var(--film-gutter); bottom: clamp(16px, 3svh, 28px); height: 2px; background: var(--ink-line); }
.film-rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.film-rail span { position: absolute; top: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #000; border: 1px solid var(--ink-muted); }
.film-rail span.is-on { background: var(--accent); border-color: var(--accent); }
.film-on .film-chapters { display: block; position: absolute; z-index: 1; left: var(--film-gutter); bottom: clamp(52px, 9svh, 96px); width: min(32rem, 34vw); }
/* 지금 마디 하나만. 숨은 마디의 단추는 Tab으로도 가지 않게(visibility는 사라진 뒤에) */
.film-on .film-ch { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.film-on .film-ch.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.film-on .film-cue { display: block; margin-top: 22px; color: var(--ink-muted); font-size: .88rem; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .film-on .film-readout { top: 76px; }
  .film-on .film-chapters { left: 16px; right: 16px; width: auto; bottom: 52px; }
  .film-on h1 { font-size: clamp(1.8rem, 7.6vw, 2.4rem); }
  .film-on .lead { margin-top: 12px; font-size: 1rem; }
  .film-on .actions { margin-top: 18px; }
  .film-on .film-cue { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .film-on .film-ch { transition: none; transform: none; } }

/* 숫자 줄 */
.stats { padding: 8px 0 clamp(8px, 2vw, 24px); }
.stats-lead { max-width: 34em; font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 600; line-height: 1.5; letter-spacing: -.015em; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--line); }
.stat { padding: 22px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 780; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-l { display: block; margin-top: 8px; font-weight: 650; }
.stat-s { display: block; color: var(--muted); font-size: .93rem; }

/* 기능: 크기가 다른 여섯 칸 */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
.cell-copy { padding: 26px 26px 0; }
.cell-copy p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.cell figure { margin-top: auto; padding: 22px 26px 0; }
.cell figure img { width: 100%; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-ctl) var(--r-ctl) 0 0; object-fit: cover; object-position: left top; }
.cell-plan { grid-column: span 7; grid-row: span 2; }
.cell-quantity, .cell-view3d, .cell-estimate { grid-column: span 5; }
.cell-schedule { grid-column: span 7; }
.cell-sheets { grid-column: span 12; flex-direction: row; align-items: stretch; }
/* 견적·공정표 칸: 글 아래 남는 높이를 그림이 채운다(옆 칸과 높이를 맞출 때 빈 틈이 생기지 않게) */
.cell-estimate figure, .cell-schedule figure { flex: 1; display: flex; }
.cell-estimate figure img, .cell-schedule figure img { height: 100%; min-height: 260px; }
.cell-sheets .cell-copy { flex: 0 0 38%; padding-bottom: 26px; align-self: center; }
.cell-sheets figure { flex: 1; margin-top: 0; padding: 26px 0 0 8px; }
.cell-sheets figure img { aspect-ratio: 16 / 8; border-right: 0; border-radius: var(--r-ctl) 0 0 0; }
/* 앱 화면을 담는 어두운 칸: 그림 바탕과 칸 바탕을 맞춘다 */
.cell-plan, .cell-view3d { border-color: var(--ink-line); background: var(--ink-bg); color: var(--ink-text); }
.cell-plan .cell-copy p, .cell-view3d .cell-copy p { color: var(--ink-muted); }
.cell-plan figure { flex: 1; display: flex; align-items: center; justify-content: center; margin-top: 0; padding: 8px 12px 12px; }
.cell-plan figure img, .cell-view3d figure img { border: 0; border-radius: 0; object-fit: contain; }
.cell-view3d { background: #05070a; }
.cell-view3d figure { padding: 0 8px 8px; }
.cell-view3d figure img { mix-blend-mode: screen; }
.mini { width: calc(100% - 52px); margin: 20px 26px 24px; border-collapse: collapse; font-size: .98rem; font-variant-numeric: tabular-nums; }
.mini caption { padding-bottom: 6px; color: var(--muted); font-size: .85rem; text-align: left; }
.mini td { padding: 7px 0; border-top: 1px solid var(--line); }
.mini td:last-child { font-weight: 650; text-align: right; }

/* 낮과 밤: 같은 자리 두 장 */
.pair { padding: 0 0 clamp(56px, 7vw, 96px); }
.pair-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair-row img { width: 100%; border-radius: var(--r-box); }
.pair-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 18px; }
.pair-foot p { max-width: 40em; color: var(--muted); }
.pair-state { display: none; }

/* 포트폴리오: 어두운 띠에 실사 사진 아홉 장(사진이 어두워 앱 화면 칸과 같은 바탕에 놓는다) */
.works { --accent-ink: #77b7ff; padding: clamp(56px, 7vw, 96px) 0; border-block: 1px solid var(--ink-line); background: var(--ink-bg); color: var(--ink-text); }
.works .sec-head { margin-bottom: 22px; }
.works .sec-head p { color: var(--ink-muted); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: clamp(28px, 4vw, 44px); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 650; letter-spacing: -.015em; }
.kinds li:not(:last-child) { margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--ink-line); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
.work { min-width: 0; }
.work figure { overflow: hidden; border-radius: var(--r-box); background: #000; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-kind { margin-top: 16px; color: var(--accent-ink); font-size: .88rem; font-weight: 700; }
.work h3 { margin-top: 2px; }
.work h3 + p { margin-top: 4px; color: var(--ink-muted); font-size: .97rem; }
.works-note { margin-top: clamp(28px, 4vw, 44px); color: var(--ink-muted); font-size: .95rem; }

/* 작업 흐름: 네 단계 */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.flow li { position: relative; padding: 26px 28px 0 0; counter-increment: step; }
.flow li::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 3px; background: var(--accent); }
.flow h3::before { content: counter(step); display: block; margin-bottom: 14px; color: var(--muted); font-size: 2.6rem; font-weight: 300; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.flow p { margin-top: 6px; color: var(--muted); }

/* 견본: 큰 숫자 넷과 견적서 두 장 */
.sample-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sample-copy > p { margin-top: 14px; max-width: 34em; color: var(--muted); font-size: 1.08rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.tiles li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
.tiles strong { display: block; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 780; line-height: 1.15; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tiles small { margin-left: 5px; color: var(--muted); font-size: .42em; font-weight: 650; letter-spacing: -.01em; }
.tiles li > span { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; }
.docs { position: relative; aspect-ratio: 10 / 11; }
.docs img { position: absolute; width: 64%; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; box-shadow: var(--shadow); }
.docs img:first-child { top: 0; left: 0; }
.docs img:last-child { right: 0; bottom: 0; }

/* 문서: 옆으로 늘어선 종이들(기본은 옆으로 굴리기 — 스크롤 연동이 되면 아래 '움직임'에서 화면에 붙여 지나가게) */
.papers { padding: clamp(56px, 7vw, 96px) 0; }
.papers-view { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; }
.papers-track { display: flex; gap: 20px; width: max-content; }
.paper { width: min(78vw, 460px); scroll-snap-align: start; }
/* 지나가는 종이가 떠오르며 커지는 자리(home.js가 translate·scale을 쓴다) — 위로 뜬 만큼 잘리지 않게 */
.papers-view { padding-top: 20px; }
.paper figure { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; }
.paper figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.paper h3 { margin-top: 18px; }
.paper-count { color: var(--accent-ink); font-size: .92rem; font-weight: 650; }
.paper p:last-child { margin-top: 6px; color: var(--muted); font-size: 1rem; }


/* 크게 싣는 기능(넷): 글과 그림이 번갈아(짝수 줄은 그림이 왼쪽). 종이는 세로로 길어 반반, 앱 화면은 그림을 넓게 */
.picks { display: grid; gap: clamp(48px, 6vw, 88px); }
.pick { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pick:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.pick:nth-child(even) .pick-copy { order: 2; }
.pick-option { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.pick-when { color: var(--accent-ink); font-size: .92rem; font-weight: 700; }
.pick h3 { margin-top: 4px; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.02em; }
.pick h3 ~ p { margin-top: 12px; color: var(--muted); }
.pick .pick-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; }
.pick figure { display: grid; gap: 12px; }
.pick figure img { width: 100%; border: 1px solid var(--ink-line); border-radius: var(--r-ctl); }
.pick-option figure img { max-width: 560px; margin-inline: auto; border-color: var(--line); background: #fff; box-shadow: var(--shadow); }
/* 고객 제안서는 세로로 긴 휴대폰 화면 그림이라 폭을 줄여 카드가 너무 길어지지 않게(2026-11-30) */
.pick-proposal figure img:first-child { max-width: 460px; margin-inline: auto; border-color: var(--line); box-shadow: var(--shadow); }

/* 그 밖의 기능: 네 묶음(묶음 이름 아래 굵은 선, 줄마다 가는 선) */
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); }
.more-group h3 { padding-bottom: 14px; border-bottom: 2px solid var(--text); font-size: 1.05rem; }
.more-group dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.more-group dt { font-weight: 680; letter-spacing: -.015em; }
.more-group dd { margin-top: 3px; color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* 근거: 왼쪽 제목, 오른쪽 네 줄 */
.trust-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); }
.trust-in header { position: sticky; top: 96px; align-self: start; }
.trust-in header p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.trust-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.trust-list dt { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
.trust-list dd { margin-top: 6px; color: var(--muted); }

/* Claude: 바탕을 깐 띠와 예문 */
.claude { border-block: 1px solid var(--line); background: var(--tint); }
.claude .sec-head { margin-bottom: 28px; }
.prompts { display: grid; gap: 18px; max-width: 46em; }
.prompts li { padding-left: 22px; border-left: 3px solid var(--accent); font-size: clamp(1.08rem, 1.5vw, 1.3rem); font-weight: 560; line-height: 1.55; letter-spacing: -.015em; }
.claude-basis { max-width: 46em; margin-top: 26px; color: var(--muted); font-size: .86rem; }

/* 가격과 내려받기: 둘로 나눈 한 상자 */
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
.buy > div { padding: clamp(24px, 3.5vw, 44px); }
.buy > div + div { border-left: 1px solid var(--line); }
.buy h3 { margin-bottom: 12px; color: var(--muted); font-size: .95rem; font-weight: 650; }
.buy .big { font-size: clamp(1.25rem, 2.1vw, 1.65rem); font-weight: 740; line-height: 1.45; letter-spacing: -.02em; }
.buy .note { margin-top: 14px; color: var(--muted); font-size: .97rem; }
/* 가격: 일당 비교 한 줄(크게) → 월·1년 두 칸 → 하루 값 → 체험·PC → 비교 기준(작게) */
.price-hook { font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 780; line-height: 1.35; letter-spacing: -.025em; text-wrap: balance; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.plans li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.plans li:last-child { border-color: var(--accent); }
.plans span { color: var(--muted); font-size: .9rem; font-weight: 650; }
.plans strong { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plans small { color: var(--muted); font-size: .85rem; }
.plans li:last-child small { color: var(--accent-ink); font-weight: 650; }
.price-day { margin-top: 16px; font-weight: 650; }
.buy .price-basis { font-size: .82rem; line-height: 1.6; }

/* 자주 묻는 질문 */
.faq-list { max-width: 780px; }
.faq-in h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 1.1rem; font-weight: 680; letter-spacing: -.015em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: var(--muted); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 44em; padding: 0 0 22px; color: var(--muted); }
.faq-more { margin-top: 20px; font-size: .97rem; }

/* 맺음 */
.closing { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); text-align: center; }
.closing p { max-width: 32em; margin: 14px auto 28px; color: var(--muted); font-size: 1.08rem; text-wrap: balance; }

/* 바닥글(판매자 정보·약관 — legalRender siteFooterHtml) */
.iq-legal-footer { width: min(1200px, 100% - 48px); margin: 0 auto; padding: 36px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.iq-legal-footer .iq-company-logo img { display: block; width: auto; height: 56px; margin: 0 0 14px; }
.iq-legal-footer dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0 0 12px; }
.iq-legal-footer dt { font-weight: 650; }
.iq-legal-footer dd { margin: 0; }
.iq-legal-footer p { margin: 6px 0 0; }

/* 좁은 화면: 한 줄로 */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-account { margin-left: auto; }
  .sample-in, .trust-in, .pick, .pick:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .pick:nth-child(even) .pick-copy { order: 0; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-in header { position: static; }
  .cell-plan, .cell-quantity, .cell-view3d, .cell-estimate, .cell-schedule, .cell-sheets { grid-column: span 12; grid-row: auto; }
  .cell-sheets { flex-direction: column; }
  .cell-sheets .cell-copy { flex: none; padding-bottom: 0; align-self: stretch; }
  .cell-sheets figure { padding: 22px 26px 0; }
  .cell-sheets figure img { border-right: 1px solid var(--line); border-radius: var(--r-ctl) var(--r-ctl) 0 0; }
  .stats-row, .flow, .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 두 칸일 때 홀수 개(포트폴리오 아홉 장)면 마지막 한 장이 왼쪽 반 칸에 혼자 남는다 — 가운데로(2026-11-30 리뷰) */
  .works-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .stat { padding-bottom: 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .flow li { padding-bottom: 28px; }
  .docs { max-width: 520px; }
  .buy { grid-template-columns: minmax(0, 1fr); }
  .buy > div + div { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-company { margin-right: -4px; padding-right: 10px; }
  .q-mean { margin: 6px 0 0; }
  .nav-company img { height: 24px; }
  .nav-in { gap: 14px; }
  .nav-signup { display: none; }
  .wrap, .film-pin, .iq-legal-footer { width: min(1200px, 100% - 32px); }
  .pair-row, .flow, .works-grid, .more-grid { grid-template-columns: minmax(0, 1fr); }
  .works-grid > li:last-child:nth-child(odd) { justify-self: stretch; width: auto; }
  .kinds li:not(:last-child) { margin-right: 12px; padding-right: 12px; }
  .tiles { gap: 10px; }
  .tiles li { padding: 16px; }
}

/* ── 움직임 ───────────────────────────────────────────────────────────────
   모두 transform·opacity만 움직이고, 움직임을 줄인 설정이면 아무것도 움직이지 않는다(위의 가만한 모양 그대로).
   스크롤 연동은 CSS(animation-timeline)로 — 스크롤 이벤트를 듣지 않는다. 지원하지 않는 브라우저는 home.js가
   화면에 들어올 때 한 번 떠오르게만 한다. 효과마다 까닭:
   · 진행 선(위 메뉴 아래): 긴 페이지에서 지금 위치
   · 첫 화면 스크롤 장면: 스크롤바로 견본 아파트가 지어짐(film.js — 스크롤하는 만큼만 움직여 움직임을 줄인 설정에서도 남고, 마디 글의 전환만 끈다)
   · 낮 → 밤: 같은 자리에 조명을 켠 것(이 구역이 말하려는 것 자체)
   · 포트폴리오 사진이 왼쪽부터 차례로 도착·살짝 크게 들어와 제자리로: 한 장씩 보게
   · 네 단계 선이 그려짐: 순서
   · 견적서 두 장이 겹쳐 올라옴·칸 그림이 가라앉음: 결과물이 나옴
   · 문서들이 옆으로 지나감: 한 자료에서 문서가 줄줄이 나옴
   · 영상(video[data-autoplay]이 생기면): 화면에 절반 넘게 보일 때만 재생(home.js), 움직임을 줄인 설정이면 누를 때만 */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-far { from { opacity: 0; transform: translateY(64px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.09); } to { transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes doc-back { from { opacity: 0; transform: translateY(70px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes papers-pan { to { transform: translateX(calc(-100% + 100cqw)); } }
@keyframes doc-front { from { opacity: 0; transform: translateY(170px) rotate(3deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    /* 진행 선 */
    .nav::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--accent); transform-origin: left; animation: grow linear both; animation-timeline: scroll(root); }

    /* 화면에 들어올 때: 떠오르기(옆 칸은 더 멀리서 — 차례로 도착) */
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .bento .cell:nth-child(even) { animation-name: rise-far; }
    .trust-list > div:nth-child(even) { animation-name: rise-far; }
    .prompts li { animation-name: slide; animation-range: entry 0% entry 90%; }
    .prompts li:nth-child(2) { animation-range: entry 20% entry 120%; }
    .prompts li:nth-child(3) { animation-range: entry 40% entry 150%; }
    .prompts li:nth-child(4) { animation-range: entry 60% entry 180%; }
    /* 기능 칸의 그림: 살짝 크게 들어와 제자리로 */
    .cell figure img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }

    /* 낮 → 밤: 이 구역을 지나는 동안 사진이 화면에 붙어 있고, 밤 사진이 위에 서서히 나타난다 */
    .pair { height: 230vh; padding: 0; view-timeline: --pair block; view-timeline-inset: 0; }
    .pair-stage { position: sticky; top: 88px; }
    .pair-row, .pair-foot { width: min(100%, (100svh - 230px) * 1.5); margin-inline: auto; }
    .pair-row { grid-template-columns: minmax(0, 1fr); }
    .pair-row img { grid-area: 1 / 1; }
    .pair-row img:last-child { animation: fade linear both; animation-timeline: --pair; animation-range: contain 12% contain 72%; }
    .pair-state { display: grid; flex: none; color: var(--text); font-weight: 700; }
    .pair-state span { grid-area: 1 / 1; text-align: right; animation: fade-out linear both; animation-timeline: --pair; animation-range: contain 30% contain 54%; }
    .pair-state span:last-child { animation-name: fade; }

    /* 포트폴리오: 낮·밤 무대가 화면에 붙었다 떨어지는 자리라 그 아래 여백을 띠 위에 따로 준다. 사진은 줄 안에서 왼쪽부터 차례로 */
    .pair + .works { margin-top: clamp(40px, 6vw, 80px); }
    .work:nth-child(3n + 2) { animation-range: entry 12% entry 75%; }
    .work:nth-child(3n) { animation-range: entry 24% entry 95%; }
    .work img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }

    /* 네 단계: 선이 왼쪽에서 그려지고 단계가 차례로 */
    .flow { position: relative; view-timeline: --flow block; }
    .flow::after { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 3px; background: var(--accent); transform-origin: left; animation: grow linear both; animation-timeline: --flow; animation-range: entry 40% cover 48%; }
    .flow li { animation-timeline: --flow; }
    .flow li:nth-child(1) { animation-range: entry 20% entry 90%; }
    .flow li:nth-child(2) { animation-range: entry 50% cover 28%; }
    .flow li:nth-child(3) { animation-range: entry 80% cover 36%; }
    .flow li:nth-child(4) { animation-range: cover 24% cover 44%; }

    /* 견본: 숫자 칸은 톡 나타나고, 견적서 두 장은 아래에서 겹쳐 올라온다 */
    .tiles li { animation: pop linear both; animation-timeline: view(); animation-range: entry 0% entry 110%; }
    .tiles li:nth-child(even) { animation-range: entry 30% entry 150%; }
    .docs.reveal { animation: none; }
    .docs { view-timeline: --docs block; }
    .docs img { animation: doc-back linear both; animation-timeline: --docs; animation-range: entry 5% cover 38%; }
    .docs img:last-child { animation-name: doc-front; animation-range: entry 25% cover 50%; }

    /* 문서: 이 구역을 지나는 동안 화면에 붙어 있고, 종이들이 오른쪽에서 왼쪽으로 지나간다(화면이 너무 낮으면 그냥 옆으로 굴리기) */
    @media (min-height: 640px) {
      /* view-timeline-inset 0: 기본값(auto)은 html의 scroll-padding-top만큼 범위를 줄여, 붙기 전에 벌써 움직이기 시작한다 */
      .papers { height: 320vh; padding: 0; overflow-x: clip; view-timeline: --papers block; view-timeline-inset: 0; }
      .papers-stage { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; height: 100svh; padding-top: 64px; }
      .papers .sec-head { margin-bottom: clamp(20px, 3vh, 40px); }
      .papers-view { container-type: inline-size; overflow: visible; padding-bottom: 0; }
      .papers-track { animation: papers-pan linear both; animation-timeline: --papers; animation-range: contain 0% contain 100%; }
    }

    /* 그 밖의 기능: 네 묶음이 왼쪽부터 차례로 */
    .more-group:nth-child(2) { animation-range: entry 8% entry 70%; }
    .more-group:nth-child(3) { animation-range: entry 16% entry 85%; }
    .more-group:nth-child(4) { animation-range: entry 24% entry 100%; }

    /* 좁은 화면: 네 단계가 세로로 길어지니 단계마다 제 자리에서, 낮·밤 무대는 화면 가운데쯤에 짧게 */
    @media (max-width: 960px) {
      .pair { height: 180vh; }
      .pair-stage { top: max(88px, 50svh - (100vw - 48px) / 3 - 56px); }
      .flow::after { animation-range: entry 0% entry 60%; }
      .flow li:nth-child(n) { animation-timeline: view(); animation-range: entry 0% entry 80%; }
    }
  }

  /* 스크롤 연동 CSS가 없는 브라우저: home.js가 붙이는 .is-in으로 한 번 떠오른다(스크립트가 없으면 그냥 보임) */
  @supports not (animation-timeline: view()) {
    .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
    .js .reveal.is-in { opacity: 1; transform: none; }
  }
}

/* 숫자 세기가 끝나는 순간 강조(2026-11-29 사용자 '멈출 때 잠깐 살짝 빛났다가'): home.js가 .is-glow를 붙인다.
   숫자 뒤에 같은 글(data-glow)을 강조색으로 흐리게 깔아 잠깐 켰다 끄고(opacity), 숫자는 살짝 커졌다 돌아온다(scale) */
@media (prefers-reduced-motion: no-preference) {
  [data-count] { position: relative; isolation: isolate; transform-origin: left 60%; }
  .tiles [data-count] { display: inline-block; }
  [data-count]::after { content: attr(data-glow); position: absolute; inset: 0; z-index: -1; color: var(--accent); filter: blur(12px); opacity: 0; pointer-events: none; white-space: nowrap; }
  [data-count].is-glow { animation: count-pop .7s var(--ease); }
  [data-count].is-glow::after { animation: count-glow 1.1s ease-out; }
  @keyframes count-pop { 28% { scale: 1.06; } }
  @keyframes count-glow { 22% { opacity: .95; } }
}

/* 포트폴리오 사진에 마우스를 올리면 칸이 떠오르고 사진이 그 안에서 살짝 커짐(2026-11-28 사용자). 마우스로 볼 때만이고
   움직임 줄이기 설정이면 없음. 스크롤 효과가 transform을 쓰므로 따로 도는 translate·scale로 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work figure { transition: translate .5s var(--ease); }
  .work figure img { transition: scale .7s var(--ease); }
  .work:hover figure { translate: 0 -8px; }
  .work:hover figure img { scale: 1.06; }
}

/* 로그인·회원가입 화면(login.html·signup.html) */
.account { display: grid; place-items: start center; min-height: calc(100vh - 64px - 160px); padding: clamp(40px, 7vw, 88px) 16px; }
.account-card { width: min(440px, 100%); padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); box-shadow: var(--shadow); }
.account-card h1 { font-size: 1.7rem; letter-spacing: -.03em; }
.account-sub { margin-top: 6px; color: var(--muted); font-size: .97rem; }
.account-notice { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--tint); color: var(--text); font-size: .92rem; line-height: 1.6; }
.account-form { display: grid; gap: 6px; margin-top: 22px; }
.account-form label { margin-top: 10px; font-size: .92rem; font-weight: 650; }
.account-form input[type="email"], .account-form input[type="password"], .account-form input[type="text"] { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.account-form input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.account-form .btn { width: 100%; margin-top: 18px; font: inherit; font-weight: 700; cursor: pointer; }
.consents { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.consents legend { padding: 0 6px; font-size: .92rem; font-weight: 650; }
.consent { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .93rem; }
.account-form .check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 400; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.req { color: var(--muted); font-size: .85em; }
.consent a { flex: none; font-size: .88rem; }
/* 가입 개인정보 안내(동의 칸 아님)·선택 동의 설명 — 2026-11-24 */
.privacy-notice { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); font-size: .88rem; }
.privacy-notice h2 { margin: 0 0 8px; font-size: .95rem; font-weight: 650; }
.privacy-notice dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.privacy-notice dt { color: var(--muted); }
.privacy-notice dd { margin: 0; }
.privacy-notice p { margin: 8px 0 0; }
.consent-optional small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.account-status { min-height: 1.6em; margin-top: 8px; color: var(--accent-ink); font-size: .92rem; }
.account-status:empty { display: none; }
.account-alt { margin-top: 14px; color: var(--muted); font-size: .93rem; text-align: center; }
