:root {
  --bg: #ffffff;
  --text: #211f1d;          /* 따뜻한 차콜 (헤드라인) */
  --text2: #4a4640;         /* 본문 */
  --muted: #726c64;         /* 보조 텍스트 */
  --accent: #ff8a3d;        /* 소프트 파스텔 오렌지 — 틴트·글로우 */
  --accent-strong: #f2731b; /* 버튼·링크·강조 텍스트 */
  --accent-press: #e0640f;  /* hover / active */
  --surface: #faf6f1;       /* 따뜻한 면 */
  --border: #f1ebe4;        /* 옅은 보더 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
/* 토스풍 소프트 오렌지 → 화이트 배경 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(760px 460px at 50% -8%, rgba(255, 138, 61, 0.18), transparent 70%),
    radial-gradient(560px 380px at 86% 2%, rgba(255, 176, 102, 0.16), transparent 72%),
    linear-gradient(180deg, #fff3e9 0%, #fff8f2 30%, #ffffff 58%);
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* ===== 헤더 / 내비 ===== */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid var(--border); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; color: var(--text); }
.brand svg { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.navlink { font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color 0.18s; }
.navlink:hover { color: var(--text); }
.navlink.active { color: var(--accent-strong); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform 0.22s, opacity 0.22s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: -24px; right: -24px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); padding: 8px 0;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .navlink { padding: 13px 24px; font-size: 15px; }
}

/* ===== 히어로 ===== */
.hero { text-align: center; padding: 108px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.01em; color: var(--accent-strong); background: rgba(255, 138, 61, 0.10);
  border: 1px solid rgba(255, 138, 61, 0.22); padding: 6px 14px; border-radius: 99px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(40px, 8vw, 70px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; color: var(--text); }
.hero h1 .accent { color: var(--accent-strong); }
.scroll-cue { display: flex; justify-content: center; margin-top: 40px; }
.scroll-cue a { color: var(--muted); display: inline-flex; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== 섹션 헤딩 ===== */
.section-head { text-align: center; margin: 36px 0 4px; }
.section-head .label { color: var(--accent-strong); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; }
.section-head h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-top: 6px; }

/* ===== 앱 카드 그리드 ===== */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 22px 0 30px; }
.card {
  position: relative; width: 300px; max-width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 32px 26px 26px; text-align: center;
  box-shadow: 0 1px 2px rgba(33, 31, 29, 0.04), 0 8px 24px rgba(33, 31, 29, 0.06);
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(255, 138, 61, 0.30);
  box-shadow: 0 6px 14px rgba(33, 31, 29, 0.06), 0 22px 44px rgba(255, 138, 61, 0.18);
}
.card-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 26px rgba(63, 99, 240, 0.26); }
.card-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; color: var(--text); }
.card-tagline { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 5px; word-break: keep-all; }
.card-cta { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--accent-strong); }
.card.more { justify-content: center; border-style: dashed; border-color: #ead9c9; background: rgba(255, 255, 255, 0.5); box-shadow: none; color: var(--muted); min-height: 240px; font-weight: 600; font-size: 13.5px; }
.card.more:hover { transform: none; border-color: #e0cab4; box-shadow: none; }
.card.more .p { font-size: 26px; opacity: 0.4; margin-bottom: 8px; }

/* ===== 버튼 ===== */
.play, .btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; padding: 13px 24px; border-radius: 14px;
  background: var(--accent-strong); color: #fff;
  box-shadow: 0 6px 16px rgba(242, 115, 27, 0.30); transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.play:hover, .btn:hover { background: var(--accent-press); box-shadow: 0 8px 20px rgba(242, 115, 27, 0.38); }
.play:active, .btn:active { transform: scale(0.98); }
.play svg { width: 15px; height: 15px; }
.play.soon { background: var(--surface); color: var(--muted); box-shadow: none; border: 1px solid var(--border); cursor: default; }
.text-link { color: var(--accent-strong); font-weight: 700; font-size: 14px; }

/* ===== 앱 상세 페이지 ===== */
.detail { width: 100%; max-width: 780px; margin: 0 auto; padding: 56px 24px 48px; text-align: center; }
.back { display: inline-block; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 28px; transition: color 0.2s; }
.back:hover { color: var(--accent-strong); }
.detail-head { display: flex; flex-direction: column; align-items: center; }
.detail-icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 14px 36px rgba(63, 99, 240, 0.26); }
.detail-name { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-top: 24px; }
.detail-tagline { color: var(--accent-strong); font-weight: 700; font-size: 15px; margin-top: 10px; word-break: keep-all; }
.detail-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 16px; max-width: 740px; word-break: keep-all; text-wrap: pretty; }
.detail-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.detail-policy { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 600; transition: color 0.18s; }
.detail-policy:hover { color: var(--accent-strong); }

