/* ============================================================
   THE HEAVEN RESORT — 회원권 모집 랜딩
   디자인 토큰 + 컴포넌트 + 섹션 (Pretendard, 모바일 우선)
   ============================================================ */

:root {
  /* 브랜드 컬러 (THE HEAVEN BI: 딥그린 + 골드, 보조 네이비) */
  --green-deep:   #0B3D2E;
  --green-deep-2: #0A3326;
  --navy:         #0A2A43;
  --navy-deep:    #061E31;
  --gold:         #C5A059;
  --gold-soft:    #D8BE8A;

  /* 중립 */
  --bg:        #FAF9F6;   /* 따뜻한 화이트 */
  --bg-alt:    #F2F0EA;
  --surface:   #FFFFFF;
  --ink:       #1A1C1B;
  --ink-soft:  #4A5249;
  --ink-faint: #8A8F88;
  --line:      #E4E1D8;
  --line-soft: #EFEDE6;

  /* 타이포 (프리텐다드 통일) */
  --font: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --t-eyebrow: 0.78rem;
  --t-body:    1.0625rem;
  --t-sub:     clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  --t-h2:      clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  --t-hero:    clamp(2.6rem, 1.4rem + 5.6vw, 5.6rem);
  --t-stat:    clamp(2.8rem, 1.8rem + 4vw, 5rem);

  /* 간격 */
  --space-section: clamp(5rem, 3rem + 8vw, 11rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);

  /* 모션 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;

  /* 그림자 / radius */
  --shadow-sm: 0 1px 2px rgba(10,42,67,0.04), 0 2px 8px rgba(10,42,67,0.04);
  --shadow-md: 0 8px 30px rgba(10,42,67,0.08);
  --shadow-lg: 0 24px 60px rgba(6,30,49,0.16);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  word-break: keep-all;      /* 한글: 단어/어절 단위 줄바꿈 (단어 중간 끊김 방지) */
  overflow-wrap: break-word; /* 긴 영문/URL 등은 넘치지 않게 */
  text-wrap: pretty;         /* 본문: 외톨이 단어·짧은 막줄 방지 (줄바꿈 매끄럽게) */
}

