@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7f7f7;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --text: #111111;
  --muted: #666666;
  --panel: #111111;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.92em;
}

.page {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 8px 20px 72px;
}

.topbar {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.brand {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.brand-company-logo {
  display: block;
  width: clamp(188px, 28vw, 248px);
  height: auto;
  flex: 0 0 auto;
  margin: -24px 0 -12px -18px;
}

.brand-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
  text-align: right;
}

.brand-app-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.brand-app-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

.brand-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}

.nav a,
.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.nav a.current {
  background: var(--panel);
  border-color: var(--panel);
  color: #ffffff;
}

.nav a:hover,
.chip-link:hover,
.cta:hover,
.anchor-nav a:hover {
  border-color: var(--line-strong);
}

.hero,
.guide-card,
.section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px;
}

.hero-art,
.hero-side,
.identity-panel {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.hero p,
.lede {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--panel);
  border-radius: 14px;
  background: var(--panel);
  color: #ffffff;
  font-weight: 600;
}

.cta.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.grid,
.meta-grid,
.doc-meta,
.section-wrap,
.timeline {
  display: grid;
  gap: 14px;
}

.grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card {
  padding: 18px;
}

.guide-card h2,
.section h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.guide-card p,
.section p,
.section li {
  color: var(--muted);
  line-height: 1.72;
}

.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-item,
.doc-meta-item,
.timeline-item {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
}

.doc-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.doc-meta-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.doc-meta-item strong {
  display: block;
  font-size: 0.96rem;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 24px;
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.88rem;
}

.section-wrap {
  margin-top: 18px;
}

.section {
  padding: 22px;
}

.section h3 {
  margin: 18px 0 10px;
  font-size: 1rem;
}

.section ul,
.section ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.section li + li {
  margin-top: 8px;
}

.policy-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.policy-table th,
.policy-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.policy-table th {
  background: var(--surface-muted);
  font-size: 0.9rem;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 700;
}

.timeline {
  margin-top: 16px;
}

.timeline-item {
  border-left: 3px solid var(--panel);
}

.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .grid,
  .meta-grid,
  .doc-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand-company-logo {
    width: min(228px, 62vw);
    margin-left: -16px;
  }

  .brand-meta {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .brand-copy {
    justify-items: start;
    text-align: left;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 8px 14px 60px;
  }

  .hero-shell,
  .anchor-nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero,
  .guide-card,
  .section {
    border-radius: 20px;
  }

  .guide-card,
  .section {
    padding: 18px;
  }

  .brand-meta {
    gap: 10px;
  }

  .brand-app-shell {
    width: 40px;
    height: 40px;
  }

  .brand-app-icon {
    width: 24px;
    height: 24px;
  }

  .nav a,
  .chip-link {
    flex: 1 1 auto;
  }

  .policy-table,
  .policy-table thead,
  .policy-table tbody,
  .policy-table tr,
  .policy-table th,
  .policy-table td {
    display: block;
    width: 100%;
  }

  .policy-table thead {
    display: none;
  }

  .policy-table tr {
    border-bottom: 1px solid var(--line);
  }

  .policy-table td {
    border-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
