/* =========================================================
   모스트품격부동산 · 김제민 — Mobile Brand Card
   Apple + Toss inspired · White · Minimal · Trust
   Place: 부산 수영구 광안리 타워더모스트 104호
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-muted: #f2f4f6;
  --surface: #ffffff;
  --text: #191f28;
  --text-secondary: #4e5968;
  --text-tertiary: #8b95a1;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --accent: #b8952c;
  --accent-soft: #f7f1e3;
  --glow-gold: rgba(201, 162, 39, 0.45);
  --glow-gold-soft: rgba(201, 162, 39, 0.18);
  --card-border-glow: linear-gradient(
    135deg,
    rgba(184, 149, 44, 0.9),
    rgba(232, 205, 120, 0.65),
    rgba(255, 236, 179, 0.95),
    rgba(201, 162, 39, 0.7),
    rgba(148, 112, 24, 0.85)
  );
  --kakao: #fee500;
  --kakao-text: #191f28;
  --success: #03b26c;
  --success-soft: #e6f8ef;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --pad: 24px;
  --max: 480px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;
  --fs-hero: clamp(36px, 9vw, 44px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--text);
  background: #eef0f3;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.app {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), var(--shadow-lg);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: var(--fs-md);
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.btn__icon svg {
  width: 100%;
  height: 100%;
}

.btn--primary {
  background: #191f28;
  color: #fff;
  box-shadow: 0 4px 14px rgba(25, 31, 40, 0.22);
}

.btn--kakao {
  background: var(--kakao);
  color: var(--kakao-text);
}

.btn--ghost {
  background: var(--bg-muted);
  color: var(--text);
}

.btn--light {
  background: #fff;
  color: var(--text);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 58px;
  font-size: var(--fs-lg);
  border-radius: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(28px, calc(env(safe-area-inset-top) + 20px)) var(--pad) max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 39, 0.1), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 55%, #f5f7fa 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  width: 100%;
}

.hero__logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.hero__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: #000;
  flex-shrink: 0;
  line-height: 0;
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__logo-name {
  margin: 0;
  padding: 0;
  font-size: clamp(16px, 4.2vw, 19px);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.hero__headline {
  margin: -18px 0 0;
  padding: 0;
  max-width: 380px;
  font-size: clamp(28px, 4.2dvh + 1.5vw, 38px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text);
  white-space: pre-line;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.typing-caret.is-done {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero__photo-wrap {
  position: relative;
  width: min(92vw, 56dvh, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 14px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(56px) scale(1);
  will-change: transform, opacity;
}

.hero__photo-wrap.is-animate {
  animation: heroPhotoEnter 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #ffffff;
}

@keyframes heroPhotoEnter {
  0% {
    opacity: 0;
    transform: translateY(56px) scale(1);
  }
  48% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  72% {
    opacity: 1;
    transform: translateY(0) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo-wrap {
    opacity: 1;
    transform: none;
  }

  .hero__photo-wrap.is-animate {
    animation: none;
  }

  .glow-card,
  .contract-card,
  .property-card,
  .category-card,
  .story-card,
  .review-card,
  .tip-card,
  .about-card,
  .location-card,
  .cta__card {
    animation: none;
  }
}

.hero__brand {
  font-size: clamp(15px, 1.8dvh + 0.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
}

.hero__name-text {
  font-size: clamp(28px, 4dvh + 1vw, 40px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero__title {
  font-size: clamp(15px, 1.8dvh + 0.4vw, 18px);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.hero__tagline {
  max-width: 360px;
  font-size: clamp(15px, 1.8dvh + 0.5vw, 18px);
  font-weight: 550;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 16px;
  white-space: pre-line;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.hero__actions .btn {
  padding: 0 10px;
  font-size: 14px;
  min-height: 46px;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  animation: floatY 2.4s var(--ease) infinite;
}

.scroll-hint__chevron {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -6px;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px var(--pad) 28px;
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  margin-bottom: 32px;
  text-align: center;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.65);
}

.section__title {
  font-size: var(--fs-2xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.section__desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.55;
}

/* 히어로 제외 본문 텍스트 중앙정렬 */
main .contract-card__body,
main .property-card__body,
main .category-card,
main .story-card,
main .review-card,
main .tip-card,
main .about-card__intro,
main .about-meta,
main .location-info,
main .modal__title,
main .modal__desc {
  text-align: center;
}

main .nv-review,
main .nv-review__text,
main .nv-review__who {
  text-align: left;
}

