/* 캐시스페이스 소개 사이트(cashspace.co.kr) 공용 스타일.
   색: 앱 아이콘(남색 바탕·파란 행성·금색 고리)과 첫 화면 그림의 깊은 남보라 우주색.
   글자 크기·여백은 리워드 앱 소개 페이지 벤치마크 수치(첫 화면 제목 48~58px, 구역 제목 40px 안팎,
   본문 16~18px, 버튼 높이 56~60px, 내용 폭 1180px)에 맞췄다.
   본문은 기기 글꼴을 쓰고, 큰 제목만 Pretendard ExtraBold를 제목 글자만 남겨 줄인 부분 글꼴(이름 CashSpace Display, OFL 수정본, 약 20KB)을 쓴다.
   제목 글자를 바꾸면 저장소 scripts/subset-display-font.py로 글꼴을 다시 만든다(없는 글자는 기기 글꼴로 나온다). */

@font-face {
  font-family: 'CashSpace Display';
  src: url('/assets/fonts/CashSpaceDisplay-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --space-950: #07061a;
  --space-900: #0b091e;
  --space-800: #131139;
  --space-700: #1d1b4d;
  --blue: #3b92d2;
  --blue-strong: #1f6fb2;
  --link: #1f6fb2;
  --gold: #ffc53d;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #15171d;
  --ink-mid: #4e5461;
  --ink-soft: #7d8394;
  --border: #e6e9ef;
  --on-dark: #eceef8;
  --on-dark-muted: #a8acc8;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px rgba(17, 20, 45, 0.04), 0 12px 32px rgba(17, 20, 45, 0.07);
  --font-body: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR',
    'Malgun Gothic', sans-serif;
  --font-display: 'CashSpace Display', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  /* 내용이 짧은 페이지에서도 바닥글이 화면 아래에 붙게 한다 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nowrap {
  white-space: nowrap;
}

.br-mobile {
  display: none;
}

@media (max-width: 600px) {
  .br-mobile {
    display: inline;
  }
}

/* 머리글 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 9, 30, 0.94);
  color: #fff;
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.nav a {
  color: rgba(236, 238, 248, 0.74);
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

.nav .nav-cta {
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--gold);
  color: var(--space-900);
  font-weight: 800;
}

.nav .nav-cta:hover {
  color: var(--space-900);
  filter: brightness(1.05);
}

@media (max-width: 900px) {
  .nav {
    gap: 18px;
  }

  .nav .nav-section {
    display: none;
  }
}

@media (max-width: 380px) {
  .home .nav .nav-support {
    display: none;
  }
}

/* 첫 화면 */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--space-900) 0%, var(--space-800) 100%);
  color: #fff;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  padding-top: 48px;
}

