/* 백현동 8단지 구경하는집 랜딩 — LX Z:IN 브랜드 가이드 색상(LX Gray, Z:IN Red) 기반 */
@font-face {
  font-family: 'Showhouse Display';
  src: url('/assets/fonts/showhouse-display.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --red: #d31b19;
  --red-deep: #b01512;
  --gray: #746661;
  --ink: #2a2421;
  --ink-2: #5b504b;
  --cream: #fbf7f2;
  --beige: #f1e8dd;
  --beige-2: #e7dacb;
  --line: #ddd0c2;
  --white: #fff;
  --error: #b42318;
  --display: 'Showhouse Display', 'NanumSquareRound', 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --body: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --col: 720px;
  --pad: clamp(16px, 5vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

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

main, .footer {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--cream);
}

/* ── Hero ── */
.hero {
  position: relative;
  text-align: center;
  padding: 36px var(--pad) clamp(120px, 30vw, 190px);
  background:
    url('/assets/skyline.svg') center bottom / 100% auto no-repeat,
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .9) 0 10px, transparent 11px),
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, .8) 0 16px, transparent 17px),
    radial-gradient(circle at 78% 48%, rgba(255, 255, 255, .7) 0 7px, transparent 8px),
    radial-gradient(circle at 20% 58%, rgba(255, 255, 255, .7) 0 13px, transparent 14px),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .6) 0 5px, transparent 6px),
    linear-gradient(180deg, #f3eadf 0%, #f8f1e8 55%, var(--cream) 100%);
}
.hero__logo { width: 128px; height: auto; margin: 0 auto; } /* Meta 소재(hero-20261001)와 같게 약 15% 축소 */
.hero__rule {
  width: 180px; height: 7px; margin: 22px auto 18px;
  border-top: 1px solid var(--beige-2); border-bottom: 1px solid var(--beige-2);
  position: relative;
}
.hero__rule::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  background: var(--red); border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px #f5ede3;
}
.hero__title { font-family: var(--display); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.hero__title-sm { display: block; font-size: clamp(22px, 6.4vw, 34px); color: var(--gray); }
.hero__title-lg { display: block; margin-top: 4px; font-size: clamp(38px, 11.6vw, 64px); color: var(--ink); }
.hero__offer {
  margin-top: 22px;
  font-family: var(--display); font-weight: 800; line-height: 1.25;
  letter-spacing: -.02em; word-break: keep-all; overflow-wrap: normal;
}
.hero__offer-audience {
  display: block; font-size: clamp(22px, 6vw, 30px); color: var(--ink);
  white-space: nowrap;
}
.hero__offer-discount {
  display: block; margin-top: 5px;
  font-size: clamp(28px, 8.4vw, 46px); font-weight: 800; color: var(--red);
  white-space: nowrap;
}
.hero__sub {
  margin-top: 16px;
  font-size: clamp(15px, 4vw, 18px); line-height: 1.55; color: var(--ink-2);
  word-break: keep-all; overflow-wrap: normal;
}
.hero__support {
  margin-top: 5px;
  font-size: clamp(13px, 3.6vw, 16px); font-weight: 500; line-height: 1.65;
  color: var(--ink-2); word-break: keep-all; overflow-wrap: normal;
}
.hero__date {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 8px 18px 8px 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: clamp(17px, 4.8vw, 22px); color: var(--ink);
}
.hero__date-label {
  font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--white);
  background: var(--gray); border-radius: 999px; padding: 3px 10px;
}

