/* =========================================================================
   안전캠 SafetyCam — Error Pages (404 / 500 / generic)
   sc-tokens.css 의 디자인 토큰을 사용. brandbar + 중앙 카드 레이아웃 공유.
   ========================================================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--fg);
  background: var(--bg-app);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.brandbar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: var(--surface-header);
  border-bottom: 1px solid transparent;
  border-image: var(--header-border) 1;
}
.brandbar img { height: 22px; display: block; }

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 460px;
}

.code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(96px, 18vw, 140px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  color: var(--fg-strong);
}
.code b { color: var(--blue); font-weight: 800; }

.card h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0;
}
.card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  text-wrap: pretty;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); }
.btn-line {
  background: transparent;
  border-color: var(--line-btn);
  color: var(--fg);
}
.btn-line:hover { border-color: var(--fg-muted); color: var(--fg-strong); }
