/* unify.css — 작업지시서 13 (2026-10-22). 헤더 → 단계 띠 → 본문 순서와 헤더·팝업 3종·하단 바 모양을
   아크원푸르지오.site(A, 기준)와 같게 맞춘다. 모든 페이지의 스타일 맨 뒤에서 불러온다(기존 css 파일은 고치지 않는다).
   값은 A src/styles.css 그대로: 헤더 90px(1025~1420px 72px, 1024px 이하 70px)·여백 80/50/20px · 주색 #004b45 · 글꼴 SUIT */

:root { --u-hd: 90px; --u-pm: 80px; --u-green: #004b45; --u-ink: #303030; --u-strong: #111111; --u-line: #e6e6e6; --u-font: "SUIT", "Pretendard", sans-serif; }
@media (min-width: 1025px) and (max-width: 1420px) { :root { --u-hd: 72px; --u-pm: 50px; } }
@media (max-width: 1024px) { :root { --u-hd: 70px; --u-pm: 20px; } }

/* ── 헤더 (하위 페이지 = A 하위 페이지: 반투명 흰 바탕 + 초록 글자) ── */
body .header, body .header.is-scrolled {
  height: var(--u-hd); padding: 0 var(--u-pm); gap: 0; justify-content: flex-start;
  background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.2); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--u-green); font-family: var(--u-font); transition: none;
}
body .header .wordmark.u-logo { display: flex; align-items: center; height: 100%; margin-right: auto; color: inherit; text-decoration: none; font-size: inherit; letter-spacing: 0; }
body .header .wordmark.u-logo > .u-logo__txt {
  grid-column: auto; grid-row: auto; align-self: center; writing-mode: horizontal-tb; margin: 0; padding: 0; border: 0;
  font-family: var(--u-font); font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
}
body .header .header-tel { order: 0; margin: 0; color: inherit; font-family: var(--u-font); font-size: 26px; font-weight: 700; letter-spacing: 0; }
body .header .header-tel small { display: none; }
@media (min-width: 901px) {
  body .header #global-nav {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 18px;
    height: 100%; margin: 0; padding: 0; background: transparent; box-shadow: none; font-size: 16px; letter-spacing: 0;
  }
  body .header #global-nav a, body .header #global-nav .nav-cta, body .header #global-nav .nav-visit {
    position: relative; display: inline-flex; align-items: center; height: 100%; margin: 0; padding: 0 6px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit;
    font-family: var(--u-font); font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: 0; white-space: nowrap;
  }
  body .header #global-nav a[aria-current]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 22px; width: auto; height: 1px; border-radius: 0; background: currentColor;
  }
}
@media (min-width: 901px) and (max-width: 1420px) {
  body .header #global-nav { gap: 6px; }
  body .header #global-nav a, body .header #global-nav .nav-cta, body .header #global-nav .nav-visit { padding: 0 4px; font-size: 14px; }
  body .header #global-nav a[aria-current]::after { bottom: 16px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  body .header #global-nav a[href="/"]:first-child { display: none; }
  body .header #global-nav { gap: 2px; }
  body .header #global-nav a, body .header #global-nav .nav-cta, body .header #global-nav .nav-visit { font-size: 13px; }
}
@media (max-width: 1024px) {
  body .header .wordmark.u-logo > .u-logo__txt { font-size: 16px; }
  body .header .header-tel {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 16px 0 0;
    border: 1px solid rgb(0 75 69 / 0.2); border-radius: 50%; font-size: 0;
  }
  body .header .header-tel::after { content: "☎"; font-size: 14px; color: inherit; }
}
@media (max-width: 900px) {
  body .header .menu-toggle { position: relative; order: 2; width: 40px; height: 100%; padding: 0; gap: 0; color: inherit; font-size: 0; letter-spacing: 0; }
  body .header .menu-toggle > span { display: none; }
  body .header .menu-toggle::before, body .header .menu-toggle::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: currentColor; }
  body .header .menu-toggle::before { transform: translateY(-5px); }
  body .header .menu-toggle::after { transform: translateY(5px); }
  body .header .menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
  body .header .menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
  body .header #global-nav { top: var(--u-hd); font-family: var(--u-font); }
  body .header #global-nav .nav-cta, body .header #global-nav .nav-visit { margin: 0; padding: 15px 2px; border: 0; border-bottom: 1px solid #dde2d5; border-radius: 0; background: transparent; color: var(--ink); font-size: 19px; }
}

