:root {
  /* K골프 그린 톤 */
  --blue: #2ea44f;        /* primary (CTA/선택) — 배너 골퍼 셔츠 그린 */
  --blue-dark: #1e7e3c;   /* active */
  --green-deep: #14532d;  /* 포레스트 그린 — 히어로/브랜드 */
  --green-mid: #3aa856;
  --lime-soft: #eaf5ee;   /* 연한 민트 배경 */
  --orange: #f26a1f;      /* 포인트 강조 — 배너 "2026" 오렌지 */
  --ink: #17251c;
  --gray-700: #4b5a4f;
  --gray-500: #8b978d;
  --gray-300: #cdd6cf;
  --gray-100: #eef3ef;
  --gray-50: #f7faf8;
  --line: #e2e9e3;
  --radius: 14px;
  --max: 480px;
  --cta-h: 88px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--lime-soft);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.app {
  position: relative;
  max-width: var(--max);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 상단바 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 6px;
  background: #fff;
}
.topbar__back {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.topbar__title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
}
.topbar__spacer {
  width: 40px;
}

/* 화면 전환 */
.screens {
  flex: 1;
  position: relative;
  display: flex;
}
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
}
.screen.is-active {
  display: flex;
}
.screen__scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom));
}

/* 히어로 배너 */
.hero {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--lime-soft);
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  margin-bottom: 6px;
}
.hero__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__lg {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* 커버 본문 */
.cover-body {
  padding: 28px 24px 8px;
}
.cover-title {
  font-size: 24px;
  line-height: 1.34;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
}
.benefit__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}
.benefit__icon--won {
  background: #ffb400;
}
.benefit__icon--point {
  background: var(--blue);
}
.benefit__icon--gift,
.benefit__icon--thumb {
  background: transparent;
  font-size: 26px;
}
.benefit__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.benefit__sub {
  font-size: 13px;
  font-style: normal;
  color: var(--gray-500);
}
.benefit__main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* 질문 화면 */
.step-count {
  margin: 8px 0 10px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.question {
  margin: 0 0 22px;
  padding: 0 24px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.options {
  display: flex;
  flex-direction: column;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
/* 옵션 사이 구분선: 좌우 여백 + 얇은 hairline */
.option:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleY(0.5);
  transform-origin: bottom;
}
.option__tag {
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 4px;
}
.option__check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.option__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid var(--gray-300);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.option.is-selected {
  color: var(--blue);
  font-weight: 700;
}
.option.is-selected .option__check::after {
  border-color: var(--blue);
}

/* 하단 CTA */
.cta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0));
}
.btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:active {
  background: var(--blue-dark);
}
.btn--primary:disabled {
  background: #b7dcc2;
  cursor: default;
}
.btn--ghost {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* 바텀시트 */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] {
  display: none;
}
.sheet__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: fade 0.2s ease;
}
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: var(--max);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  animation: slideup 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.sheet__desc {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--gray-500);
}
.sheet__error {
  min-height: 18px;
  margin: 8px 2px 0;
  font-size: 13px;
  color: #f04452;
}
.sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.sheet__actions .btn {
  flex: 1;
}
.sheet__actions .btn--ghost {
  flex: 0 0 34%;
}

/* 폼 필드 */
.field {
  display: block;
  margin-bottom: 14px;
}
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 2px 8px;
}
.field__input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-50);
  padding: 0 16px;
  font-size: 17px;
  color: var(--ink);
  outline: none;
}
.field__input:focus {
  border-color: var(--blue);
  background: #fff;
}
#contact-form .btn {
  margin-top: 8px;
}

/* 동의 목록 */
.consent-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.consent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}
.consent-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
}
.consent-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 완료 화면 */
.done {
  padding: 20px 24px 0;
}
.done__check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.done__brand {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.done__title {
  margin: 0 0 30px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.summary {
  margin: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-50);
}
.summary__row {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
}
.summary__row + .summary__row {
  border-top: 1px solid var(--line);
}
.summary__label {
  flex: 0 0 84px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
}
.summary__value {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}

/* 폼 내 개인정보 동의 */
.consent-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 2px 6px;
}
.consent-inline__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.consent-inline__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent-inline__text b {
  color: var(--blue);
  font-weight: 700;
}

/* 데스크톱 전용 요소는 모바일에서 숨김 */
.brandrail {
  display: none;
}
.cover-hint {
  display: none;
}

