/* 데이컬러·카드 다이어리 공통 원페이지 스타일 (2026-12-02)
   카드데이즈 홍보 사이트(검은 첫 화면 · 흰 본문 · 둥근 카드 · 알약 버튼)를 가볍게 따른 것. 빌드 도구 없음. */
:root {
  --accent: #7b66ff;
  --accent-2: #ff8ad8;
  --bg: #ffffff;
  --text: #111214;
  --sub: #6b6f76;
  --line: #ececef;
  --card: #f6f6f8;
  --hero-bg: #000000;
  --hero-text: #ffffff;
  --hero-sub: rgba(255, 255, 255, 0.72);
  --radius: 24px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --text: #f3f3f5; --sub: #9b9fa7; --line: #222327; --card: #16171a; color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #0b0b0d; --text: #f3f3f5; --sub: #9b9fa7; --line: #222327; --card: #16171a; 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: "Plus Jakarta Sans", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 머리줄 */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hero-text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .lang-btn {
  color: var(--hero-sub); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 999px;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav a:hover, .lang-btn:hover { color: var(--hero-text); }
.nav .hide-sm { display: inline-block; }

/* 첫 화면 */
.hero { background: var(--hero-bg); color: var(--hero-text); text-align: center; padding: 140px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  opacity: 0.55; pointer-events: none;
}
.hero > .wrap { position: relative; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); background: #fff; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 auto 18px; max-width: 14em; font-weight: 800; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--hero-sub); margin: 0 auto 36px; max-width: 30em; }
.store-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 999px;
  background: #fff; color: #000; text-decoration: none; font-weight: 700; font-size: 16px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn small { display: block; font-size: 10px; font-weight: 600; line-height: 1; opacity: .7; text-align: left; }
.store-btn span.t { display: block; line-height: 1.1; text-align: left; }
.store-btn.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* 본문 묶음 */
section.block { padding: 88px 0; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; color: #fff; padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.block-head { text-align: center; margin-bottom: 44px; }
.block-head h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.2; letter-spacing: -0.03em; margin: 18px 0 12px; font-weight: 800; }
.block-head p { color: var(--sub); margin: 0 auto; max-width: 34em; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px 24px; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.feature:hover { transform: translateY(-4px); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--sub); font-size: 14.5px; }

.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; transition: border-color .2s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.help a:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-2px); }
.help strong { display: block; font-size: 16px; }
.help span { display: block; color: var(--sub); font-size: 13.5px; margin-top: 2px; }
.help svg { flex: none; width: 18px; height: 18px; color: var(--sub); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--sub); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* 하위 페이지 (공지사항·자주하는 질문) — 앱 안 사파리 화면에서도 열린다 */
.page { max-width: 760px; margin: 0 auto; padding: 28px 20px calc(48px + env(safe-area-inset-bottom)); }
.page-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-top a.home { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; }
.page-top a.home img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.page h1 { font-size: 32px; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; }
.in-app .page-top { display: none; }
.in-app .page { padding-top: 16px; }
.list { border-top: 1px solid var(--line); }
.list details { border-bottom: 1px solid var(--line); }
.list summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; align-items: baseline; gap: 12px; }
.list summary::-webkit-details-marker { display: none; }
.list summary .q { flex: 1; font-weight: 700; font-size: 16px; line-height: 1.45; }
.list summary .d { flex: none; font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.list summary::after {
  content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub);
  transform: rotate(45deg); transition: transform .2s; position: relative; top: -3px;
}
.list details[open] summary::after { transform: rotate(-135deg); top: 2px; }
.list .a { padding: 0 4px 22px; color: var(--sub); font-size: 15px; line-height: 1.75; }
.list .a a { color: var(--accent); }
.state { color: var(--sub); text-align: center; padding: 36px 0; margin: 0; }
.retry { font: inherit; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.sk { height: 22px; border-radius: 8px; margin: 22px 4px; background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
.sk.short { width: 60%; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .help { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav .hide-sm { display: none; }
  .hero { padding: 118px 0 76px; }
  .app-icon { width: 84px; height: 84px; border-radius: 19px; }
  section.block { padding: 64px 0; }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .feature .ico { margin: 2px 0 0; grid-row: span 2; }
  .feature h3 { font-size: 17px; margin-bottom: 4px; }
  .help a { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature, .help a, .store-btn { transition: none; }
  .sk { animation: none; }
}