main .contract-card__meta,
main .property-card__features,
main .review-card__foot,
main .category-card__text {
  justify-content: center;
  align-items: center;
}

main .category-card {
  align-items: center;
}

main .tip-card {
  justify-content: flex-start;
}

main .about-meta__row {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
}

main .location-info li {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

main .story-step {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

main .story-step:not(:last-child)::before {
  left: 50%;
  transform: translateX(-50%);
}

main .story-steps {
  align-items: center;
}

/* ---------- Swipe track ---------- */
.swipe {
  margin: 0 calc(var(--pad) * -1);
  overflow: hidden;
}

.swipe__track {
  display: flex;
  gap: 14px;
  padding: 4px var(--pad) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.swipe__track::-webkit-scrollbar {
  display: none;
}

.swipe__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  min-height: 8px;
}

.swipe__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.swipe__dot.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--accent);
}

/* ---------- Spotlight carousel (full-width + breath emphasize) ---------- */
.swipe--spotlight {
  margin: 0 calc(var(--pad) * -1);
  /* 가로만 클리핑 — 확대 여유는 카드 폭을 줄여 확보 */
  overflow: hidden;
  padding: 8px 0 4px;
}

.swipe--spotlight .swipe__track {
  gap: 0;
  padding: 48px 0 40px;
  scroll-snap-type: x mandatory;
  align-items: center;
}

/* 기본 폭을 줄여 scale 여유 공간을 확보 (잘림 방지) */
.swipe--spotlight .contract-card,
.swipe--spotlight .property-card {
  flex: 0 0 82%;
  width: 82%;
  max-width: none;
  margin: 0 9%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: scale(0.94);
  transform-origin: center center;
  transition: none;
  animation: none;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.swipe--spotlight .contract-card.is-emphasize,
.swipe--spotlight .property-card.is-emphasize {
  z-index: 6;
  animation: cardBreath 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}

@keyframes cardBreath {
  0% {
    transform: scale(0.94);
    box-shadow:
      0 0 0 1px rgba(201, 162, 39, 0.12),
      0 8px 22px rgba(184, 149, 44, 0.1);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 2px rgba(212, 175, 55, 0.9),
      0 0 32px rgba(212, 175, 55, 0.45),
      0 0 56px rgba(201, 162, 39, 0.28),
      0 18px 40px rgba(184, 149, 44, 0.22);
  }
  100% {
    transform: scale(0.94);
    box-shadow:
      0 0 0 1px rgba(201, 162, 39, 0.16),
      0 8px 24px rgba(184, 149, 44, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe--spotlight .contract-card,
  .swipe--spotlight .property-card {
    transform: none;
  }

  .swipe--spotlight .contract-card.is-emphasize,
  .swipe--spotlight .property-card.is-emphasize {
    animation: none;
  }
}

/* ---------- Glow card border ---------- */
.glow-card,
.category-card,
.story-card,
.review-card,
.tip-card,
.about-card,
.location-card,
.cta__card {
  position: relative;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--card-border-glow) border-box;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 0 18px rgba(201, 162, 39, 0.2),
    0 8px 24px rgba(184, 149, 44, 0.12);
  animation: cardGlowPulse 3.2s ease-in-out infinite;
}

.cta__card {
  background:
    linear-gradient(#191f28, #191f28) padding-box,
    linear-gradient(
      135deg,
      rgba(232, 205, 120, 0.95),
      rgba(201, 162, 39, 0.6),
      rgba(255, 236, 179, 0.9),
      rgba(148, 112, 24, 0.8)
    )
      border-box;
  box-shadow:
    0 0 0 1px rgba(232, 205, 120, 0.22),
    0 0 28px rgba(201, 162, 39, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.28);
}

@keyframes cardGlowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(201, 162, 39, 0.1),
      0 0 14px rgba(201, 162, 39, 0.16),
      0 8px 22px rgba(184, 149, 44, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(201, 162, 39, 0.28),
      0 0 28px rgba(212, 175, 55, 0.38),
      0 10px 30px rgba(184, 149, 44, 0.18);
  }
}

.cta__card {
  animation: ctaGlowPulse 3.2s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(232, 205, 120, 0.2),
      0 0 22px rgba(201, 162, 39, 0.3),
      0 16px 40px rgba(0, 0, 0, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 236, 179, 0.4),
      0 0 40px rgba(212, 175, 55, 0.5),
      0 16px 44px rgba(0, 0, 0, 0.3);
  }
}

/* ---------- Contract cards ---------- */
.contract-card {
  flex: 0 0 78%;
  max-width: 340px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--card-border-glow) border-box;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.1),
    0 8px 22px rgba(184, 149, 44, 0.1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contract-card:active {
  transform: scale(0.985);
}

.contract-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
  overflow: hidden;
}

