/* 자취루틴 웹 — design-system.md 톤(오프화이트 카드, accent, 보조 텍스트) 정렬 */

:root {
  --bg-deep: #ebe4d9;
  --bg: #f5f1ea;
  --bg-elevated: #fdfbf7;
  --text: #1a1917;
  --text-secondary: #5a554d;
  --text-tertiary: #8a847a;
  --accent: #1f5c45;
  --accent-mid: #2a7a5c;
  --accent-soft: rgba(31, 92, 69, 0.12);
  --accent-glow: rgba(42, 122, 92, 0.25);
  --border: rgba(26, 25, 23, 0.08);
  --shadow-sm: 0 1px 2px rgba(26, 25, 23, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 25, 23, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 25, 23, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 40rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 배경 그라데이션 + 은은한 패턴 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-glow), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(235, 228, 217, 0.9), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg) 38%, #faf8f4 100%);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 100;
}

/* 상단 바 */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(253, 251, 247, 0.78);
  border-bottom: 1px solid var(--border);
}

.site-top__inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-mark__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.brand-mark__icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* 히어로 */
.hero {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) clamp(2rem, 5vw, 2.75rem);
}

.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero__eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mid);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}

.hero__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 36em;
}

.chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(165deg, var(--accent-mid), var(--accent));
  box-shadow: 0 2px 8px rgba(31, 92, 69, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(31, 92, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: rgba(31, 92, 69, 0.25);
  background: #fff;
}

.btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* 본문 레이아웃 */
main {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem) clamp(2.5rem, 6vw, 4rem);
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card li:last-child {
  margin-bottom: 0;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mid);
  opacity: 0.65;
}

.card__body {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__body strong {
  color: var(--text);
  font-weight: 600;
}

/* 개인정보: 번호형 섹션 */
.policy-section {
  position: relative;
  padding-left: 0;
  margin-bottom: 1rem;
}

.policy-section__inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-md);
}

.policy-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.policy-section h2 .idx {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(165deg, var(--accent-mid), var(--accent));
  padding: 0.2rem 0.55rem;
  border-radius: 7px;
  letter-spacing: 0;
}

.policy-section p,
.policy-section li {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.policy-section p:last-child,
.policy-section li:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.policy-section strong {
  color: var(--text);
  font-weight: 600;
}

.policy-section li {
  margin-bottom: 0.45rem;
}

.policy-section a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-section a:hover {
  text-decoration-thickness: 2px;
}

/* 페이지 헤더 (privacy 상단) */
.page-header {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 4vw, 1.5rem) 1.25rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-header .meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

/* 푸터 */
.site-footer {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 1.5rem) 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 520px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  max-width: 28rem;
}

.reveal {
  animation: reveal-up 0.7s var(--ease-out) both;
}

.reveal:nth-child(1) {
  animation-delay: 0.05s;
}
.reveal:nth-child(2) {
  animation-delay: 0.1s;
}
.reveal:nth-child(3) {
  animation-delay: 0.15s;
}
.reveal:nth-child(4) {
  animation-delay: 0.2s;
}
.reveal:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
