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

html {
  color-scheme: light;
  font-family: var(--saas-font);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--saas-ink);
  background: var(--saas-bg);
  font-family: var(--saas-font);
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body.saas-public-body {
  background:
    radial-gradient(circle at 12% 5%, rgb(11 113 153 / 11%), transparent 34rem),
    var(--saas-bg);
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--saas-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--saas-blue-dark);
}

:focus-visible {
  outline: 3px solid var(--saas-focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--saas-ink);
  line-height: 1.2;
}

h1 {
  margin-bottom: var(--saas-space-3);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

h3 {
  font-size: 1.125rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--saas-line);
}

.saas-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.saas-skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--saas-space-3);
  left: var(--saas-space-3);
  padding: var(--saas-space-3) var(--saas-space-4);
  border-radius: var(--saas-radius-sm);
  color: #fff;
  background: var(--saas-navy-deep);
  transform: translateY(-160%);
}

.saas-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.saas-muted {
  color: var(--saas-muted);
}

.saas-eyebrow {
  margin-bottom: var(--saas-space-2);
  color: var(--saas-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
