/* ==============================================
   라무몰(RAMUMALL) — style.css
   심플한 정보 안내형 랜딩페이지
   ============================================== */

/* 1. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* jsdelivr의 pretendard.css는 font-display:swap이라 늦게 로드되면 레이아웃이 흔들려 CLS를 유발함.
   동일 URL로 재선언해 font-display:optional로 덮어써서, 늦게 도착하면 그냥 폴백 폰트로 유지되게 함. */
@font-face {
  font-family: 'Pretendard';
  font-weight: 800;
  font-display: optional;
  src: local('Pretendard ExtraBold'), url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-ExtraBold.woff2) format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-display: optional;
  src: local('Pretendard Bold'), url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Bold.woff2) format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-display: optional;
  src: local('Pretendard SemiBold'), url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2) format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-display: optional;
  src: local('Pretendard Regular'), url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2) format('woff2');
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 2. Tokens */
:root {
  --primary:      #1351f6;
  --accent:       #f9883d;
  --accent-on-blue: #f0a85c;
  --text:       #111418;
  --text-sub:   #5b6472;
  --bg:         #ffffff;
  --bg-alt:     #f5f7fa;
  --border:     #e4e7ec;
  --radius:     14px;
  --max-w:      1120px;
  --sec-pad:    88px;
}

/* 3. Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: var(--sec-pad) 0; border-top: 1px solid var(--border); }
.section--alt { background: var(--bg-alt); }
.accent { color: var(--primary); }

/* 4. Header */
.site-header { padding: 20px 0; border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { color: var(--text); display: inline-flex; }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--text-sub);
}
.header-cta:hover { color: var(--primary); }

/* 5. Section headings */
.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
}
.section-icon svg { width: 26px; height: 26px; }
.eyebrow {
  display: block; font-size: 17px; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
}
.section-head { margin-bottom: 48px; }
.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.section-desc { margin-top: 14px; color: var(--text-sub); font-size: 17px; }

/* 6. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 999px;
  font-size: 17px; font-weight: 700;
  border: 1px solid transparent;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #0d3fd1; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: #eef2ff; }
.btn--outline-white { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.12); }

/* 7. Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.hero__title {
  font-size: clamp(32px, 5.2vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__desc { font-size: 19px; color: var(--text-sub); margin-bottom: 32px; }
.hero__actions { margin-bottom: 56px; }
.hero__stats {
  display: flex; justify-content: center; gap: 48px;
  padding-top: 40px; border-top: 1px solid var(--border);
  max-width: 560px; margin: 0 auto;
}
.hero__stat dt { font-size: 15px; color: var(--text-sub); margin-bottom: 8px; }
.hero__stat dd { font-size: 26px; font-weight: 800; }

.hero--blue {
  background: var(--primary);
  color: #fff;
}
.hero--blue .eyebrow { color: var(--accent-on-blue); }
.hero--blue .accent { color: var(--accent-on-blue); }
.hero--blue .hero__desc { color: rgba(255, 255, 255, 0.85); }
.hero--blue .hero__stats { border-top-color: rgba(255, 255, 255, 0.25); }
.hero--blue .hero__stat dt { color: rgba(255, 255, 255, 0.75); }

/* 8. Grid / cards */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.card__icon { width: 32px; height: 32px; margin: 0 auto 20px; color: var(--primary); }
.card__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card__text { font-size: 15px; color: var(--text-sub); }

.trust-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-card__title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.trust-card__text { font-size: 15px; color: var(--text-sub); line-height: 1.75; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border);
}
.step { position: relative; text-align: center; }
.step__num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.step__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step__text { font-size: 15px; color: var(--text-sub); }

.note { margin-top: 32px; font-size: 14px; color: var(--text-sub); }

/* 9. Final CTA */
.section--cta { background: var(--primary); color: #fff; }
.cta__title { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.cta__desc { font-size: 17px; color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; }
.cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* 10. Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.site-footer__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.site-footer__logo { color: var(--text); }
.site-footer__copyright { font-size: 14px; color: var(--text-sub); }

/* 11. Scroll reveal (경량 자체 구현, 라이브러리 없음) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.grid--4 .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid--4 .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid--4 .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid--3 .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid--3 .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }

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

/* 12. Responsive */
@media (max-width: 860px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .hero__stats { gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 560px) {
  :root { --sec-pad: 64px; }
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero__stats { flex-wrap: wrap; row-gap: 24px; }
  .cta__actions { flex-direction: column; }
  .btn { width: 100%; }
}