/* ===== 데스크톱(PC) 레이아웃: 화면을 꽉 채우는 2단 구성 ===== */
@media (min-width: 1024px) {
  body {
    display: flex;
    min-height: 100vh;
    background: #fff;
  }

  /* 좌측 브랜드 패널 — 흰 배경, 배너를 액자처럼 배치 */
  .brandrail {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    background: #fff;
  }
  /* 액자형 배너 + 그 아래 혜택 텍스트, 전체 세로 중앙 정렬 */
  .brandrail__inner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 40px 52px;
    background: #fff;
  }
  .brandrail__img {
    position: static;
    flex: 0 0 auto;
    transform: none;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23, 37, 28, 0.1);
  }
  /* 배너 하단 혜택 영역 */
  .brandrail__overlay {
    flex: 0 0 auto;
    padding: 14px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .brandrail__overlay > * {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .brandrail__tag {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--blue);
  }
  /* 혜택 4개를 2×2 가로 배치 */
  .brandrail__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  .brandrail__benefits .benefit__sub {
    color: var(--gray-500);
  }
  .brandrail__benefits .benefit__main {
    color: var(--ink);
    font-size: 18px;
  }
  .brandrail__note {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
    letter-spacing: -0.01em;
    text-align: center;
  }

  /* 우측 앱(폼) 패널 — 좌측 배너 영역과 5:5로 분할 */
  .app {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
  }

  /* 상단바 / 스텝 콘텐츠는 가운데 정렬 + 폭 제한 */
  .topbar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .screen {
    align-items: center;
  }
  .screen__scroll {
    width: 100%;
    max-width: 560px;
    padding-top: 24px;
  }

  /* 커버 화면: 히어로·혜택은 좌측 패널로 이동, 우측엔 시작 안내만 */
  .screen[data-screen="cover"] .hero,
  .screen[data-screen="cover"] .benefits {
    display: none;
  }
  .cover-hint {
    display: block;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-500);
  }
  .cover-body {
    padding-top: 40px;
  }
  .cover-title {
    font-size: 30px;
  }

  /* 하단 CTA — 버튼을 가운데 폭 제한 */
  .cta-bar {
    padding-bottom: 28px;
  }
  .cta-bar .btn {
    max-width: 520px;
    margin: 0 auto;
    display: block;
  }

  /* 바텀시트를 데스크톱에선 가운데 모달로 */
  .sheet {
    align-items: center;
  }
  .sheet__dim {
    background: rgba(0, 0, 0, 0.45);
  }
  .sheet__panel {
    max-width: 440px;
    border-radius: 20px;
    padding: 32px;
    animation: popin 0.2s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }

  /* 완료 화면 폰 일러스트가 너무 커지지 않도록 */
  .done__phone {
    max-width: 520px;
  }
}

@keyframes popin {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideup {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 동의 항목 "자세히" 링크 */
.consent-item__text {
  flex: 1 1 auto;
}
.consent-detail {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 4px 0 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.consent-detail:hover {
  color: var(--blue);
}

/* 개인정보처리방침 팝업 */
.privacy-sheet {
  z-index: 70;
}
.privacy-panel {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  padding: 22px 20px calc(16px + env(safe-area-inset-bottom));
}
.privacy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.privacy-head .sheet__title {
  margin: 0;
  font-size: 18px;
}
.privacy-close {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 6px;
}
.privacy-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 4px 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-700);
}
.privacy-lead {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.privacy-body p {
  margin: 0 0 10px;
}
.privacy-body h4 {
  margin: 22px 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.privacy-body h5 {
  margin: 16px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.privacy-toc {
  margin: 16px 0 8px;
  padding: 14px 18px 14px 34px;
  background: var(--gray-50);
  border-radius: 12px;
}
.privacy-toc li {
  margin-bottom: 5px;
}
.privacy-note {
  font-size: 12px;
  color: var(--gray-500);
}
.privacy-updated {
  font-weight: 700;
  color: var(--ink);
}
.privacy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 12px;
}
.privacy-body th,
.privacy-body td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.privacy-body th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.privacy-body a {
  color: var(--blue);
  word-break: break-all;
}
.privacy-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 26px 0 4px;
}
.privacy-foot {
  padding-top: 14px;
}
.privacy-foot .btn {
  width: 100%;
}