.hero-copy {
  max-width: 580px;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  border: 1px solid rgba(255, 197, 61, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 197, 61, 0.08);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.18);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.2;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-lead {
  max-width: 470px;
  margin: 0 0 32px;
  color: rgba(236, 238, 248, 0.8);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  height: 60px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0 22px 0 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.store-button svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-button strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.store-button small {
  margin-top: 4px;
  color: rgba(236, 238, 248, 0.62);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  color: rgba(236, 238, 248, 0.84);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-points li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 197, 61, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23ffc53d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.hero-art {
  margin: 36px -20px 0;
}

.hero-art img {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

@media (min-width: 1024px) {
  .hero {
    background-image: linear-gradient(90deg, var(--space-900) 0%, rgba(11, 9, 30, 0.86) 28%, rgba(11, 9, 30, 0) 52%),
      url('/assets/img/hero-1600.webp'), linear-gradient(180deg, var(--space-900) 0%, var(--space-800) 100%);
    background-position: 0 0, right -60px center, 0 0;
    background-repeat: no-repeat;
    background-size: cover, auto 100%, cover;
  }

  .hero-inner {
    justify-content: center;
    min-height: 680px;
    padding-top: 88px;
    padding-bottom: 104px;
  }

  .hero-art {
    display: none;
  }
}

@media (max-width: 600px) {
  .store-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .store-button {
    width: 100%;
    min-width: 0;
    height: 58px;
    gap: 10px;
    padding: 0 12px;
  }

  .store-button strong {
    font-size: 15.5px;
  }

  .store-button svg {
    width: 24px;
    height: 24px;
  }

  .hero-points {
    gap: 8px 14px;
    font-size: 14px;
  }
}

/* 본문 구역 */
.section {
  padding: 120px 0;
}

@media (max-width: 1023px) {
  .section {
    padding: 88px 0;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }
}

.section-white {
  background: var(--surface);
}

.section-dark {
  background: linear-gradient(180deg, var(--space-900) 0%, var(--space-800) 100%);
  color: #fff;
}

.section-tight {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow-gold {
  color: var(--gold);
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.4;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2:last-child {
  margin-bottom: 0;
}

.section-head-left {
  margin: 0;
  text-align: left;
}

.section-lead {
  margin: 0;
  color: var(--ink-mid);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
}

.section-lead a,
.faq-list a {
  color: var(--link);
  font-weight: 700;
}

@media (max-width: 600px) {
  .section-head {
    margin-bottom: 36px;
  }
}

/* 이용 방법 */
.how {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.how-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.how-phone::before {
  content: '';
  position: absolute;
  inset: 6% 0;
  background: radial-gradient(closest-side, rgba(59, 146, 210, 0.22), rgba(59, 146, 210, 0) 72%);
}

.phone {
  position: relative;
  width: min(320px, 76vw);
  border-radius: 48px;
  padding: 12px;
  background: #11131c;
  box-shadow: inset 0 0 0 2px #2a2d3a, 0 40px 80px rgba(17, 20, 45, 0.22), 0 12px 24px rgba(17, 20, 45, 0.12);
}

.phone img {
  width: 100%;
  border-radius: 37px;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-radius: 22px;
  padding: 22px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  counter-increment: step;
}

.step-list img {
  flex: none;
  width: 56px;
  height: 56px;
}

.step-list h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
}

.step-list h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 2px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.step-list p {
  margin: 0;
  color: var(--ink-mid);
  font-size: 15.5px;
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .how {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-phone {
    order: 2;
  }

  .phone {
    width: min(280px, 72vw);
    border-radius: 42px;
    padding: 10px;
  }

  .phone img {
    border-radius: 33px;
  }
}

@media (max-width: 600px) {
  .step-list {
    margin-top: 28px;
    gap: 10px;
  }

  .step-list li {
    gap: 14px;
    padding: 18px;
  }

  .step-list img {
    width: 48px;
    height: 48px;
  }

  .step-list h3 {
    font-size: 17.5px;
  }

  .step-list p {
    font-size: 15px;
  }
}

/* 교환 상품 */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-card {
  border: 1px solid #e9ecf5;
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  background: linear-gradient(180deg, #fff6ec 0%, #fffbf6 100%);
  text-align: center;
}

.reward-card:nth-child(2) {
  background: linear-gradient(180deg, #ecf5ff 0%, #f7fbff 100%);
}

.reward-card:nth-child(3) {
  background: linear-gradient(180deg, #f3efff 0%, #faf8ff 100%);
}

.reward-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}

.reward-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.reward-card p {
  margin: 0;
  color: var(--ink-mid);
  font-size: 15.5px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-row li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--bg);
  color: var(--ink-mid);
  font-size: 15px;
  font-weight: 600;
}

.fine {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 760px) {
  .reward-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reward-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 18px;
    align-items: center;
    padding: 20px 22px;
    text-align: left;
  }

  .reward-card img {
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .reward-card h3 {
    align-self: end;
    margin: 0 0 2px;
    font-size: 19px;
  }

  .reward-card p {
    align-self: start;
    font-size: 15px;
  }

  .tag-row {
    justify-content: flex-start;
    gap: 8px;
  }

  .tag-row li {
    padding: 8px 14px;
    font-size: 14px;
  }

  .fine {
    text-align: left;
  }
}

/* 약속(어두운 구역) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-card img {
  width: 64px;
  height: 64px;
  margin: 0 0 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

@media (max-width: 1023px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    padding: 22px 20px;
  }

  .feature-card img {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 15px;
  }
}

/* 자주 묻는 질문 */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%234e5461' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-mid);
  font-size: 15.5px;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .faq-list summary {
    padding: 18px 18px 18px 20px;
    font-size: 16px;
  }

  .faq-list details p {
    padding: 0 20px 18px;
    font-size: 15px;
  }
}

/* 다운로드 */
.download-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  border-radius: 32px;
  padding: 48px 56px;
  background: radial-gradient(120% 140% at 0% 0%, #26357f 0%, var(--space-800) 46%, var(--space-900) 100%);
  color: #fff;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -48px;
  right: -140px;
  width: 560px;
  height: 180px;
  border: 2px solid rgba(255, 197, 61, 0.34);
  border-radius: 50%;
  transform: rotate(-14deg);
  pointer-events: none;
}

.download-card > * {
  position: relative;
}

.download-icon {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.download-copy h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
}

.download-copy p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 16.5px;
}

.download-card .store-row {
  margin: 0;
}

@media (max-width: 1023px) {
  .download-card {
    grid-template-columns: auto 1fr;
    padding: 40px;
  }

  .download-card .store-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .download-card {
    grid-template-columns: 1fr;
    gap: 20px;
    border-radius: 28px;
    padding: 36px 20px 24px;
    text-align: center;
  }

  .download-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 22px;
  }

  /* 좁은 화면에서는 금색 고리가 제목을 가로지르지 않게 위쪽으로 올린다 */
  .download-card::before {
    top: -132px;
    right: -260px;
  }
}

/* 안내 페이지(고객센터, 약관) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--ink-mid);
  font-size: 15px;
}

.card img {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.more {
  margin: 18px 0 0;
  color: var(--ink-mid);
}

.more a,
.page a,
.card a {
  color: var(--link);
  font-weight: 600;
}

.button {
  display: inline-block;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--space-900);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.05);
}

.page {
  padding: 56px 0 72px;
}

.page h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page .intro {
  margin: 0 0 32px;
  color: var(--ink-mid);
  font-size: 17px;
}

.page h2 {
  margin: 40px 0 16px;
  font-size: 22px;
}

.page ol,
.page ul:not(.cards) {
  padding-left: 22px;
  color: var(--ink-mid);
}

.page li {
  margin: 6px 0;
}

.page .status {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  color: var(--ink-mid);
}

.page .card p + p {
  margin-top: 8px;
}

.faq h3 {
  margin: 24px 0 4px;
}

.faq p {
  margin: 0;
  color: var(--ink-mid);
}

/* 바닥글: 전자상거래법 제10조의 사업자 표시와 개인정보처리방침 링크 */
.site-footer {
  padding: 48px 0 56px;
  background: var(--space-950);
  color: var(--on-dark-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .privacy {
  color: #fff;
  font-weight: 800;
}

.company {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
}

.company div {
  display: flex;
  gap: 6px;
}

.company dt {
  flex: none;
  color: var(--on-dark);
  white-space: nowrap;
}

.company dd {
  margin: 0;
}

.company a {
  color: var(--on-dark);
}

.copyright {
  margin: 16px 0 0;
  color: #8a8eab;
  font-size: 13px;
}