/* ── 홈 헤더 = A 홈: 검은 바탕 + 흰 글자(띠와 색 경계가 분명) ── */
html[data-om-hd] body header.header, html[data-om-hd] body header.header.is-scrolled {
  background: #000; color: #fff; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-om-hd] body header.header #global-nav:not(.open) a,
html[data-om-hd] body header.header .header-tel,
html[data-om-hd] body header.header .menu-toggle { color: #fff; }
html[data-om-hd] body header.header #global-nav:not(.open) a[aria-current] { box-shadow: none; }
html[data-om-hd] body header.header #global-nav:not(.open) a[aria-current]::after { background: #fff; }
@media (max-width: 1024px) { html[data-om-hd] body header.header .header-tel { border-color: rgba(255, 255, 255, 0.4); } }

/* ── 휴대폰 하단 고정 바 = A .quick-mo (1024px 이하, 초록 바탕, 56px, 흰 굵은 글자) ── */
@media (max-width: 1024px) {
  body .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    min-height: calc(56px + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom); border: 0; box-shadow: none; background: var(--u-green);
  }
  body .mobile-cta a, body .mobile-cta a:last-child {
    display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 8px; border: 0; border-radius: 0;
    background: transparent; color: #fff; font-family: var(--u-font); font-size: 16px; font-weight: 700; letter-spacing: 0; text-align: center;
  }
  body .mobile-cta a + a { border-left: 1px solid color-mix(in srgb, #fff 35%, transparent); }
  .om .om-hero { --bar: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ── 30만원 팝업 = A prereg-popup (흰 바탕, 모서리 8px, 여백 32px, 16px 글자, 초록 60px 버튼, 하단 두 버튼) ── */
body .prereg-pop { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; opacity: 1; }
body .prereg-pop__bg { position: absolute; inset: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--u-ink) 55%, transparent); cursor: default; }
body .prereg-pop__panel {
  position: relative; display: block; width: min(480px, calc(100% - 32px)); max-height: none; margin: auto; padding: 32px; overflow: visible;
  border: 0; border-radius: 8px; box-shadow: none; background: #fff; color: var(--u-ink); font-family: var(--u-font); text-align: left;
}
body .prereg-pop__body { max-height: none; padding: 0; overflow: visible; }
body .prereg-pop__panel p, body .prereg-pop__panel li, body .prereg-pop__panel .prereg-promo p { margin: 0; color: var(--u-ink); font-size: 16px; line-height: 24px; letter-spacing: 0; }
body .prereg-pop__badge { margin: 0 32px 0 0; font-weight: 400; }
body .prereg-pop__kicker { margin: 0; }
body .prereg-pop__panel h2 { margin: 4px 0 12px; color: var(--u-green); font-family: var(--u-font); font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0; }
body .prereg-pop__panel .prereg-promo__money { color: var(--u-green); font-weight: 400; }
body .prereg-pop__panel .prereg-link { margin: 4px 0 0; padding: 0; border: 0; background: transparent; color: var(--u-ink); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body .prereg-pop .button {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 60px; min-height: 60px; margin: 12px 0 0; padding: 0; gap: 0;
  border: 0; border-radius: 8px; background: var(--u-green); color: #fff; font-family: var(--u-font); font-size: 18px; font-weight: 700; line-height: 27px; text-decoration: none;
}
body .prereg-pop .prereg-confirm { margin: 12px 0; font-size: 16px; line-height: 1.6; }
body .prereg-pop__panel .prereg-pop__fine { margin: 0; font-size: 13px; line-height: 19.5px; color: var(--u-ink); }
body .prereg-pop__x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--u-ink); font-size: 16px; line-height: 1; }
body .prereg-pop__actions { display: flex; flex: none; margin: 16px -32px -32px; border-top: 1px solid var(--u-line); background: transparent; }
body .prereg-pop__actions button { flex: 1; height: 48px; border: 0; background: transparent; color: var(--u-ink); font-family: var(--u-font); font-size: 16px; }
body .prereg-pop__actions button + button { border-left: 0; }
/* 띠 아래로 맞춘 경우(작업지시서 13 · prereg.js fit): 내용은 패널 안에서 스크롤, 하단 두 버튼은 늘 보이게 */
body .prereg-pop.is-fit .prereg-pop__panel { margin-bottom: 0; overflow-y: auto; }
body .prereg-pop.is-fit .prereg-pop__actions { position: sticky; bottom: -32px; background: #fff; }
@media (max-width: 600px) {
  body .prereg-pop { align-items: flex-end; }
  body .prereg-pop__panel { width: 100%; max-height: 85vh; margin: 0; padding-bottom: 84px; overflow-y: auto; border-radius: 8px 8px 0 0; }
  body .prereg-pop__actions { position: sticky; bottom: -32px; background: #fff; }
}
/* 휴대폰 하단 이벤트 띠 = A .prereg-strip (팝업 자동 열림 대신) */
.prereg-strip { display: none; }
@media (max-width: 767px) {
  .prereg-strip {
    position: fixed; z-index: 1040; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); height: 44px;
    display: flex; align-items: center; gap: 8px; padding: 0 4px 0 14px; background: #8b7f71; color: #fff; font-family: var(--u-font); font-size: 13px; font-weight: 700;
  }
  .prereg-strip__txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .prereg-strip__more { flex: none; height: 32px; padding: 0 12px; border: 1px solid color-mix(in srgb, #fff 60%, transparent); border-radius: 16px; background: transparent; color: #fff; font: inherit; font-weight: 700; }
  .prereg-strip__x { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 16px; }
  html[data-om-intro] .prereg-strip { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ── 사전고객등록 폼: 방문예약은 별도 페이지(/visit) 안내 한 줄 ── */
.visit-move-card { margin: 12px 0; padding: 14px 16px; border: 1px solid #c5cfbf; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.visit-move-card a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ── /visit 모델하우스 방문예약 = A 등록 페이지 서식(.reg) ── */
.vreg-wrap { padding: 64px var(--u-pm) 96px; background: #fff; color: var(--u-ink); font-family: var(--u-font); }
.vreg { max-width: 640px; margin: 0 auto; }
.vreg [hidden] { display: none !important; }
.vreg .register-kicker { margin: 0; text-align: center; color: var(--u-green); font-size: 13px; letter-spacing: 0.12em; }
.vreg__title { margin: 8px 0 16px; text-align: center; color: var(--u-green); font-family: var(--u-font); font-size: 36px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.vreg__lead { margin: 0 0 8px; text-align: center; color: var(--u-strong); font-size: 18px; line-height: 1.6; }
.vreg__loc { margin: 0 0 32px; text-align: center; color: var(--u-green); font-size: 15px; font-weight: 700; line-height: 1.6; }
.vreg__field { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.vreg__field > label, .vreg__field > legend { display: block; margin: 0 0 8px; padding: 0; color: var(--u-strong); font-size: 16px; font-weight: 700; }
.vreg__field input[type="text"], .vreg__field input[type="tel"], .vreg__field select {
  width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--u-line); border-radius: 8px; background: #fff; color: var(--u-strong); font: inherit; font-size: 16px;
}
.vreg__field input:focus, .vreg__field select:focus { outline: 2px solid var(--u-green); }
.vreg__field.is-err input, .vreg__field.is-err select { border-color: #d0342c; }
.vreg__msg { margin: 6px 0 0; min-height: 18px; color: #d0342c; font-size: 13px; }
.vreg .prereg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.vreg .prereg-chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--u-line); border-radius: 8px; cursor: pointer; }
.vreg .prereg-chips input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vreg .prereg-chips input:checked + span { color: var(--u-green); font-weight: 700; }
.vreg .prereg-chips label:has(input:checked) { border-color: var(--u-green); }
.vreg .prereg-chips input:focus-visible + span { outline: 2px solid var(--u-green); outline-offset: 4px; }
.vreg__off { margin: 0 0 16px; padding: 16px; border: 1px solid var(--u-line); border-radius: 8px; }
.vreg__off p { margin: 0 0 12px; }
.vreg__tel { display: flex; align-items: center; justify-content: center; height: 52px; border: 1px solid var(--u-green); border-radius: 8px; color: var(--u-green); font-weight: 700; text-decoration: none; }
.vreg__agree { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.vreg__agree .check { display: inline-flex; align-items: center; gap: 10px; }
.vreg__agree input { width: 20px; height: 20px; accent-color: var(--u-green); }
.vreg__agree button { margin-left: auto; padding: 0; border: 0; background: none; color: #707070; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.vreg__consent { margin: 12px 0 8px; padding: 16px; border: 1px solid #f3f3f3; border-radius: 8px; background: #fafafa; color: var(--u-ink); font-size: 13px; line-height: 1.7; }
.vreg__consent p { margin: 0; }
.vreg__error { margin: 12px 0 0; text-align: center; color: #d0342c; font-size: 14px; }
.vreg__submit {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 60px; margin-top: 12px; border: 0; border-radius: 8px;
  background: var(--u-green); color: #fff; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.vreg__submit:disabled { opacity: 0.6; cursor: default; }
.vreg__notes { margin-top: 20px; }
.vreg__notes p { margin: 8px 0 0; color: var(--u-ink); font-size: 14px; line-height: 1.6; }
.vreg__notes a { color: var(--u-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.vreg__done { padding: 40px 0; text-align: center; }
.vreg__done h2 { margin: 0 0 12px; color: var(--u-green); font-size: 26px; font-weight: 800; }
.vreg__done p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.vreg__receipt { margin: 16px 0 !important; padding: 16px; border-radius: 8px; background: color-mix(in srgb, var(--u-green) 8%, #fff); color: var(--u-green); }
@media (max-width: 1024px) {
  .vreg-wrap { padding: 40px var(--u-pm) calc(80px + env(safe-area-inset-bottom)); }
  .vreg__title { font-size: 28px; }
  .vreg__lead { font-size: 16px; }
}

/* ── PM 지시(2026-10-22): 평면 그림 캡션 아래 공급금액 한 줄 · 아파트 평면 영역 아래 공급금액표 ── */
.unit-plan-figure .unit-plan-price { margin: 0; padding: 0 20px 14px; color: var(--green, #173f35); font-size: 16px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.unit-plan #unit-price { margin-top: 32px; max-width: none; min-width: 0; }
.unit-plan [role=tabpanel] > #unit-price { grid-column: 1 / -1; grid-row: 3; }
@media (max-width: 600px) { .unit-plan-figure .unit-plan-price { padding: 0 14px 12px; font-size: 15px; } }

/* ── PM 지시(2026-10-22): 홈 히어로 바로 아래 「평면도 · 공급금액」 배너(전체가 /unit 링크). A 톤: 짙은 초록 카드 · 크림 글자 · 금색 버튼 ── */
.plans-banner-wrap { position: relative; z-index: 1; padding: 48px var(--u-pm); background: #000; font-family: var(--u-font); }
.om.om--stage .plans-banner-wrap { display: flex; align-items: center; min-height: 100vh; padding-top: calc(var(--u-hd) + 48px); }
.plans-banner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; width: 100%; max-width: 1300px; margin: 0 auto;
  padding: 40px 48px; border: 1px solid #B5853A; border-radius: 8px; background: #032B20; color: #F7F3EA; text-decoration: none; box-sizing: border-box;
}
.plans-banner * { box-sizing: border-box; }
.plans-banner h2 { margin: 0; color: #F7F3EA; font-family: var(--u-font); font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.plans-banner__sub { margin: 12px 0 0; color: #F7F3EA; font-size: 17px; line-height: 1.6; }
.plans-banner__price { margin: 16px 0 0; color: #E2B565; font-size: 18px; font-weight: 700; line-height: 1.6; word-break: keep-all; }
.plans-banner__btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; margin-top: 24px; padding: 0 28px; border-radius: 8px; background: #E2B565; color: #032B20; font-size: 17px; font-weight: 700; }
.plans-banner:hover .plans-banner__btn, .plans-banner:focus-visible .plans-banner__btn { background: #F0C87E; }
.plans-banner:focus-visible { outline: 3px solid #E2B565; outline-offset: 3px; }
.plans-banner__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plans-banner__thumbs img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.plans-banner__note { margin: 10px 0 0; color: rgba(247, 243, 234, 0.75); font-size: 12px; line-height: 1.5; }
@media (max-width: 1024px) {
  .plans-banner-wrap { padding: 32px var(--u-pm); }
  .plans-banner { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .plans-banner h2 { font-size: 28px; }
  .plans-banner__sub { font-size: 15px; }
  .plans-banner__price { font-size: 16px; }
  .plans-banner__btn { width: 100%; }
}
