@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #ffffff;
  --gray-bg: #f2f4f6;
  --card: #ffffff;
  --text: #191f28;
  --text-2: #4e5968;
  --text-3: #8b95a1;
  --line: #e5e8eb;
  --leaf: #6ead43;
  --leaf-text: #3f7a22;
  --leaf-soft: #eef6e8;
  --pill: #f2f4f6;
  --pill-hover: #e5e8eb;
  --shadow: 0 12px 40px rgba(25, 31, 40, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113;
    --gray-bg: #1b1d21;
    --card: #23262b;
    --text: #f2f4f6;
    --text-2: #b0b8c1;
    --text-3: #7e8791;
    --line: #2c2f35;
    --leaf: #7fbd55;
    --leaf-text: #9fd27a;
    --leaf-soft: #1f2a19;
    --pill: #2a2d33;
    --pill-hover: #343841;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* 머리말 */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark { display: block !important; }
}
nav { display: flex; gap: 4px; }
nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
}
nav a:hover { background: var(--pill); color: var(--text); }

/* 첫 화면 큰 문구 */
.hero { text-align: center; padding: 120px 0 112px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px); line-height: 1.22; font-weight: 800;
  letter-spacing: -0.045em; margin: 0 0 24px;
}
.hero h1 .leaf { color: var(--leaf); }
.hero p { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); margin: 0 auto; max-width: 560px; }
.hero .mark { width: 64px; height: auto; margin: 0 auto 36px; }

.eyebrow { font-size: 17px; font-weight: 700; color: var(--leaf-text); margin: 0 0 10px; }
.section-title {
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.3; font-weight: 800;
  letter-spacing: -0.04em; margin: 0 0 64px;
}

/* 앱 소개 */
.apps { padding: 40px 0 72px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; margin-bottom: 120px; }
.feature.flip .stage { order: 2; }
.stage {
  background: var(--gray-bg); border-radius: 32px; aspect-ratio: 1 / 0.92;
  display: flex; align-items: center; justify-content: center; padding: 40px; overflow: hidden;
}
.feature h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 16px; }
.feature p { color: var(--text-2); font-size: 18px; margin: 0 0 28px; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--leaf-text);
  background: var(--leaf-soft); border-radius: 999px; padding: 4px 12px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pill); color: var(--text); text-decoration: none;
  font-size: 15px; font-weight: 700; padding: 10px 10px 10px 18px; border-radius: 999px;
  transition: background 0.15s ease;
}
.pill:hover { background: var(--pill-hover); }
.pill .arrow {
  width: 26px; height: 26px; border-radius: 50%; background: var(--text-3); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}

/* 화면 미리보기(예시 앱 화면) */
.screen {
  width: 100%; max-width: 340px; background: var(--card); border-radius: 26px;
  box-shadow: var(--shadow); padding: 22px;
}
.screen .top { font-size: 13px; color: var(--text-3); font-weight: 600; margin-bottom: 4px; }
.screen .big { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.row .ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-size: 15px; line-height: 1.35; }
.row .t span { font-size: 13px; color: var(--text-3); }
.row .r { font-size: 13px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.row .amt { font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; }

/* 약속 */
.promises { background: var(--gray-bg); padding: 120px 0; }
.promises .section-title { margin-bottom: 48px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { background: var(--card); border-radius: 28px; padding: 32px 28px; }
.promise .num { font-size: 15px; font-weight: 800; color: var(--leaf-text); margin-bottom: 18px; }
.promise h4 { font-size: 22px; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.35; }
.promise p { color: var(--text-2); font-size: 16px; margin: 0; }

/* 문의 */
.contact { padding: 120px 0; text-align: center; }
.contact .section-title { margin-bottom: 20px; }
.contact p { color: var(--text-2); font-size: 18px; margin: 0 0 32px; }
.btn {
  display: inline-block; background: var(--text); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 16px 28px; border-radius: 16px;
}
.btn:hover { opacity: 0.88; }

/* 바닥글 */
footer.site { background: var(--gray-bg); color: var(--text-3); font-size: 14px; padding: 48px 0 56px; }
footer.site .mark { width: 28px; height: auto; margin-bottom: 18px; }
footer.site p { margin: 0 0 4px; }
footer.site a { color: var(--text-2); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px; }
footer.site .links a { text-decoration: none; font-weight: 600; }

/* 스크롤하면 나타나기 */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 첫 화면은 열리자마자 차례로 떠오른다 */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
h1.rise { animation-delay: 0.1s; }
p.rise { animation-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* 방침·안내 문서 */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.3; letter-spacing: -0.04em; font-weight: 800; margin: 12px 0 14px; }
.doc h2 { font-size: 22px; letter-spacing: -0.03em; margin: 52px 0 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; color: var(--text-2); }
.doc b { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--leaf-text); }
.doc .lead { font-size: 19px; color: var(--text-2); margin-bottom: 28px; }
.doc .meta { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.doc .note { background: var(--gray-bg); border-radius: 20px; padding: 18px 20px; margin: 20px 0; }
.doc .note p { margin: 0; }
.table { overflow-x: auto; margin: 16px 0 20px; border-radius: 16px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
th { background: var(--gray-bg); color: var(--text); font-weight: 700; }

@media (max-width: 820px) {
  .hero { padding: 80px 0 72px; }
  .feature { grid-template-columns: 1fr; gap: 32px; margin-bottom: 88px; }
  .feature.flip .stage { order: 0; }
  .stage { padding: 28px 20px; border-radius: 26px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promises, .contact { padding: 88px 0; }
  .section-title { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .doc { padding: 40px 16px 72px; }
  .brand img { height: 26px; }
  nav a { padding: 8px 8px; font-size: 14px; }
}