/* ── 특징 배지 · 사진 (창살 무늬 배경) ── */
.badges {
  padding: 28px var(--pad) 32px;
  background-color: var(--beige);
  background-image:
    linear-gradient(rgba(116, 102, 97, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 102, 97, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}
.badges__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2.4vw, 16px); }
.badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: clamp(118px, 34vw, 168px);
  padding: 22px 3px 14px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px 999px 14px 14px;
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--beige-2);
  position: relative;
}
.badge::before {
  content: ''; position: absolute; top: 12px; left: 50%; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%; transform: translateX(-50%);
}
.badge__sm { font-size: clamp(12px, 3.3vw, 15px); font-weight: 700; color: var(--gray); line-height: 1.35; }
.badge__lg { font-family: var(--display); font-weight: 800; font-size: clamp(14px, 3.95vw, 23px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }

.photos { display: grid; grid-template-columns: 1.62fr 1fr; gap: 8px; margin-top: 24px; }
.photos figure { overflow: hidden; border-radius: 6px; background: var(--beige-2); }
/* 행 높이는 세로형 보조 사진(3:4)이 정하고, 큰 사진은 그 높이를 채운다 */
.photos__side { aspect-ratio: 3 / 4; }
.photos__main { position: relative; }
.photos__main img { position: absolute; inset: 0; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos__main img { object-position: 55% 50%; }
.photos__side img { object-position: 30% 50%; }
.photos__note { margin-top: 8px; font-size: 12px; color: var(--ink-2); }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; margin-top: 22px; padding: 12px 20px;
  background: var(--red); color: var(--white);
  border-radius: 10px; text-decoration: none;
  font-size: 18px; font-weight: 800; letter-spacing: -.01em;
}
.cta::after { content: '›'; font-size: 24px; line-height: 1; transform: translateY(-1px); }
.cta:hover { background: var(--red-deep); }
/* 신청 버튼은 하나만 둔다. 첫 화면에서는 화면 아래에 붙어 보이다가, 스크롤해서 제자리(사진 아래)에 오면 그대로 머문다 */
.cta--main {
  position: sticky; z-index: 20;
  bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 6px 18px rgba(42, 36, 33, .22);
}

/* ── 공통 섹션 ── */
.info, .why, .apply { padding: 40px var(--pad); }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6.6vw, 32px); line-height: 1.3; }
.sub-title { margin-top: 36px; font-size: 19px; font-weight: 800; }
.muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }

/* 행사 안내 */
.info { background: var(--cream); }
.info__list { margin-top: 18px; border-top: 2px solid var(--ink); }
.info__row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.info__row dt { font-weight: 700; color: var(--gray); }
.info__row dd { font-weight: 600; }
.info__unit { display: inline-block; margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.info__tel { color: var(--red); font-weight: 800; text-underline-offset: 3px; }
.info__note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

.steps { margin-top: 14px; display: grid; gap: 10px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 36px 1fr; column-gap: 12px;
  padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2; align-self: start;
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--red);
}
.steps strong { font-size: 17px; }
.steps span { font-size: 15px; color: var(--ink-2); }

/* 왜 LX Z:IN */
.why { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why__eyebrow { font-size: 14px; font-weight: 800; color: var(--red); letter-spacing: .04em; }
.why .section-title { margin-top: 4px; }
.why__photo { margin-top: 20px; width: 100%; height: auto; border-radius: 6px; }
.why__list { margin-top: 20px; display: grid; gap: 0; }
.why__list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.why__list li:first-child { border-top: 1px solid var(--line); }
.why__tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--beige); color: var(--gray); font-size: 13px; font-weight: 800;
}
.why__list strong { display: block; margin-top: 8px; font-size: 18px; line-height: 1.45; }
.why__list p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.why__list small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.why__award { margin-top: 18px; padding: 12px 14px; background: var(--cream); border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--gray); }
.why__source { margin-top: 8px; font-size: 12px; color: var(--ink-2); }