/* ===== 콘텐츠 페이지(소개/공지/FAQ/고객센터) ===== */
.page { width: 100%; max-width: 720px; margin: 0 auto; padding: 72px 24px 60px; }
.page-eyebrow { color: var(--accent-strong); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.page-title { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -0.035em; color: var(--text); margin-top: 10px; }
.page-lead { color: var(--muted); font-size: 16px; line-height: 1.7; margin-top: 16px; }
.prose { margin-top: 30px; }
.prose p { color: var(--text2); font-size: 15.5px; line-height: 1.85; margin-bottom: 16px; word-break: keep-all; }
.prose h2 { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin: 30px 0 10px; }
.prose b { color: var(--text); }
.prose a { color: var(--accent-strong); font-weight: 700; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { color: var(--text2); font-size: 15.5px; line-height: 1.8; margin-bottom: 6px; word-break: keep-all; }

/* 정책 페이지(개인정보처리방침 등) */
.policy-meta { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.policy-summary { background: rgba(255, 138, 61, 0.07); border: 1px solid rgba(255, 138, 61, 0.20); border-radius: 16px; padding: 20px 22px; margin: 26px 0 4px; }
.policy-summary strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--accent-strong); margin-bottom: 10px; }
.policy-summary ul { margin: 0; padding-left: 18px; }
.policy-summary li { color: var(--text2); font-size: 14.5px; line-height: 1.7; margin-bottom: 5px; word-break: keep-all; }
.policy-summary li:last-child { margin-bottom: 0; }
.policy-summary b { color: var(--text); }

/* 공지사항 */
.notice { margin-top: 30px; border-top: 1px solid var(--border); }
.notice-item { padding: 24px 4px; border-bottom: 1px solid var(--border); }
.notice-date { color: var(--accent-strong); font-size: 12.5px; font-weight: 700; }
.notice-title { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 7px; letter-spacing: -0.01em; }
.notice-body { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 8px; }

/* FAQ 아코디언 */
.faq { margin-top: 30px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 4px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--text); text-align: left; letter-spacing: -0.01em; }
.faq-q .chev { flex-shrink: 0; color: var(--muted); transition: transform 0.22s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.26s ease; }
.faq-item.open .faq-a { max-height: 360px; }
.faq-a-inner { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* 고객센터 */
.support-card { margin-top: 30px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 10px 24px; box-shadow: 0 8px 24px rgba(33, 31, 29, 0.05); }
.support-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.support-row:last-child { border-bottom: none; }
.support-row .k { color: var(--muted); font-size: 14px; font-weight: 600; }
.support-row .v { color: var(--text); font-size: 14.5px; font-weight: 700; }
.support-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 26px; }

/* ===== 푸터 ===== */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: rgba(255, 255, 255, 0.45); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 24px 40px; color: var(--muted); font-size: 12.5px; }
.foot-bottom a { font-weight: 600; transition: color 0.18s; }
.foot-bottom a:hover { color: var(--text); }
.foot-bottom .copy { opacity: 0.8; }

/* ===== entrance ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.anim { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.13s; } .d3 { animation-delay: 0.22s; } .d4 { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .anim, .scroll-cue a { animation: none; } }
