/* 나들 홈페이지 — 회색·간격은 앱 토큰(artemis-nadeul/src/constants/theme.ts)과 같은 값.
   강조색은 브랜드 아이콘 하늘색(#3BA0EF) 계열. 원색은 흰 글자 대비가 2.8:1이라
   글자·버튼에는 같은 색조를 어둡게 한 --accent(흰 배경·--accent-soft 위 모두 4.5:1 이상)를 쓴다. */
:root {
  --white: #ffffff;
  --ink: #111827;
  --gray700: #374151;
  --gray500: #6b7280;
  --gray400: #9ca3af;
  --gray300: #d1d5db;
  --border: #e5e7eb;
  --divider: #f1f2f4;
  --surface: #f7f8fa;
  --accent: #1570bc;
  --accent-soft: #f4f9ff;
  --danger: #dc2626;
  --todo-bg: #fff7d6;
  --todo-ink: #8a5a00;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --content: 1080px;
  --prose: 760px;
  --gutter: 24px;

  font-family: -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', helvetica,
    'Apple SD Gothic Neo', sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
}

/* 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.site-nav {
  display: flex;
  gap: 20px;
}
.site-nav a {
  color: var(--gray500);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

/* 버튼 */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
}
.store-btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.store-btn small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
}
.store-btn strong {
  display: block;
  font-size: 16px;
}
.store-btn:hover {
  background: var(--gray700);
}

/* 첫 화면 */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--white) 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 0 16px;
  border-radius: 22px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero p.lead {
  margin: 0 0 32px;
  color: var(--gray500);
  font-size: 18px;
}
.store-note {
  margin: 12px 0 0;
  color: var(--gray500);
  font-size: 13px;
}

/* 휴대폰 목업 (실제 앱 홈 화면 구성) */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(17, 24, 39, 0.35);
}
.phone-screen {
  display: block;
  overflow: hidden;
  border-radius: 34px;
  background: var(--white);
}
.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* 섹션 */
.section {
  padding: 88px 0;
}
.section.alt {
  background: var(--surface);
}
.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-head p {
  margin: 0;
  color: var(--gray500);
  font-size: 17px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--gray500);
  font-size: 15px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.steps p {
  margin: 0;
  color: var(--gray500);
  font-size: 15px;
}
.cta {
  text-align: center;
}
.cta .section-head {
  margin: 0 auto 32px;
}
.cta .store-buttons {
  justify-content: center;
}

/* 문서 페이지 (약관·개인정보·지원) */
.doc {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.doc .meta {
  margin: 0 0 32px;
  color: var(--gray500);
  font-size: 14px;
}
.doc h2 {
  margin: 48px 0 12px;
  padding-top: 8px;
  font-size: 20px;
  font-weight: 700;
  scroll-margin-top: 80px;
}
.doc h2.chapter {
  margin-top: 56px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 22px;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 700;
  scroll-margin-top: 80px;
}
.doc p,
.doc li {
  color: var(--gray700);
  font-size: 15px;
  line-height: 1.8;
}
.doc ol,
.doc ul {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 4px;
}
.toc {
  margin: 0 0 8px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.toc strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.toc li {
  font-size: 14px;
  line-height: 1.9;
  break-inside: avoid;
}
.toc a {
  color: var(--gray700);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
.table-scroll {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.doc th,
.doc td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--gray700);
  line-height: 1.6;
}
/* 열이 많은 표는 좁은 화면에서 가로 스크롤 */
.doc table.wide {
  min-width: 600px;
}
.doc th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.doc tr:last-child td {
  border-bottom: 0;
}
.callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--gray700);
  font-size: 15px;
}

/* 운영 전에 채워야 하는 값 — 배포 전 모두 실제 값으로 바꾸고 이 표시를 없앤다 */
.todo {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-weight: 600;
}

/* 지원 페이지 */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.contact-card p {
  margin: 0;
}
.contact-card .label {
  color: var(--gray500);
  font-size: 13px;
}
.contact-card .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}
.contact-grid .contact-card {
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.btn-outline {
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--gray400);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details > div {
  padding: 0 0 18px;
}
.faq details p {
  margin: 0 0 8px;
}

/* 푸터 */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--divider);
  background: var(--white);
  color: var(--gray500);
  font-size: 13px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--gray700);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a.strong {
  color: var(--ink);
  font-weight: 800;
}
.site-footer p {
  margin: 2px 0;
}

/* 404 */
.not-found {
  padding: 120px var(--gutter);
  text-align: center;
}
.not-found h1 {
  margin: 0 0 8px;
  font-size: 32px;
}
.not-found p {
  margin: 0 0 24px;
  color: var(--gray500);
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  .site-nav {
    gap: 14px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .store-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .toc ol {
    columns: 1;
  }
}
