@font-face {
  font-family: "Goyang";
  src: url("/assets/fonts/goyangdeogyang_bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #fff8fb;
  --bg-soft: #fff2f7;
  --surface: #ffffff;
  --surface-muted: #fff7fa;
  --line: #f3d9e4;
  --text: #2b2330;
  --muted: #7a6f7c;
  --primary: #ef6797;
  --primary-strong: #da4e84;
  --accent: #ffd1dc;
  --accent-2: #f8c5d7;
  --good: #2e9e5b;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-card: 0 16px 38px rgba(239, 103, 151, 0.14);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
}

body {
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 228, 239, 0.95) 0%, rgba(255, 248, 251, 0) 44%),
    radial-gradient(circle at 87% 5%, rgba(255, 214, 234, 0.65) 0%, rgba(255, 248, 251, 0) 45%),
    linear-gradient(180deg, #fffdfd 0%, var(--bg) 30%, #fff6fa 100%);
  line-height: 1.58;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 250, 252, 0.82);
  border-bottom: 1px solid rgba(243, 217, 228, 0.75);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand-title {
  font-family: "Goyang", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  line-height: 1;
}

.brand-main {
  display: inline-block;
  font-size: 25px !important;
  font-weight: 700;
  color: #111111;
  line-height: 1;
}

.brand-sub {
  display: inline-block;
  font-size: 7px !important;
  color: #8f8b94;
  transform: translateY(-2px);
  line-height: 1;
}

.nav-links {
  display: inline-flex;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--surface-muted);
  color: var(--primary-strong);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 18px 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 10px;
}

.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hero-card {
  padding: 30px;
  background:
    linear-gradient(140deg, #fff 0%, #fff8fb 50%, #ffeef5 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f7;
  color: var(--primary-strong);
  border: 1px solid #ffd8e7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cta-group {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 10px 24px rgba(218, 78, 132, 0.32);
}

.button-secondary {
  color: var(--primary-strong);
  background: #fff;
  border-color: #f2c7d8;
}

.panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.app-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.app-name {
  font-size: 20px;
  color: var(--primary-strong);
  margin: 0;
}

.small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-top: 34px;
}

.section-first {
  margin-top: 12px;
}

.banner-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  max-width: 100%;
  width: 100%;
}

#home-banner .banner-carousel {
  --home-banner-max-height: calc(var(--maxw) * 7 / 16);
}

.banner-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.banner-loading.is-active {
  opacity: 1;
}

.banner-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 36%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef6797 0%, #da4e84 100%);
  animation: banner-loading-indeterminate 1.15s ease-in-out infinite;
}

@keyframes banner-loading-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(105%);
  }
  100% {
    transform: translateX(260%);
  }
}

.banner-track {
  display: flex;
  transition: transform 0.36s ease;
  will-change: transform;
}

.banner-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.banner-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: clamp(210px, 27vw, 320px);
  padding: 22px 24px;
  display: grid;
  align-content: end;
  gap: 8px;
  background:
    linear-gradient(130deg, rgba(255, 233, 242, 0.95) 0%, rgba(248, 197, 215, 0.9) 52%, rgba(239, 103, 151, 0.82) 100%);
}

#home-banner .banner-card {
  height: auto;
  aspect-ratio: 16 / 7;
  max-height: var(--home-banner-max-height);
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 35, 48, 0.03) 0%, rgba(43, 35, 48, 0.28) 100%);
  pointer-events: none;
}

.banner-title,
.banner-subtitle {
  position: relative;
  z-index: 1;
  color: #fff;
}

.banner-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
}

.banner-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.96;
}

.banner-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
  object-position: center;
}

.banner-card.with-image::after {
  background:
    linear-gradient(180deg, rgba(24, 16, 20, 0.16) 0%, rgba(24, 16, 20, 0.58) 100%);
}

.banner-card.with-image .banner-title,
.banner-card.with-image .banner-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.banner-cta {
  position: relative;
  z-index: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 12px;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(34, 28, 36, 0.28);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.48);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.banner-dot.is-active {
  width: 16px;
  background: #fff;
}

.section-header {
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goals-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
}

.card h3 {
  margin: 0 0 6px;
  color: #4a3645;
  font-size: 17px;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.feature-banner-section {
  margin-top: 28px;
}

.feature-image-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
}

.feature-image-card .banner-title {
  font-size: clamp(22px, 3vw, 34px);
}

.feature-image-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px 24px;
}

.policy-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.policy-wrap h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.8vw, 40px);
}

.policy-wrap h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 20px;
}

.policy-wrap p,
.policy-wrap li {
  color: #5f5262;
  font-size: 14px;
}

.policy-wrap ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.notice {
  border: 1px dashed #f0b7ce;
  background: #fff2f8;
  border-radius: 14px;
  padding: 12px 14px;
  color: #805061;
  font-size: 13px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-card {
  display: grid;
  gap: 10px;
}

/* ✅ 다운로드 통합 카드 */
.unified-store {
  text-align: center;
  overflow: hidden; /* overflow 방지 */
}

/* ✅ 버튼 컨테이너 */
.store-buttons {
  display: flex;
  flex-direction: column;   /* 🔥 핵심: 세로 정렬 */
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* ✅ 각 버튼 영역 */
.store-buttons a {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ✅ 이미지 */
.store-buttons img {
  width: 100%;
  max-width: 260px;   /* 🔥 기존 180 → 260 (적당히 크게) */
  height: auto;
  object-fit: contain;
}

/* ✅ hover 효과 */
.store-buttons img:hover {
  transform: scale(1.05);
}

.notice-store {
  display: flex;              /* 🔥 grid → flex */
  justify-content: center;    /* 가운데 정렬 */
  align-items: center;
  gap: 8px;
}

/* 버튼 */
.notice-store a {
  display: inline-block;
}

/* 이미지 */
.notice-store img {
  height: 56px;       /* 🔥 크기 고정 (핵심) */
  width: auto;
  object-fit: contain;
}

/* hover */
.notice-store img:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    padding: 12px 14px;
  }

  .container {
    padding: 20px 14px 56px;
  }

  .hero-card {
    padding: 22px;
  }

  .brand-title {
    font-size: 18px;
  }

  .app-name {
    font-size: 18px;
  }

  .banner-card {
    height: clamp(180px, 44vw, 230px);
    padding: 18px;
  }

  .feature-image-card {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .feature-image-overlay {
    padding: 18px;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .goals-store-grid {
    grid-template-columns: 1fr;
  }
}