.contract-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  font-weight: 600;
  background:
    linear-gradient(135deg, #eef1f5 0%, #e4e8ee 100%);
}

.media-placeholder svg {
  opacity: 0.35;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--success);
  color: #fff;
  box-shadow: 0 2px 8px rgba(3, 178, 108, 0.3);
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.contract-card__body {
  padding: 18px;
  text-align: center;
}

.contract-card__area {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.contract-card__name {
  font-size: var(--fs-xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.contract-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text-secondary);
  background: var(--bg-muted);
  letter-spacing: -0.01em;
}

/* ---------- Stack / recommend ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--card-border-glow) border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.1),
    0 8px 22px rgba(184, 149, 44, 0.1);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
    box-shadow 0.3s var(--ease);
}

.swipe--spotlight .property-card {
  opacity: 1;
  transform: scale(0.94);
  transition: none;
}

.property-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.property-card__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  position: relative;
  overflow: hidden;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card__body {
  padding: 20px;
  text-align: center;
}

.property-card__price {
  font-size: var(--fs-xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.property-card__area {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.property-card__name {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.property-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  justify-content: center;
}

.property-card .btn {
  width: 100%;
}

/* ---------- Categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  opacity: 0;
  transform: translateY(12px);
}

.category-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-card:active {
  transform: scale(0.97);
}

.category-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__icon svg {
  width: 22px;
  height: 22px;
}

.category-card__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.category-card__label {
  font-size: var(--fs-lg);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.category-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  font-weight: 500;
}

.category-card:nth-child(7) {
  grid-column: auto;
}

/* ---------- Stories ---------- */
.story-card {
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  text-align: center;
}

.story-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-card__title {
  font-size: var(--fs-lg);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.story-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.story-step {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
  width: 100%;
}

.story-step:not(:last-child) {
  padding-bottom: 22px;
}

.story-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(201, 162, 39, 0.15) 100%);
}

.story-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.story-step__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.story-step__value {
  font-size: var(--fs-lg);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.story-step:last-child .story-step__value {
  color: var(--accent);
}

/* ---------- Reviews (Naver realtime style + infinite marquee) ---------- */
.nv-marquee {
  margin: 0 calc(var(--pad) * -1);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.nv-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 4px var(--pad) 8px;
  animation: nvMarquee var(--nv-duration, 36s) linear infinite;
  will-change: transform;
}

.nv-marquee.is-paused .nv-marquee__track {
  animation-play-state: paused;
}

@keyframes nvMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.nv-review {
  flex: 0 0 268px;
  width: 268px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nv-review__head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
}

.nv-review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #03c75a, #00a845);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.nv-review__who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nv-review__name {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-review__date {
  font-size: 11px;
  color: #8e8e8e;
  letter-spacing: -0.01em;
}

.nv-review__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.nv-review__stars {
  color: #03c75a;
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.nv-review__score {
  font-size: 12px;
  font-weight: 700;
  color: #03c75a;
}

.nv-review__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #424242;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  min-height: 5.2em;
}

.nv-review__photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
}

.nv-review__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nv-review__badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  color: #03c75a;
  background: rgba(3, 199, 90, 0.1);
  border: 1px solid rgba(3, 199, 90, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .nv-marquee__track {
    animation: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: auto;
    max-width: 100%;
    padding-bottom: 12px;
  }
}

/* legacy review-card kept for safety */
.review-card {
  flex: 0 0 86%;
  max-width: 380px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  position: relative;
  text-align: center;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #fee500;
}

.review-card__stars {
  color: #f5a623;
  font-size: var(--fs-md);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-card__text {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.review-card__foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.review-card__name {
  font-weight: 700;
  color: var(--text);
}

/* ---------- Tips ---------- */
.tip-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  width: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  opacity: 0;
  transform: translateY(12px);
}

.tip-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tip-card:active {
  transform: scale(0.98);
}

.tip-card__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-card__body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.tip-card__title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.35;
}

.tip-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.55;
}

.tip-card__arrow {
  color: var(--text-tertiary);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---------- Categories / Stories / Tips : blue UI + larger type ---------- */
#categories,
#stories,
#tips {
  --section-blue: #2563eb;
  --section-blue-soft: #eff6ff;
  --section-blue-mid: #3b82f6;
  --card-border-glow: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.9),
    rgba(96, 165, 250, 0.7),
    rgba(191, 219, 254, 0.95),
    rgba(59, 130, 246, 0.75),
    rgba(29, 78, 216, 0.85)
  );
}