/* ── 신청 양식 ── */
.apply { background: var(--beige); outline: none; }
.apply__lead { margin-top: 8px; color: var(--ink-2); }
.form {
  margin-top: 20px; padding: clamp(18px, 5vw, 28px);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.form__legend-note { font-size: 13px; color: var(--ink-2); }
.field { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 800; }
.req, .opt {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px;
  font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 1px;
}
.req { background: #fbe9e8; color: var(--red-deep); }
.opt { background: var(--beige); color: var(--ink-2); }
.form__legend-note .req, .consent .req { margin: 0 4px 0 0; }

.input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 500 16px/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 1px solid #cbbcad; border-radius: 10px;
  appearance: none;
}
.input::placeholder { color: #9a8d86; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(211, 27, 25, .18); }
.input--area { min-height: 96px; resize: vertical; }
.input[aria-invalid='true'] { border-color: var(--error); }
.field__hint { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.field__error { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--error); }
.field__error::before { content: '! '; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--dates { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg__item, .chip { position: relative; display: block; }
.seg__item input, .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__item span, .chip span {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; padding: 8px 14px; text-align: center;
  border: 1px solid #cbbcad; border-radius: 10px; background: var(--white);
  font-weight: 700; font-size: 15px; line-height: 1.3; cursor: pointer;
}
.seg__item span { min-height: 54px; font-size: 16px; }
.chip small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg__item input:checked + span, .chip input:checked + span {
  border-color: var(--red); background: #fdf1f0; color: var(--red-deep);
  box-shadow: inset 0 0 0 1px var(--red);
}
.chip input:checked + span small { color: var(--red-deep); }
.seg__item input:checked + span::before, .chip input:checked + span::before { content: '✓'; font-weight: 800; }
.seg__item input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.chip input:disabled + span { color: #b3a79f; background: #f6f2ed; border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.chip input:disabled + span small { color: inherit; }
.visit-only[hidden] { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { margin-top: 26px; padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.consent__check { display: flex; align-items: flex-start; gap: 10px; font-weight: 800; cursor: pointer; }
.consent__check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.consent__detail { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.consent__detail dl { display: grid; gap: 6px; }
.consent__detail dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.consent__detail dt { font-weight: 700; color: var(--ink); }
.consent__detail p { margin-top: 8px; }

.form__status { margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: #fdecea; color: var(--error); font-weight: 700; }
.submit {
  width: 100%; min-height: 58px; margin-top: 20px;
  font: 800 18px/1 var(--body); color: var(--white);
  background: var(--red); border: 0; border-radius: 10px; cursor: pointer;
}
.submit:hover { background: var(--red-deep); }
.submit:disabled { background: #b9aaa2; cursor: progress; }

.done {
  margin-top: 20px; padding: 32px clamp(18px, 5vw, 28px); text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; outline: none;
}
.done__icon {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 28px; font-weight: 800;
}
.done__title { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.done__receipt { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.done__receipt strong { color: var(--ink); letter-spacing: .04em; }
.done__summary { margin-top: 6px; font-weight: 700; }
.done__info { margin: 20px 0 0; text-align: left; border-top: 1px solid var(--line); }
.done__info > div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.done__info dt { color: var(--gray); font-weight: 700; }
.done__note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.done__call {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px;
  border: 1px solid var(--ink); border-radius: 10px; text-decoration: none; font-weight: 800;
}

.closed { margin-top: 18px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.closed strong { font-size: 18px; }
.closed p { margin-top: 6px; color: var(--ink-2); }

/* ── Footer ── */
.footer { padding: 28px var(--pad) 36px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer img { width: 96px; height: auto; margin-bottom: 12px; opacity: .85; }
.footer p + p { margin-top: 4px; }


/* 오시는 길 */
.map { padding: 40px var(--pad); background: var(--cream); border-top: 1px solid var(--line); }
.map__lead { margin-top: 10px; font-weight: 700; font-size: 17px; }
.map__lead strong { color: var(--red); }
.map__sub { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.map__figure { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.map__svg { display: block; width: 100%; height: auto; }
.map__svg text { font-family: var(--body); font-weight: 700; } /* 작게 축소되는 약도는 본문 고딕이 더 또렷하다 */
.map__svg text:not([fill]) { fill: var(--ink); }
.map__note { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.map__directions { margin-top: 20px; display: grid; gap: 14px; }
.map__directions h3 { font-size: 15px; }
.map__directions p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.map__info { margin-top: 18px; }
.map__info .info__row { grid-template-columns: 84px 1fr; }
.map__links { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map__btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--ink); border-radius: 10px; background: var(--white);
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.map__btn:hover { background: var(--ink); color: var(--white); }

/* 사업자 정보 */
.footer__biz { margin: 12px 0 10px; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.footer__biz div { display: flex; gap: 4px; }
.footer__biz dt { flex: none; font-weight: 700; }
.footer__biz dd { min-width: 0; }
.footer__biz a { color: inherit; }


@media (min-width: 760px) {
  .map__directions { grid-template-columns: 1fr 1fr; gap: 20px; }
  body { padding-top: 32px; }
  main { border-radius: 18px 18px 0 0; overflow: hidden; overflow: clip; box-shadow: 0 0 0 1px var(--line); }
  .footer { border-radius: 0 0 18px 18px; margin-bottom: 32px; box-shadow: 0 0 0 1px var(--line); }
  .hero { padding-top: 48px; }
  .hero__logo { width: 150px; }
  .chips--dates { grid-template-columns: repeat(6, 1fr); }
  .chips--dates .chip span { flex-direction: column; gap: 0; padding: 8px 4px; }
}
