html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface-container);
}

main {
  flex: 1;
}

main:not(.landing-page):not(.record-overview):not(.record-detail) {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* ── Simple action button shared by error pages ── */
.btn-primary {
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.not-found {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found h1 {
  color: var(--on-surface);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.not-found p {
  margin-top: 8px;
  color: var(--grey-1);
  font-size: 14px;
  line-height: 1.6;
}

.not-found .btn {
  margin-top: 24px;
}

/* ── Default footer (overridden by marketing pages) ── */
footer {
  width: 100%;
  padding: 24px 16px 30px;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  text-align: center;
}

.footer-content p {
  color: var(--grey-2);
  font-size: 12px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