#categories .eyebrow,
#stories .eyebrow,
#tips .eyebrow {
  color: var(--section-blue);
  font-size: 14px;
}

#categories .section__title,
#stories .section__title,
#tips .section__title {
  font-size: clamp(30px, 7.5vw, 34px);
}

#categories .section__desc,
#stories .section__desc,
#tips .section__desc {
  font-size: 16px;
  line-height: 1.6;
}

#categories .category-card,
#stories .story-card,
#tips .tip-card {
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.12),
    0 0 18px rgba(37, 99, 235, 0.14),
    0 8px 24px rgba(37, 99, 235, 0.1);
  animation: cardGlowPulseBlue 3.2s ease-in-out infinite;
}

@keyframes cardGlowPulseBlue {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(37, 99, 235, 0.1),
      0 0 14px rgba(37, 99, 235, 0.12),
      0 8px 22px rgba(37, 99, 235, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(37, 99, 235, 0.28),
      0 0 28px rgba(59, 130, 246, 0.28),
      0 10px 30px rgba(37, 99, 235, 0.14);
  }
}

#categories .category-card {
  padding: 22px 18px;
  gap: 14px;
}

#categories .category-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--section-blue-soft);
  color: var(--section-blue);
}

#categories .category-card__icon svg {
  width: 26px;
  height: 26px;
}

#categories .category-card__label {
  font-size: 22px;
  font-weight: 750;
}

#categories .category-card__desc {
  font-size: 16px;
  color: var(--text-secondary);
}

#stories .story-card {
  padding: 28px 22px;
}

#stories .story-card__title {
  font-size: 23px;
  margin-bottom: 24px;
}

#stories .story-step__num {
  width: 36px;
  height: 36px;
  background: var(--section-blue);
  font-size: 15px;
}

#stories .story-step:not(:last-child)::before {
  background: linear-gradient(
    180deg,
    var(--section-blue) 0%,
    rgba(37, 99, 235, 0.12) 100%
  );
}

#stories .story-step__label {
  font-size: 16px;
  color: var(--text-secondary);
}

#stories .story-step__value {
  font-size: 21px;
}

#stories .story-step:last-child .story-step__value {
  color: var(--section-blue);
}

#tips .stack {
  gap: 12px;
}

#tips .tip-card {
  justify-content: flex-start;
  text-align: left;
  padding: 22px 18px 22px 20px;
  gap: 14px;
}

#tips .tip-card__num {
  background: var(--section-blue-soft);
  color: var(--section-blue);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-size: 16px;
}

#tips .tip-card__body {
  text-align: left;
}

#tips .tip-card__title {
  font-size: 20px;
  margin-bottom: 6px;
}

#tips .tip-card__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

#tips .tip-card__arrow {
  color: var(--section-blue);
  opacity: 0.75;
}

main #tips .tip-card {
  justify-content: flex-start;
}

/* 다른 섹션 카드 텍스트 추가 확대 */
#contracts .contract-card__area {
  font-size: 15px;
}

#contracts .contract-card__name {
  font-size: 24px;
}

#contracts .chip {
  font-size: 14px;
  padding: 8px 12px;
}

#recommend .property-card__price {
  font-size: 24px;
}

#recommend .property-card__area {
  font-size: 15px;
}

#recommend .property-card__name {
  font-size: 20px;
}

#recommend .chip {
  font-size: 14px;
  padding: 8px 12px;
}

#reviews .nv-review__name {
  font-size: 15px;
}

#reviews .nv-review__date {
  font-size: 12px;
}

#reviews .nv-review__stars {
  font-size: 12px;
}

#reviews .nv-review__score {
  font-size: 14px;
}

#reviews .nv-review__text {
  font-size: 14px;
  line-height: 1.6;
  min-height: 5.6em;
}

#about .about-card__name {
  font-size: 26px;
}

#about .about-card__name span {
  font-size: 17px;
}

#about .about-card__brand {
  font-size: 15px;
}

#about .about-card__intro {
  font-size: 17px;
  line-height: 1.75;
}

#about .about-meta__row dt {
  font-size: 14px;
}

#about .about-meta__row dd {
  font-size: 16px;
}

#location .location-info li {
  font-size: 15px;
}

#location .location-info strong {
  font-size: 14px;
}

#location .location-info span {
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- About ---------- */
.about-card {
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
}

.about-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: #000;
  box-shadow: var(--shadow-sm);
}

