:root{--build-id:"e38f8443-98ed-4114-9b08-13e0e7009a34";}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 색상 변수 - C19 */
:root {
  --primary: #ef4444;
  --bg: #fef2f2;
  --text: #7f1d1d;
  --accent: #f87171;
  --heading: var(--text);
  --link: var(--text);
}

/* 폰트 - F1 */
body {
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0em;
  background: var(--bg);
  color: var(--text);
}

/* 헤딩 - H09 */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--heading);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-style: italic;
  color: var(--heading);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.6875rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  font-style: italic;
  color: var(--heading);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* 접근성 - 포커스 스타일 */
a:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* 네비게이션 - N01 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.menu-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--primary);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .menu-checkbox:checked ~ nav {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0;
  }

  nav li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
  }

  nav li:last-child {
    border-bottom: none;
  }
}

/* 메인 컨텐츠 */
main {
  margin-top: 70px;
}

/* 섹션 - S01 */
section {
  padding: 5rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-gap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* 버튼 - B09 */
.btn {
  display: inline-block;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* 카드 - K09 */
.card {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

/* 그리드 레이아웃 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Hero 섹션 */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 요약 박스 - CS09 */
.summary-box {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.summary-box h3 {
  margin-bottom: 1rem;
}

.summary-box ul {
  list-style: none;
  padding-left: 0;
}

.summary-box li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.summary-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* FAQ 스타일 */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

/* Footer */
footer {
  background: #fff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid #e5e7eb;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--link);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-info {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.875rem;
}

/* 문서 페이지 스타일 */
.doc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.doc-container h1 {
  margin-bottom: 2rem;
}

.doc-container p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.doc-container a {
  color: var(--primary);
  text-decoration: underline;
}

/* 반응형 */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 5rem 0 3rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}