/* varsage.com marketing site. One stylesheet, system fonts, no external requests
   (the CSP in _headers allows 'self' only — an external font or script would be blocked). */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f8f8;
  --fg: #12201f;
  --muted: #4a5b5a;
  --border: #d5e2e1;
  --brand: #06605d;
  --brand-strong: #054a48;
  --brand-soft: #e3f3f2;
  --accent: #8a5a12;
  --notice-bg: #fff7e6;
  --notice-fg: #5c3d00;
  --notice-border: #e8c27a;
  --focus: #0b6bcb;
  --radius: 10px;
  --max: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1716;
    --bg-alt: #13201f;
    --fg: #e6efee;
    --muted: #a9bcbb;
    --border: #263a39;
    --brand: #5fd0c9;
    --brand-strong: #8be0db;
    --brand-soft: #16302e;
    --accent: #e3b465;
    --notice-bg: #2a2110;
    --notice-fg: #f3d9a4;
    --notice-border: #6b5222;
    --focus: #7cb8ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* Status bar: pre-release + RUO, on every page. */
.status {
  background: var(--notice-bg);
  color: var(--notice-fg);
  border-bottom: 1px solid var(--notice-border);
  font-size: 0.875rem;
}

.status p {
  margin: 0;
  padding: 0.5rem 0;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--fg);
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .site-nav .nav-optional {
    display: none;
  }
}

/* Hero */
.hero {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
}

/* Sections */
section {
  padding: 3rem 0;
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 44rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 40rem) and (max-width: 59.99rem) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

ol.steps {
  counter-reset: step;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-top: 2.75rem;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.steps > li h3 {
  margin-top: 0.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.chips li {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.9375rem;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 44rem;
}

.contact-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--brand-soft);
}

.contact-box p {
  margin: 0 0 1rem;
  max-width: 44rem;
}

/* Legal pages */
.prose {
  max-width: 44rem;
  padding: 2.5rem 0 3rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.draft-notice {
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  color: var(--notice-fg);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin: 0 0 1.5rem;
}

.draft-notice p {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.site-footer p {
  margin: 0 0 0.375rem;
}

.site-footer .ruo {
  font-weight: 600;
  color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
