/* 세종시 시스템창 구경하는 집 모집 랜딩 — 구조는 아줄 랜딩, 색·서체·체크리스트는 A안 광고 소재(ads/build.py)를 따른다 */
@font-face {
  font-family: "Mozaik P";
  src: url("assets/fonts/mozaik-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Mozaik P";
  src: url("assets/fonts/mozaik-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Mozaik P";
  src: url("assets/fonts/mozaik-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --red: #c31a14;
  --red-deep: #8e1f1f;
  --red-soft: #fbe9e8;
  --gray: #746661;
  --ink: #1f1b18;
  --ink-2: #5a514c;
  --paper: #ece6df;
  --paper-2: #e3dcd4;
  --cream: #fbf8f3;
  --note: #fffdf8;
  --line: #d9cfc4;
  --line-soft: #ebe4dc;
  --white: #fff;
  --error: #b42318;
  --display:
    "Mozaik P", "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(18px, 5vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.is-locked {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
  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);
}
main {
  overflow-x: clip;
} /* 테이프 장식이 좁은 화면 가장자리를 넘어도 가로 스크롤이 생기지 않게 한다(sticky는 유지) */
.nowrap {
  white-space: nowrap;
}

/* 와이어프레임에서 아직 정해지지 않은 값 표시(운영 전에 실제 값으로 바꾼다) */
.wf-todo {
  display: inline-block;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff4c2;
  border: 1px dashed #c99a00;
  color: #7a5a00;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
}

/* ── Hero: A안 광고와 같은 첫 화면(왼쪽 정렬 큰 제목 + 빨간 동그라미 50%) ── */
.hero,
.cases {
  position: relative;
  background: var(--paper);
}
.hero::before,
.cases::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .45 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero > *,
.cases > * {
  position: relative;
}
.hero {
  padding: 22px var(--pad) 26px;
}
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero__logo {
  width: 104px;
  height: auto;
}
.hero__dealer {
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero__area {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  padding: 3px 12px 3px 9px;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  font-family: var(--display);
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 800;
  color: var(--red);
  line-height: 1.5;
}
.hero__area::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.hero__title {
  margin-top: 10px;
  font-family: var(--display);
  line-height: 1.08;
}
.hero__t1 {
  display: flex;
  align-items: center;
  gap: 0.22em;
  font-weight: 800;
  font-size: clamp(30px, 8.4vw, 56px);
  letter-spacing: -0.04em;
}
.hero__win {
  width: 1.11em;
  height: 0.97em;
  object-fit: contain;
  flex: none;
  transform: translateY(0.02em);
}
.hero__t2 {
  display: block;
  margin-top: 4px;
  font-weight: 900;
  font-size: clamp(44px, 14vw, 100px);
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.hero__t2 .hl {
  padding: 0 0.04em;
  background: linear-gradient(
    transparent 60%,
    rgba(195, 26, 20, 0.2) 60%,
    rgba(195, 26, 20, 0.2) 90%,
    transparent 90%
  );
}
.hero__t2 .sm {
  font-size: 0.68em;
  letter-spacing: -0.045em;
}

.offer {
  display: flex;
  align-items: center;
  margin-top: clamp(6px, 2vw, 14px);
  font-family: var(--display);
  white-space: nowrap;
}
.offer__lab {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.offer__lab strong {
  font-weight: 800;
  font-size: clamp(15px, 5.2vw, 34px);
  letter-spacing: -0.03em;
}
.offer__lab span {
  margin-top: 0.3em;
  font-weight: 700;
  font-size: clamp(10px, 3.2vw, 21px);
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
/* 동그라미는 50% 글자 상자보다 위아래 .33em, 양옆 .35em 크게 그린다.
   그만큼 바깥 여백을 미리 잡아 두어야 아래 구역에 덮이거나 옆 글자에 닿지 않는다 */
.offer__pct {
  position: relative;
  margin: 0.38em 0.42em;
  padding: 0 0.07em;
  font-weight: 900;
  font-size: clamp(44px, 15vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.offer__ring {
  position: absolute;
  left: -0.35em;
  top: -0.33em;
  width: calc(100% + 0.7em);
  height: calc(100% + 0.64em);
  overflow: visible;
}
.offer__spark {
  position: absolute;
  right: -0.47em;
  top: -0.27em;
  width: 0.41em;
  height: 0.41em;
}
.offer__dc {
  font-weight: 900;
  font-size: clamp(25px, 8.4vw, 58px);
  color: var(--red);
  letter-spacing: -0.03em;
}

/* D-day: 50% 할인 아래 빨간 알약(스타일 1). 마감일은 app.js DEADLINE 한 곳에서 바꾼다 */
.dday {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: clamp(12px, 3.6vw, 22px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(15px, 4.4vw, 18px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(195, 26, 20, 0.25);
}
.dday__d {
  font-weight: 900;
}
.dday[hidden],
.dday-recruit[hidden] {
  display: none;
}
.dday-recruit b {
  color: var(--red);
  font-weight: 800;
}
/* 날짜와 D-day가 중간에서 끊기지 않게 한 덩어리로 둔다 */
[data-dday-start],
[data-dday-date],
.dday-recruit {
  white-space: nowrap;
}

/* ── 시공 전·후 + 체크리스트 메모지 ── */
.cases {
  padding: 6px var(--pad) 34px;
}
.cases__pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 3.4vw, 26px);
}
.win {
  position: relative;
  padding: clamp(5px, 1.2vw, 10px);
  background: var(--white);
  border-radius: 5px;
  box-shadow:
    0 8px 20px rgba(70, 48, 36, 0.18),
    inset 0 0 0 1px #e2dad1;
}
.win::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -8px;
  height: 9px;
  background: #f7f4f0;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(70, 48, 36, 0.18);
}
.win img {
  width: 100%;
  height: auto;
  aspect-ratio: 964 / 620;
  object-fit: cover;
  border-radius: 2px;
}
.win__tag {
  position: absolute;
  left: clamp(11px, 2.6vw, 22px);
  bottom: clamp(11px, 2.6vw, 22px);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(31, 27, 24, 0.82);
  color: var(--white);
  font-size: clamp(12px, 3.2vw, 16px);
  font-weight: 700;
  line-height: 1.6;
}
.win--after .win__tag {
  background: var(--red);
}
.cases__arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(32px, 8vw, 52px);
  height: clamp(32px, 8vw, 52px);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px var(--paper);
}
.cases__arrow svg {
  width: 46%;
  height: 46%;
}
.cases__note {
  margin-top: 16px;
  text-align: right;
  font-size: 12px;
  color: var(--ink-2);
}

.paper {
  position: relative;
  margin-top: 26px;
  padding: 6px clamp(14px, 4vw, 30px) 6px clamp(46px, 11vw, 76px);
  background-color: var(--note);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(70, 48, 36, 0.12);
  background-image: linear-gradient(
    90deg,
    transparent clamp(32px, 7.6vw, 54px),
    rgba(214, 74, 74, 0.45) clamp(32px, 7.6vw, 54px),
    rgba(214, 74, 74, 0.45) calc(clamp(32px, 7.6vw, 54px) + 2px),
    transparent calc(clamp(32px, 7.6vw, 54px) + 2px)
  );
}
.paper__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 0;
  border-bottom: 1px solid #d7e3ee;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.paper__list li:last-child {
  border-bottom: 0;
}
.paper__list li::before {
  content: "";
  flex: none;
  width: 1.18em;
  height: 1.18em;
  transform: translateY(-0.06em);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='3' y='13' width='31' height='31' rx='4' fill='%23fff' stroke='%232a2420' stroke-width='3.2'/%3E%3Cpath d='M10 27.5 19.5 37 45 5' fill='none' stroke='%23c31a14' stroke-width='5.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.tape {
  position: absolute;
  width: clamp(86px, 22vw, 150px);
  height: clamp(24px, 5.6vw, 40px);
  opacity: 0.88;
  background: #d3c9bf radial-gradient(circle, #f5f1ed 0 2.4px, transparent 3px)
    0 0 / 11px 11px;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    97% 12.5%,
    100% 25%,
    97% 37.5%,
    100% 50%,
    97% 62.5%,
    100% 75%,
    97% 87.5%,
    100% 100%,
    0% 100%,
    3% 87.5%,
    0% 75%,
    3% 62.5%,
    0% 50%,
    3% 37.5%,
    0% 25%,
    3% 12.5%
  );
}
.tape--1 {
  right: -18px;
  top: -12px;
  transform: rotate(14deg);
}
.tape--2 {
  left: -22px;
  bottom: -9px;
  transform: rotate(24deg);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  margin-top: 28px;
  padding: 12px 20px;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(17px, 4.6vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.cta::after {
  content: "›";
  font-size: 26px;
  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, 0.24);
}

/* ── 공통 섹션 ── */
.recruit,
.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;
  letter-spacing: -0.03em;
}
.sub-title {
  margin-top: 36px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.muted {
  color: var(--ink-2);
  font-weight: 500;
}

/* 모집 안내 */
.recruit {
  background: var(--cream);
}
.info__list {
  margin-top: 18px;
  border-top: 2px solid var(--ink);
}
.info__row {
  display: grid;
  grid-template-columns: 84px 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__em {
  color: var(--red);
  font-weight: 800;
}
.info__organizer {
  font-weight: 800;
  line-height: 1.45;
}
.info__tel {
  color: var(--red);
  font-weight: 800;
  text-underline-offset: 3px;
}

.complexes {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.complex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 14px 14px 12px;
  text-align: left;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.complex:hover {
  border-color: var(--red);
}
.complex__village {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.4;
}
.complex__name {
  margin-top: 2px;
  font-family: var(--display);
  font-size: clamp(15px, 4.3vw, 18px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.complex__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
.complex__quota {
  padding: 0 8px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
}
.complexes__etc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.complexes__etc strong {
  color: var(--ink);
}

.bonus {
  position: relative;
  margin-top: 20px;
  padding: 14px 16px 14px 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.bonus::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c31a14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.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: 0.04em;
}
.why .section-title {
  margin-top: 4px;
}
.why__list {
  margin-top: 20px;
  display: grid;
}
.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(--paper);
  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(--paper);
  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[hidden] {
  display: none;
}
.form__legend-note {
  font-size: 13px;
  color: var(--ink-2);
}
.field {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field[hidden] {
  display: none;
}
.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: var(--red-soft);
  color: var(--red-deep);
}
.opt {
  background: var(--paper);
  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(195, 26, 20, 0.18);
}
.input--area {
  min-height: 96px;
  resize: vertical;
}
.input[aria-invalid="true"],
.picker[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: "! ";
}

/* 단지 선택: 누르면 하단 시트가 열린다 */
.picker {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-height: 56px;
  padding: 10px 46px 10px 14px;
  text-align: left;
  cursor: pointer;
  background: var(--white);
  border: 1px solid #cbbcad;
  border-radius: 10px;
}
.picker::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
}
.picker__text {
  font-size: 16px;
  font-weight: 500;
  color: #9a8d86;
  line-height: 1.4;
}
.picker.is-filled {
  border-color: var(--ink);
}
.picker.is-filled .picker__text {
  color: var(--ink);
  font-weight: 800;
}
.picker__sub {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
.picker__sub[hidden] {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips--month {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 520px) {
  .chips--month {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.chip {
  position: relative;
  display: block;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.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;
}
.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::before {
  content: "✓";
  font-weight: 800;
}
.chip input:focus-visible + span {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.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(--display);
  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;
}
.signal {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: center;
}
.signal__more {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.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[hidden] {
  display: 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;
  letter-spacing: -0.03em;
}
.done__receipt {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-2);
}
.done__receipt strong {
  color: var(--ink);
  letter-spacing: 0.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);
}
.bonus--done {
  margin-top: 14px;
  text-align: left;
  font-size: 14px;
}
.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;
}

/* ── 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: 0.85;
}
.footer p + p {
  margin-top: 4px;
}
.footer__biz {
  margin: 12px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.footer__biz div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer__biz dt {
  flex: none;
  font-weight: 700;
}
.footer__biz a {
  color: inherit;
}
.footer .wf-todo {
  font-size: 11px;
  line-height: 18px;
}

/* ── 하단 시트(단지 선택) · 안내 모달 ── */
.sheet,
.modal {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--white);
}
.sheet::backdrop,
.modal::backdrop {
  background: rgba(20, 16, 14, 0.5);
}
.sheet {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 86dvh;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(20, 16, 14, 0.2);
}
.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.24s ease-out;
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open] {
    animation: none;
  }
}
.sheet__handle {
  flex: none;
  width: 42px;
  height: 4px;
  margin: 10px auto 4px;
  border-radius: 4px;
  background: #cdc4bb;
}
.sheet__head,
.modal__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.sheet__title,
.modal__title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.sheet__desc {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}
.sheet__close {
  flex: none;
  min-width: 52px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.sheet__options {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 8px;
}
.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
}
.opt-row:hover {
  background: var(--cream);
}
.opt-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.opt-row__village {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
}
.opt-row__text strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.opt-row--etc .opt-row__village {
  margin-top: 1px;
  font-weight: 600;
}
.opt-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.opt-row__meta::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbbcad;
  background: var(--white);
}
.opt-row[aria-checked="true"] {
  background: #fdf1f0;
}
.opt-row[aria-checked="true"] .opt-row__meta::after {
  border: 7px solid var(--red);
}
.opt-row:focus-visible {
  outline-offset: -3px;
}

.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: 86dvh;
  border-radius: 14px;
}
.modal[open] {
  display: flex;
  flex-direction: column;
}
.modal__head {
  padding-top: 16px;
}
.modal__list {
  overflow-y: auto;
  padding: 8px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.modal__list > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.modal__list > div:last-child {
  border-bottom: 0;
}
.modal__list dt {
  font-weight: 700;
  color: var(--gray);
}

@media (min-width: 760px) {
  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: 32px;
  }
  .hero__logo {
    width: 132px;
  }
  .sheet {
    inset: 0;
    width: min(480px, calc(100vw - 32px));
    margin: auto;
    max-height: 80dvh;
    padding-bottom: 0;
    border-radius: 16px;
  }
  .sheet[open] {
    animation: none;
  }
}