.about-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card__photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 28px;
  background: #fff;
  box-shadow:
    0 0 0 8px #fff,
    0 0 0 9px rgba(201, 162, 39, 0.35),
    0 14px 32px rgba(0, 0, 0, 0.1);
}

.about-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}

.about-card__name {
  font-size: var(--fs-xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.about-card__name span {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-secondary);
}

.about-card__brand {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.about-card__intro {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.about-meta__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: var(--fs-sm);
  justify-items: center;
  text-align: center;
}

.about-meta__row dt {
  font-weight: 700;
  color: var(--text-tertiary);
}

.about-meta__row dd {
  font-weight: 550;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* ---------- Location ---------- */
.location-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding-bottom: 18px;
}

.location-card__map {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: var(--bg-muted);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.location-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease);
}

.location-card__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.location-card__map-cta {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  animation: mapCtaPulse 2.4s ease-in-out infinite;
}

.location-card__map-cta-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #03c75a;
  color: #fff;
  flex-shrink: 0;
}

.location-card__map-cta-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.location-card__map-cta-text strong {
  font-size: 13px;
  font-weight: 750;
  color: #191f28;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.location-card__map-cta-text small {
  font-size: 11px;
  color: #666;
  letter-spacing: -0.01em;
}

.location-card__map:hover img,
.location-card__map:active img {
  transform: scale(1.03);
}

.location-card__map:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes mapCtaPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 28px rgba(3, 199, 90, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-card__map-cta {
    animation: none;
  }
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-tertiary);
  background:
    linear-gradient(180deg, #eef2f6 0%, #e5eaef 100%);
}

.map-placeholder span {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-secondary);
}

.map-placeholder small {
  font-size: var(--fs-xs);
}

.location-info {
  padding: 22px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.location-info li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: var(--fs-sm);
  text-align: center;
  justify-items: center;
}

.location-info strong {
  font-weight: 700;
  color: var(--text-tertiary);
}

.location-info span {
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.55;
  font-weight: 500;
}

.location-card > .btn {
  margin: 8px 20px 0;
  width: calc(100% - 40px);
}

/* ---------- CTA ---------- */
.cta {
  padding-top: 52px;
  padding-bottom: 52px;
}

.cta__card {
  border-radius: var(--radius-xl);
  padding: 40px 24px 30px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(#191f28, #191f28) padding-box,
    linear-gradient(
      135deg,
      rgba(232, 205, 120, 0.95),
      rgba(201, 162, 39, 0.6),
      rgba(255, 236, 179, 0.9),
      rgba(148, 112, 24, 0.8)
    )
      border-box;
  border: 1.5px solid transparent;
  animation: ctaGlowPulse 3.2s ease-in-out infinite;
}

.cta__title {
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin-bottom: 14px;
}

.cta__desc {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin-bottom: 30px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 44px var(--pad) calc(110px + var(--safe-b));
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer__inner {
  text-align: center;
}

.footer__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: #000;
  box-shadow: var(--shadow-sm);
}

.footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__brand {
  font-size: var(--fs-lg);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.footer__agent {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-weight: 550;
  margin-bottom: 18px;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-bottom: 22px;
  line-height: 1.55;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-b));
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: 10px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  width: min(calc(100% - 32px), calc(var(--max) - 32px));
  max-width: 440px;
}

.fab.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.fab[hidden] {
  display: none;
}

.fab:not([hidden]) {
  display: flex;
}

.fab__btn {
  flex: 1;
  min-height: 56px;
  border-radius: 16px;
  font-size: var(--fs-md);
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.fab__btn--call {
  background: #191f28;
  color: #fff;
}

.fab__btn--kakao {
  background: var(--kakao);
  color: var(--kakao-text);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 40, 0.4);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.modal__sheet {
  position: relative;
  width: 100%;
  max-width: var(--max);
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 14px 24px calc(28px + var(--safe-b));
  animation: sheetUp 0.35s var(--ease);
}

.modal__handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 auto 20px;
}

.modal__title {
  font-size: var(--fs-xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  text-align: center;
}

.modal__desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 26px;
  line-height: 1.6;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Desktop framing */
@media (min-width: 520px) {
  body {
    padding: 24px 0;
  }

  .app {
    border-radius: 28px;
    min-height: calc(100dvh - 48px);
  }

  .fab {
    bottom: calc(40px + var(--safe-b));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .property-card,
  .category-card,
  .story-card,
  .tip-card {
    opacity: 1;
    transform: none;
  }
}