/* 제목·짧은 문구: 줄 길이 균형 (뚝뚝 끊겨 보이는 현상 완화) */
.hero__title, .hero__sub, .section-title, .section-sub, .faq__q,
.tier__name, .popup__title, .stat__label, .club__card h3, .flow__step h4 {
  text-wrap: balance;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { list-style: none; padding: 0; }
address { font-style: normal; }

.material {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 공통 타이포 ---------- */
.eyebrow, .section-eyebrow {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-sub {
  font-size: var(--t-sub);
  color: var(--ink-soft);
  margin-top: 1.25rem;
  line-height: 1.7;
  max-width: 40ch;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1.05rem 2.2rem;
  font-family: var(--font);
  font-size: 1rem; font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 30px rgba(197,160,89,0.35); }
.btn--gold:hover { background: #b48f47; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(197,160,89,0.45); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--block { width: 100%; }

/* ---------- GNB ---------- */
.gnb {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.gnb__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.18em; color: #fff;
  transition: color .4s var(--ease);
}
.brand span { color: var(--gold); font-weight: 600; }
.gnb__cta {
  font-size: 0.9rem; font-weight: 600; color: #fff;
  padding: 0.6rem 1.4rem; border: 1px solid rgba(255,255,255,0.55); border-radius: var(--r-pill);
  transition: all .35s var(--ease);
}
.gnb__cta:hover { background: var(--gold); border-color: var(--gold); }
/* 스크롤 시 흰 배경 고정 */
.gnb.is-stuck { background: rgba(250,249,246,0.92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.gnb.is-stuck .brand { color: var(--green-deep); }
.gnb.is-stuck .gnb__cta { color: var(--green-deep); border-color: var(--green-deep); }
.gnb.is-stuck .gnb__cta:hover { color: #fff; background: var(--green-deep); }

/* ---------- 좌측 도트 인디케이터 ---------- */
.dots {
  position: fixed; left: clamp(0.75rem, 2vw, 2rem); top: 50%; transform: translateY(-50%);
  z-index: 55; display: flex; flex-direction: column; gap: 1rem;
}
.dot { position: relative; display: block; padding: 4px; }
.dot span {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.7);
  transition: all .35s var(--ease);
}
.dot.is-active span { background: var(--gold); border-color: var(--gold); transform: scale(1.4); }
.dot::after {
  content: attr(data-label);
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  font-size: 0.72rem; color: #fff; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.dot:hover::after { opacity: 0.9; }
/* 밝은 섹션 위에서는 도트를 어둡게 */
.dots.on-light .dot span { background: rgba(11,61,46,0.25); border-color: rgba(11,61,46,0.4); }
.dots.on-light .dot.is-active span { background: var(--gold); border-color: var(--gold); }
.dots.on-light .dot::after { color: var(--green-deep); }

/* ---------- reveal 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.is-in.reveal, .reveal.is-in { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }

/* ============================================================
   1. 히어로
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url('img/golf-ocean.jpg') center/cover no-repeat;
  transform: scale(1.08); will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,30,49,0.55) 0%, rgba(6,30,49,0.25) 35%, rgba(11,61,46,0.55) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter); width: 100%; }
.hero .eyebrow { color: var(--gold-soft); }
.hero__title { font-size: var(--t-hero); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero__sub { color: rgba(255,255,255,0.9); font-size: var(--t-sub); margin: 1.6rem 0 2.6rem; max-width: 42ch; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.8); font-size: 0.66rem; letter-spacing: 0.3em;
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0)); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity:.4; transform-origin: top; } 50% { transform: scaleY(1); opacity:1; transform-origin: top; } }

/* ============================================================
   2. 신뢰·규모
   ============================================================ */
.proof { padding: var(--space-section) 0; text-align: center; background: var(--bg); }
.proof .section-title { margin-inline: auto; }
.proof .section-eyebrow { color: var(--gold); }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.stat__num { font-size: var(--t-stat); font-weight: 800; color: var(--green-deep); line-height: 1; letter-spacing: -0.03em; }
.stat__unit { font-size: 1rem; font-weight: 600; color: var(--gold); margin-top: -0.4rem; }
.stat__label { font-size: 0.92rem; color: var(--ink-soft); max-width: 18ch; line-height: 1.5; }
.proof__lead { margin: clamp(3rem,5vw,4.5rem) auto 0; max-width: 44ch; font-size: var(--t-sub); color: var(--ink); line-height: 1.7; }

/* ============================================================
   3. 리조트·뷰
   ============================================================ */
.view { padding: var(--space-section) 0; background: var(--bg-alt); }
.view__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.view__head .section-sub { margin-inline: auto; text-align: center; }
.view__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: clamp(2.5rem,5vw,4rem); }
.view__cell { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.view__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.view__cell:hover img { transform: scale(1.05); }
.view__cell--lg { grid-column: 1 / -1; aspect-ratio: 16/9; }
.view__cell:not(.view__cell--lg) { aspect-ratio: 4/3; }

/* ============================================================
   4. 객실(레지던스)
   ============================================================ */
.residence { display: grid; grid-template-columns: 1fr; }
.residence__media { position: relative; min-height: 60vh; }
.residence__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.residence__body { background: var(--green-deep); color: #fff; padding: var(--space-section) var(--gutter); }
.residence__body .section-eyebrow { color: var(--gold-soft); }
.residence__body .section-title { color: #fff; }
.residence__body .section-sub { color: rgba(255,255,255,0.82); }
.ticks { margin: 2rem 0 0; display: flex; flex-direction: column; gap: 0.9rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: rgba(255,255,255,0.92); }
.ticks li::before {
  content: 'check'; font-family: 'Material Symbols Outlined';
  position: absolute; left: 0; top: 0.1rem; color: var(--gold); font-size: 1.25rem;
}
.residence__sub-media { margin-top: 2.5rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-height: 360px; }
.residence__sub-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   5. 커뮤니티 멤버십 클럽
   ============================================================ */
.club { padding: var(--space-section) 0; background: var(--bg); text-align: center; }
.club .section-title, .club .section-sub { margin-inline: auto; }
.club__grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: clamp(2.5rem,5vw,4rem); text-align: left; }
.club__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.8rem; min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.club__card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.club__icon { font-size: 2rem; color: var(--green-deep); }
.club__card h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.club__card p { font-size: 0.95rem; color: var(--ink-soft); }
.club__card--photo { position: relative; padding: 0; overflow: hidden; min-height: 240px; border: none; }
.club__card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.club__card--photo:hover img { transform: scale(1.06); }
.club__card--photo figcaption {
  position: relative; z-index: 2; margin-top: auto; width: 100%;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 2.5rem 1.6rem 1.4rem; color: #fff; font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(to top, rgba(6,30,49,0.85), rgba(6,30,49,0));
}
.club__card--photo .club__icon { color: var(--gold-soft); font-size: 1.5rem; }

/* ============================================================
   6. 회원권 상품 안내 (보증금 거치형)
   ============================================================ */
.membership { padding: var(--space-section) 0; background: var(--navy-deep); color: #fff; text-align: center; }
.membership .section-eyebrow { color: var(--gold-soft); }
.membership .section-title { color: #fff; margin-inline: auto; }
.membership .section-sub { color: rgba(255,255,255,0.78); margin-inline: auto; }

.tier {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg); padding: clamp(1.5rem,3vw,2.6rem);
  margin-top: clamp(2.5rem,4vw,3.5rem); text-align: left;
}
.tier--signature { border-color: rgba(197,160,89,0.5); background: rgba(197,160,89,0.07); }
.tier__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 1.6rem; }
.tier__name { font-size: clamp(1.4rem,1rem+1.6vw,2rem); font-weight: 700; letter-spacing: 0.04em; }
.tier__name em { color: var(--gold); font-style: normal; }
.tier__desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.tier__table { display: flex; flex-direction: column; gap: 0.5rem; }
.tier__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; align-items: center;
  padding: 1.1rem 1.1rem; border-radius: var(--r-md);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.tier__row small { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 400; margin-top: 0.15rem; }
.tier__row--head { background: transparent; border: none; padding-bottom: 0.2rem; }
.tier__row--head span { font-size: 0.8rem; letter-spacing: 0.05em; color: var(--gold-soft); font-weight: 600; }
.tier__row--head small { color: var(--gold); display: inline; font-size: 0.8rem; }
.tier__deposit { font-size: 1.3rem; font-weight: 800; color: #fff; }
.tier--signature .tier__deposit { color: var(--gold-soft); }
.tier__cta {
  grid-column: 1 / -1; margin-top: 0.4rem; text-align: center;
  font-size: 0.9rem; font-weight: 600; color: var(--gold);
  padding: 0.7rem 1rem; border: 1px solid rgba(197,160,89,0.5); border-radius: var(--r-pill);
  transition: all .35s var(--ease);
}
.tier__cta:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.membership__note { margin: 2.5rem auto 0; max-width: 52ch; font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* 거치 구조 3단계 (안심) */
.flow { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: clamp(2rem,4vw,3.2rem) 0 0; padding: 0; list-style: none; text-align: left; }
.flow__step { position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md); padding: 1.5rem 1.5rem 1.5rem 4.4rem; }
.flow__no { position: absolute; left: 1.4rem; top: 1.35rem; font-size: 1.35rem; font-weight: 800; color: var(--gold); }
.flow__step h4 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.flow__step p { font-size: 0.92rem; color: rgba(255,255,255,0.72); }

/* ============================================================
   8. FAQ (반론 처리)
   ============================================================ */
.faq { padding: var(--space-section) 0; background: var(--bg); text-align: center; }
.faq .section-title { margin-inline: auto; }
.faq__list { max-width: 820px; margin: clamp(2.5rem,5vw,3.5rem) auto 0; text-align: left; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: none; border: none; cursor: pointer; padding: 1.5rem 0; font-family: var(--font); font-size: 1.0625rem; font-weight: 600; color: var(--ink); text-align: left; }
.faq__icon { flex: none; color: var(--gold); transition: transform .35s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq__a p { margin: 0; padding: 0 0 1.5rem; font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.78; max-width: 66ch; }

/* 안심 배지 (폼 인트로) */
.trust { margin: 1.8rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.trust li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.93rem; color: var(--ink-soft); }
.trust li .material { font-size: 1.2rem; color: var(--green-deep); }

/* ============================================================
   7. 입지·접근성
   ============================================================ */
.location { position: relative; padding: var(--space-section) 0; color: #fff; overflow: hidden; }
.location__bg { position: absolute; inset: 0; background: url('img/hero-aerial.jpg') center/cover no-repeat; }
.location__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(6,30,49,0.85), rgba(11,61,46,0.55)); }
.location__content { position: relative; z-index: 2; }
.location .section-title { color: #fff; }
.location .section-sub { color: rgba(255,255,255,0.85); }
.location__facts { display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; margin: 1.9rem 0 0; padding: 0; list-style: none; }
.location__facts li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1.1rem; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--r-pill); font-size: 0.92rem; font-weight: 500; color: #fff; background: rgba(255,255,255,0.07); backdrop-filter: blur(4px); }
.location__facts .material { font-size: 1.1rem; color: var(--gold-soft); }
.location__addr { margin-top: 2rem; font-size: 1.1rem; line-height: 1.9; color: rgba(255,255,255,0.92); }
.location__addr a { color: var(--gold-soft); font-weight: 700; }

/* ============================================================
   8. 최종 전환 — 폼 + 푸터
   ============================================================ */
.contact { background: var(--bg-alt); }
.contact__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem,5vw,4rem); padding: var(--space-section) var(--gutter); }
.contact__intro .section-eyebrow { color: var(--gold); }
.contact__tel {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem;
  font-size: 1.8rem; font-weight: 800; color: var(--green-deep); letter-spacing: -0.02em;
}
.contact__tel .material { color: var(--gold); font-size: 1.6rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.6rem); box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__micro { grid-column: 1/-1; font-size: 0.9rem; color: var(--gold); font-weight: 600; margin-bottom: 0.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field__label i { color: var(--gold); font-style: normal; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,160,89,0.18); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1/-1; display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { margin-top: 0.25rem; accent-color: var(--green-deep); }
.consent__link { color: var(--green-deep); text-decoration: underline; }
.form .btn--block { grid-column: 1/-1; margin-top: 0.4rem; }
.form__status { grid-column: 1/-1; font-size: 0.95rem; text-align: center; margin: 0; min-height: 1.2em; }
.form__status.is-ok { color: var(--green-deep); font-weight: 600; }
.form__status.is-err { color: #b3261e; font-weight: 600; }

/* 푸터 */
.footer { background: var(--green-deep-2); color: rgba(255,255,255,0.7); }
.footer__inner { padding: 3rem var(--gutter); text-align: center; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__brand { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.18em; color: #fff; }
.footer__meta { font-size: 0.9rem; }
.footer__meta a { color: var(--gold-soft); font-weight: 600; }
.footer__fine { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 1rem; line-height: 1.6; max-width: 60ch; margin-inline: auto; }

/* ---------- 고정 전환 요소 ---------- */
.fab {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem; border-radius: var(--r-pill);
  background: var(--gold); color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(197,160,89,0.45);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}
.fab.is-show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #b48f47; }
.fab .material { font-size: 1.2rem; }

.mobar { display: none; }

/* ---------- 팝업 ---------- */
.popup { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.popup[hidden] { display: none; }
.popup__dim { position: absolute; inset: 0; background: rgba(6,18,30,0.72); backdrop-filter: blur(4px); animation: fade .4s var(--ease); }
.popup__panel {
  position: relative; z-index: 2; width: 100%; max-width: 440px;
  background: var(--surface); border-radius: var(--r-lg); padding: 2.6rem 2rem 2rem;
  text-align: center; box-shadow: var(--shadow-lg); animation: pop .5s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.popup__x { position: absolute; top: 0.9rem; right: 0.9rem; background: none; border: none; cursor: pointer; color: var(--ink-faint); padding: 0.3rem; }
.popup__x .material { font-size: 1.5rem; }
.popup__eyebrow { font-size: 0.72rem; letter-spacing: 0.3em; color: var(--gold); font-weight: 700; margin-bottom: 0.8rem; }
.popup__title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: var(--green-deep); letter-spacing: -0.02em; }
.popup__values { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.5rem 0; }
.popup__values li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: 0.98rem; text-align: left; max-width: max-content; margin-inline: auto; }
.popup__values li::before { content: 'verified'; font-family: 'Material Symbols Outlined'; position: absolute; left: 0; color: var(--gold); font-size: 1.1rem; }
.popup__cta { display: flex; flex-direction: column; gap: 0.7rem; }
.popup__cta .btn { width: 100%; }
.popup__cta .btn--ghost { color: var(--green-deep); border-color: var(--line); }
.popup__cta .btn--ghost:hover { background: var(--bg-alt); }
.popup__dismiss { margin-top: 1.2rem; background: none; border: none; color: var(--ink-faint); font-size: 0.85rem; cursor: pointer; text-decoration: underline; }

.reopen {
  position: fixed; left: 1.2rem; bottom: 1.4rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.75rem 1.2rem; border-radius: var(--r-pill); border: none; cursor: pointer;
  background: var(--green-deep); color: #fff; font-weight: 600; font-size: 0.85rem;
  box-shadow: var(--shadow-md); animation: pop .5s var(--ease);
}
.reopen[hidden] { display: none; }
.reopen .material { font-size: 1.1rem; color: var(--gold-soft); }

/* ============================================================
   반응형 — 태블릿 이상
   ============================================================ */
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .view__grid { grid-template-columns: 1fr 1fr; }
  .residence { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .residence__media { min-height: 100%; }
  .club__grid { grid-template-columns: repeat(3, 1fr); }
  .tier__row { grid-template-columns: 1.1fr 1.4fr 1.4fr auto; }
  .tier__cta { grid-column: auto; margin-top: 0; }
  .contact__inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; max-width: var(--container); margin-inline: auto; }
  .contact__intro { position: sticky; top: 6rem; }
}

@media (min-width: 1024px) {
  .view__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .view__cell--lg { grid-column: 1 / -1; aspect-ratio: 21/9; }
}

/* ---------- 모바일 전용 하단 바 ---------- */
@media (max-width: 767px) {
  .fab { display: none; }
  .dots { display: none; }
  .mobar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; inset: auto 0 0 0; z-index: 70;
    background: var(--surface); box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }
  .mobar a { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 1rem; font-weight: 700; font-size: 0.95rem; }
  .mobar__call { color: var(--green-deep); border-right: 1px solid var(--line); }
  .mobar__form { background: var(--gold); color: #fff; }
  body { padding-bottom: 56px; }
  .reopen { bottom: 70px; }
}

/* ---------- 모션 최소화 존중 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero__bg { transform: none; }
}
