/* 머스트클린 정식 화면. 레이아웃과 수치는 승인 시안 preview.css를 따른다. 값은 tokens.css 참조. */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
[hidden] { display: none !important; }
html { --anchor-offset: calc(var(--strip) + var(--head) + 16px); scroll-behavior: auto; scroll-padding-bottom: calc(var(--bar-h) + var(--safe) + 16px); -webkit-text-size-adjust: 100%; }
/* 위쪽 여백은 sticky 헤더 밖의 앵커·포커스 대상에만 준다. html의 scroll-padding-top을 쓰면 헤더 포커스 때 페이지가 튄다. */
main, section[id], .form-notice,
main :is(a, button, input, select, textarea, summary),
.foot :is(a, button, input, select, textarea, summary) { scroll-margin-top: var(--anchor-offset); }
body { margin: 0 auto; max-width: 1920px; background: var(--ivory); color: var(--charcoal); font: 400 var(--body)/var(--body-lh) var(--font); word-break: keep-all; overflow-wrap: break-word; padding-bottom: calc(var(--bar-h) + var(--safe)); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.dark :focus-visible, .foot :focus-visible { outline-color: var(--ivory); }

h1 { font-size: var(--h1); font-weight: 700; line-height: var(--h1-lh); letter-spacing: -.03em; }
h2 { font-size: var(--h2); font-weight: 700; line-height: var(--h2-lh); letter-spacing: -.02em; }
h3 { font-size: var(--h3); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.t { padding-right: var(--margin); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 60; background: var(--green); color: var(--white); padding: 12px 16px; }
.skip:focus { top: 8px; }
.strip { position: sticky; top: 0; z-index: 31; height: var(--strip); padding: 0 var(--margin); background: var(--stone); color: var(--gray); font-size: 13px; line-height: var(--strip); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 헤더 */
.head { position: sticky; top: var(--strip); z-index: 30; display: flex; align-items: center; justify-content: space-between; height: var(--head); padding-left: var(--margin); background: var(--ivory); }
.mark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.mark img { display: block; }
.mark__en { font-size: 15px; font-weight: 700; letter-spacing: .16em; line-height: 1; white-space: nowrap; }
.mark__ko { font-size: 13px; line-height: 1; color: var(--gray); white-space: nowrap; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: flex-end; width: 56px; height: 56px; margin-right: var(--margin); padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; cursor: pointer; }
.nav { display: none; }
.nav.is-open { position: fixed; top: calc(var(--strip) + var(--head)); left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; padding: 16px var(--margin) calc(24px + var(--safe)); background: var(--ivory); overflow-y: auto; overscroll-behavior: contain; }
.nav li a { display: flex; align-items: center; min-height: 56px; font-size: 20px; font-weight: 700; text-decoration: none; }
.nav__cta { margin-top: auto; }
@media (max-width: 767.98px) {
  html.is-menu-open { overflow: hidden; }
  html.is-menu-open body { position: fixed; top: var(--lock-top, 0px); left: 0; right: 0; width: 100%; padding-top: calc(var(--strip) + var(--head)); }
  html.is-menu-open .strip { position: fixed; top: 0; left: 0; right: 0; z-index: 51; }
  html.is-menu-open .head { position: fixed; top: var(--strip); left: 0; right: 0; z-index: 51; }
  html.is-menu-open .bar { display: none; }
  .faq-link { display: none; }

  /* JS 꺼짐: 토글 없이 메뉴 링크를 워드마크 아래에 펼친다 */
  html:not(.js) .strip, html:not(.js) .head { position: static; }
  html:not(.js) .head { flex-wrap: wrap; height: auto; padding-block: 6px; padding-right: var(--margin); }
  html:not(.js) .nav { display: block; width: 100%; }
  html:not(.js) .nav ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  html:not(.js) .nav li a { min-height: 44px; font-size: 15px; font-weight: 400; }
  html:not(.js) .nav__cta { display: none; }
  html:not(.js) { --anchor-offset: 16px; }
}
html:not(.js) .menu-toggle { display: none; }

/* 버튼·링크 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 0; background: var(--green); color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color 150ms; }
.btn:hover, .btn:active { background: var(--green-hover); }
.btn--go::after { content: "→"; transition: transform 150ms; }
.btn--go:hover::after, .btn--go:focus-visible::after { transform: translateX(4px); }
.btn--off, .btn--off:hover, .btn--off:active { width: 100%; background: var(--stone); color: var(--gray); cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green); font-size: 15px; font-weight: 700; text-decoration: none; transition: color 150ms; }
.link::after { content: "→"; transition: transform 150ms; }
.link:hover::after, .link:focus-visible::after { transform: translateX(4px); }
.link:hover, .link:active { color: var(--green-hover); }
/* 14px·줄높이 1.6 문단 안의 링크: 줄 간격은 그대로 두고 터치 영역만 44px로 넓힌다 */
.tap { display: inline-flex; align-items: center; min-height: 44px; margin-block: calc((1.6em - 44px) / 2); }

/* 사진 슬롯: 파일이 있으면 .ph__img가 자리표시 도형과 안내 글자를 덮는다 */
.ph { position: relative; overflow: hidden; background: var(--stone) center / cover no-repeat; }
.ph__img { position: absolute; inset: 0; z-index: 1; background: center / cover no-repeat; }
.ph__slot { position: absolute; left: 12px; top: 12px; color: var(--gray); font-size: 14px; line-height: 1.6; }
.ph figcaption { position: absolute; left: 0; bottom: 0; z-index: 2; max-width: 100%; padding: 4px 8px; background: var(--caption-bg); color: var(--white); font-size: var(--cap); line-height: 1.5; }
.ph--hero { background-image: url(../images/slot-hero.svg); }
.ph--hero .ph__img { background-image: url(../images/mood-hero.webp); background-position: 50% 62%; }
.ph--home { background-image: url(../images/slot-home.svg); aspect-ratio: 3 / 2; }
.ph--home .ph__img { background-image: url(../images/mood-home.webp); background-position: 50% 72%; }
.ph--biz { background-image: url(../images/slot-biz.svg); aspect-ratio: 3 / 2; }
.ph--biz .ph__img { background-image: url(../images/mood-biz.webp); background-position: 50% 58%; }
.ph--worker { background-image: url(../images/slot-worker.svg); aspect-ratio: 3 / 2; margin-top: 32px; margin-right: var(--margin); }
.ph--worker .ph__img { background-image: url(../images/mood-worker.webp); background-position: 50% 55%; }

/* 전후 사진: 실제 사진과 게시 동의가 확인된 경우에만 main.js가 생성한다 */
.ba-figure + .ba-figure { margin-top: 24px; }
.ba-figure .ba { display: grid; gap: 8px; }
.ba-figure img { width: 100%; }
.ba-figure figcaption { margin-top: 8px; color: var(--gray); font-size: 14px; line-height: 1.6; }

/* 히어로 */
.hero { display: flex; flex-direction: column; }
.hero .ph { flex: none; margin-inline: var(--margin); height: 44vh; height: clamp(200px, calc(100svh - var(--strip) - var(--head) - var(--bar) - var(--safe) - 204px), calc((100vw - var(--margin) * 2) * 1.2)); }
.hero__txt { flex: none; display: flex; flex-direction: column; padding: 20px var(--margin) 24px; }
.hero__cta { width: 100%; margin-top: 20px; }

/* 섹션 공통 */
.sec { padding-block: var(--sec); }
.lay { padding-left: var(--margin); }
.lead, .note { margin-top: 12px; }
.lead { color: var(--sage); }
.note { color: var(--gray); font-size: 14px; line-height: 1.6; }
.col-r { margin-top: 32px; }

/* 서비스 */
#services .lay { margin-bottom: 32px; }
.svc { padding-inline: var(--margin); }
.svc + .svc { margin-top: 56px; }
.svc__txt { padding-top: 16px; padding-right: 0; }
.svc__txt > p:not(.svc__links) { margin-top: 4px; color: var(--gray); }
.svc__links { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 8px; }

/* 기준 */
.dark { background: var(--green); color: var(--ivory); }
.std > div { display: grid; grid-template-columns: var(--time) minmax(0, 1fr); column-gap: 8px; padding-block: 14px; border-top: 1px solid var(--line-dark); }
.std > div:last-child { border-bottom: 1px solid var(--line-dark); }
.std dt { font-size: 15px; font-weight: 700; line-height: 1.7; }
.std dd { color: var(--sage); font-size: 15px; line-height: 1.7; }
.badge { display: block; color: var(--notice); font-size: 13px; font-weight: 400; line-height: 1.6; }
.dark .badge { color: var(--sage); }
.list-flag { margin-bottom: 8px; }

/* 펼침 */
details { margin: 0; border-top: 1px solid var(--line); }
.acc > details:last-of-type { border-bottom: 1px solid var(--line); }
html:not(.js) .acc > details:nth-of-type(3) { border-bottom: 1px solid var(--line); }
summary { position: relative; display: block; min-height: 60px; padding: 18px 36px 18px 0; font-size: var(--acc); font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 15px; font-size: 20px; font-weight: 400; color: var(--green); }
details[open] > summary::after { content: "−"; }
details > p { max-width: 680px; padding: 0 36px 20px 0; color: var(--gray); }
.more > summary { color: var(--green); }
.after { margin-top: 12px; }

/* 절차 */
.white { background: var(--white); }
.white #process { padding-bottom: 0; }
.white #faq { padding-top: 56px; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding-block: 20px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; color: var(--green); font-size: var(--num); font-weight: 700; line-height: 1.25; }
.steps h3 { font-size: var(--step); line-height: 1.4; }
.steps p { margin-top: 4px; color: var(--gray); font-size: 15px; line-height: 1.65; }

/* 문의 */
.notice { padding: 2px 0 2px 14px; border-left: 2px solid var(--notice); color: var(--notice); font-size: 14px; line-height: 1.6; }
.quote-reply { margin-top: 8px; color: var(--gray); font-size: 14px; line-height: 1.6; }
.form-notice { margin-top: 12px; padding: 2px 0 2px 14px; border-left: 2px solid var(--notice); color: var(--notice); font-size: 14px; font-weight: 700; line-height: 1.6; }
.form-notice:empty { display: none; }
.form-notice.is-error { border-left-color: var(--error); color: var(--error); }
.form-notice.is-success { border-left-color: var(--success); color: var(--success); }
.contact-fallback { margin-top: 16px; color: var(--gray); font-size: 14px; line-height: 1.6; }
.channel-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.channel-list:empty { display: none; }
.channel-list .btn { flex: 1 1 140px; padding-inline: 12px; }
.btn.chan--phone, .btn.chan--phone:hover, .btn.chan--phone:active { background: var(--white); color: var(--charcoal); }
.btn.chan--kakao, .btn.chan--kakao:hover, .btn.chan--kakao:active { background: var(--kakao); color: var(--kakao-ink); }

.field { margin-top: var(--field-gap); }
.quote-form > .field:first-child { margin-top: 28px; }
.field > label:first-child { display: block; margin-bottom: 8px; font-size: var(--label); font-weight: 700; line-height: 1.5; }
.field > label span { color: var(--gray); font-size: 13px; font-weight: 400; }
input[type="text"], input[type="tel"], input[type="date"], select, textarea { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--field); background-color: var(--white); font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; }
select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B2B28' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea { min-height: 120px; padding-block: 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-bottom: 2px solid var(--green); outline: 2px solid var(--charcoal); outline-offset: 2px; }
input:disabled { border-bottom-style: dotted; color: var(--gray); -webkit-text-fill-color: var(--gray); opacity: 1; cursor: not-allowed; }
input:not([type="checkbox"])[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-bottom: 2px solid var(--error) !important; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.check input[aria-invalid="true"]:focus-visible { outline: 3px solid var(--charcoal); }
.err { margin-top: 8px; color: var(--error); font-size: 14px; line-height: 1.6; }
.err::before { content: "오류: "; }
.hint { margin-top: 8px; color: var(--gray); font-size: 14px; line-height: 1.6; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.extra { margin-top: 24px; border-bottom: 1px solid var(--line); }
.extra > .field:last-child { padding-bottom: 20px; }
.extra-flag { margin-left: 8px; color: var(--gray); font-size: 13px; font-weight: 400; }
.consent { margin: 24px 0; color: var(--gray); font-size: 14px; line-height: 1.6; }
.consent details { margin-top: 12px; border-bottom: 1px solid var(--line); }
.consent summary { min-height: 52px; padding-block: 14px; color: var(--charcoal); font-size: 14px; }
.consent summary::after { top: 11px; }
.consent ul { padding-bottom: 16px; }
.consent li + li { margin-top: 4px; }
.consent .check { margin-top: 12px; color: var(--charcoal); font-size: 15px; }
.form-submit { width: 100%; }
.form-submit:disabled { background: var(--stone); color: var(--gray); cursor: not-allowed; }

/* 푸터 */
.foot { padding-block: 48px; background: var(--charcoal); color: var(--ivory); }
.foot__tag { margin-top: 16px; color: var(--sage); font-size: 15px; }
.foot .col-r { margin-top: 16px; color: var(--sage); font-size: 14px; line-height: 1.6; }
.foot .col-r p + p { margin-top: 8px; }

/* 하단 상담 바: 전화·카카오는 main.js가 설정을 확인한 뒤 생성한다 */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 76px 76px minmax(0, 1fr); padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); border-top: var(--bar-line) solid var(--line); background: var(--stone); }
.bar--two { grid-template-columns: 76px minmax(0, 1fr); }
.bar--one { grid-template-columns: minmax(0, 1fr); }
.bar :focus-visible { outline-color: var(--ivory); outline-offset: -4px; }
.bar > * { display: flex; align-items: center; justify-content: center; height: calc(60px + var(--safe)); padding: 0 4px var(--safe); border: 0; text-align: center; text-decoration: none; }
.bar button { display: block; background: var(--stone); color: var(--gray); font-size: 12px; line-height: 1.35; cursor: not-allowed; }
.bar button span { display: block; }
.bar a { gap: 8px; background: var(--green); color: var(--white); font-size: 15px; font-weight: 700; line-height: 1.2; transition: background-color 150ms; }
.bar a::after { content: "→"; }
.bar a:hover, .bar a:active { background: var(--green-hover); }
.bar a.chan { font-size: 12px; line-height: 1.35; }
.bar a.chan::after { content: none; }
.bar a.chan:focus-visible { outline-color: var(--charcoal); }
.bar a.chan--phone, .bar a.chan--phone:hover, .bar a.chan--phone:active { background: var(--white); color: var(--charcoal); }
.bar a.chan--kakao, .bar a.chan--kakao:hover, .bar a.chan--kakao:active { background: var(--kakao); color: var(--kakao-ink); }
body.is-typing .bar { display: none; }
body:has(input:not([type="checkbox"]):focus, select:focus, textarea:focus) .bar { display: none; }

/* 첫 화면에는 메인 버튼만 보이고, 스크롤하면 하단 바가 나타난다. 미지원 브라우저는 항상 표시 */
@supports (animation-timeline: scroll()) {
  @keyframes bar-show { 0%, 99.9% { visibility: hidden; } 100% { visibility: visible; } }
  .bar { animation: bar-show linear both; animation-timeline: scroll(root); animation-range: 0 75svh; }
}

/* 처리방침 */
.doc { max-width: calc(680px + var(--margin) * 2); padding: 48px var(--margin) 64px; }
.doc h1 { font-size: var(--h2); line-height: var(--h2-lh); letter-spacing: -.02em; }
.doc h2 { margin-top: 32px; font-size: var(--h3); line-height: 1.35; letter-spacing: -.01em; }
.doc p { margin-top: 8px; }
.doc ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.doc .draft-notice { margin: 0 0 24px; padding: 2px 0 2px 14px; border-left: 2px solid var(--notice); color: var(--notice); font-size: 14px; line-height: 1.6; }
.doc .doc__home { margin-top: 32px; }
.todo { color: var(--notice); font-weight: 700; }

/* 768px 이상 */
@media (min-width: 768px) {
  .bar { display: none; }
  .mark__ko { font-size: 14px; }
  .head { padding-right: var(--margin); }
  .menu-toggle { display: none; }
  .nav, .nav.is-open { position: static; display: flex; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: none; overflow: visible; }
  .nav ul { display: flex; gap: 24px; }
  .nav li a { min-height: 44px; font-size: 15px; font-weight: 400; line-height: 1.6; }
  .nav__cta { min-height: 44px; margin: 0; padding: 0 16px; font-size: 15px; white-space: nowrap; }

  .hero { display: block; }
  .hero .ph { height: min(52svh, 520px); }
  .hero__txt { padding: 28px var(--margin) 48px; }
  .hero__cta { align-self: flex-start; width: 240px; min-height: 56px; }

  .lay:not(.lay--stack) { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
  .lay .col-r { margin-top: 0; }
  .col-l .t { padding-right: var(--gut); }
  #services .lay { margin-bottom: 48px; }
  .ph--worker { margin-right: var(--gut); }
  .svc { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
  .svc .ph { grid-column: 2; grid-row: 1; }
  .svc__txt { grid-column: 1; grid-row: 1; align-self: end; max-width: calc(var(--col) - 24px); padding: 0 16px 0 0; }
  .svc__links { flex-direction: column; }
  .svc + .svc { margin-top: 72px; }
  .white #faq { padding-top: 80px; }
  .steps li { grid-template-columns: 64px minmax(0, 1fr); }
  .ba-figure .ba { grid-template-columns: 1fr 1fr; }
  .foot .col-r { margin-top: 0; }
}

/* 1024px 이상: 왼쪽 1/3 제목 열, 오른쪽 2/3 내용 */
@media (min-width: 1024px) {
  .head { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
  .nav, .nav.is-open { justify-content: space-between; }
  .nav ul { gap: 32px; }

  .hero { display: grid; grid-template-columns: var(--datum) minmax(0, 1fr); }
  .hero .ph { grid-column: 2; grid-row: 1; margin-inline: 0; height: clamp(560px, calc(100svh - var(--strip) - var(--head)), 760px); }
  .svc { padding-right: 0; }
  .hero__txt { grid-column: 1; grid-row: 1; justify-content: flex-end; align-items: flex-start; padding: 0 16px 64px var(--margin); }
  .hero__cta { margin-top: 28px; }

  .lay--stack { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
  .lay--stack > .col-l { grid-column: 1; }

  .col-r.t { width: min(680px, calc(100% - var(--margin))); padding-right: 0; }
  .col-r.std-wrap { width: min(640px, calc(100% - var(--margin))); }
  .col-r.quote { width: min(520px, calc(100% - var(--margin))); }
  .ph--home, .ph--biz { aspect-ratio: 16 / 9; }
  .svc + .svc { margin-top: 96px; }
  .std > div { padding-block: 20px; }
  .std dt, .std dd { font-size: var(--body); }
  .steps li { grid-template-columns: 88px 180px minmax(0, 1fr); align-items: baseline; padding-block: 28px; }
  .steps li::before { grid-row: auto; }
  .steps p { margin-top: 0; font-size: var(--body); }
}

@media (min-width: 1440px) { .mark__en { font-size: 17px; } }

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