/* Shared BEST Center design, matching the public research tools. */
:root {
  --site-primary: #0c3d00;
  --site-accent: #126000;
  --site-green: #00964f;
  --site-mint: #b9deb8;
  --site-canopy: #061b00;
  --site-bg: #fafafa;
  --site-border: #c8c8c8;
  --site-text: #161616;
  --site-muted: #767171;
  --site-light: #7a7a7a;
  --site-ease: cubic-bezier(.28,.11,.32,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
  color: var(--site-primary);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.2;
  text-wrap: balance;
}
a { color: var(--site-accent); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--site-green);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.site-skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 2000;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  color: var(--site-primary);
  box-shadow: 0 2px 12px #0002;
}
.site-skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--site-green);
  background: #ffffffb8;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header-inner {
  width: 100%;
  max-width: 1280px;
  height: 52px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-brand-group, .site-brand-name, .site-nav {
  display: flex;
  align-items: center;
}
.site-brand-group { min-width: 0; gap: 12px; }
.site-logo { flex-shrink: 0; }
.site-header .site-logo img { height: 30px; width: auto; }
.site-brand-divider { width: 1px; height: 24px; flex-shrink: 0; background: var(--site-border); }
.site-brand-name { align-items: baseline; gap: 8px; margin: 0; min-width: 0; color: var(--site-primary); }
.site-brand-name > span:first-child { font-size: 17px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.site-brand-description { font-size: 13px; color: var(--site-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { gap: 24px; flex-shrink: 0; }
.site-nav > a:not(.site-btn) { color: var(--site-muted); font-size: 13px; transition: color .2s; }
.site-nav > a:not(.site-btn):hover { color: var(--site-text); }
.site-btn, .site-btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 11px 22px;
  background: var(--site-accent);
  color: white;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--site-ease), color .2s var(--site-ease), transform .2s var(--site-ease);
}
.site-btn:hover { color: white; background: var(--site-primary); }
.site-btn-outline { border-color: var(--site-accent); background: transparent; color: var(--site-accent); }
.site-btn-outline:hover { background: var(--site-mint); color: var(--site-primary); }
.site-btn:active, .site-btn-outline:active { transform: scale(.95); }
.site-btn-small { padding: 8px 16px; font-size: 14px; line-height: 1.5; }

.site-footer.main-footer {
  margin: auto 0 0;
  padding: 0;
  border-top: 4px solid var(--site-green);
  background: var(--site-mint);
  color: var(--site-primary);
  font-size: 12px;
  text-align: left;
}
.site-footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer-brand { display: flex; align-items: center; flex: 1; gap: 16px; min-width: 0; }
.site-footer .site-logo img { width: auto; height: 40px; }
.site-footer-divider { width: 1px; height: 32px; flex-shrink: 0; background: var(--site-primary); }
.site-footer-copy { min-width: 0; max-width: 480px; }
.site-footer-copy p { margin: 0; }
.site-footer-copy .site-footer-name { margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--site-primary); }
.site-footer-nav a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Public introduction and information pages. */
.landing { flex: 1; width: 100%; }
.hero { padding: 80px 24px; background: white; text-align: center; }
.hero > :not(.intro) { max-width: 768px; margin-left: auto; margin-right: auto; }
.hero-kicker { margin-top: 0; margin-bottom: 0; color: var(--site-accent); font-size: 17px; font-weight: 600; }
.hero-title { max-width: 768px; margin-top: 12px; margin-bottom: 0; font-size: 40px; line-height: 1.1; }
.hero-copy { max-width: 576px !important; margin-top: 20px; margin-bottom: 0; color: var(--site-muted); font-size: 21px; font-weight: 300; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.intro { width: 100%; max-width: 1040px; margin: 56px auto 0; scroll-margin-top: 96px; }
.intro video, .intro > img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--site-canopy); box-shadow: 3px 5px 30px #00000038; }
.intro figcaption { margin-top: 16px; color: var(--site-light); font-size: 14px; }
.steps-section { padding: 80px 24px; background: var(--site-bg); }
.steps-section > h2 { margin: 0 auto; text-align: center; font-size: 40px; }
.how-grid { max-width: 1100px; padding: 0; margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.how-card { padding: 28px; border: 1px solid var(--site-border); border-radius: 18px; background: white; }
.how-card > span:first-child, .how-number { display: flex; width: 36px; height: 36px; justify-content: center; align-items: center; border-radius: 50%; background: var(--site-mint); color: var(--site-accent); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.how-card h3 { margin: 20px 0 0; font-size: 21px; }
.how-card p { margin: 8px 0 0; color: var(--site-muted); font-size: 17px; line-height: 1.47; }
.cta-section { padding: 80px 24px; background: var(--site-canopy); color: var(--site-mint); text-align: center; }
.cta-section h2 { max-width: 672px; margin: 0 auto; color: white; font-size: 40px; }
.cta-section p { max-width: 672px; margin: 16px auto 0; font-size: 21px; font-weight: 300; line-height: 1.5; }
.cta-section .site-btn { margin-top: 40px; background: white; color: var(--site-primary); }
.cta-section .site-btn:hover { background: var(--site-mint); }
.legal-content { width: 100%; max-width: 880px; flex: 1; margin: 0 auto; padding: 64px 24px 80px; }
.legal-content h1 { margin: 12px 0 0; font-size: 40px; line-height: 1.15; }
.legal-content h2 { margin: 36px 0 12px; font-size: 24px; }
.legal-content p { margin: 16px 0 0; }
.legal-content > p:first-child { margin-top: 0; }
.legal-content .legal-intro { margin-top: 20px; font-size: 21px; font-weight: 300; line-height: 1.5; color: var(--site-muted); }
.legal-content ul { padding-left: 24px; margin: 16px 0 0; list-style: disc; }
.legal-content li + li { margin-top: 8px; }
.legal-content a:not(.site-btn) { text-decoration: underline; text-underline-offset: 3px; }
.legal-content .site-btn { margin-top: 20px; }
.legal-back { color: var(--site-muted); font-size: 14px; }
.hero-kicker, .hero-title, .hero-copy, .hero-actions { animation: site-enter .6s cubic-bezier(.16,1,.3,1) both; }
.hero-title { animation-delay: 80ms; }
.hero-copy { animation-delay: 160ms; }
.hero-actions { animation-delay: 240ms; }
.intro { animation: site-scale-in .36s cubic-bezier(.16,1,.3,1) 320ms both; }
@keyframes site-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes site-scale-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .hero-title { font-size: 56px; line-height: 1.07; letter-spacing: -.016em; }
}
@media (max-width: 1023px) {
  .site-brand-description { display: none; }
}
@media (max-width: 767px) {
  .how-grid { grid-template-columns: 1fr; max-width: 576px; }
  .site-footer-inner { flex-direction: column; align-items: stretch; }
  .site-footer-brand { flex: none; flex-wrap: wrap; width: 100%; }
  .site-footer-copy { max-width: 100%; }
  .site-footer-divider { display: none; }
}
@media (max-width: 639px) {
  .site-header-inner { padding: 0 16px; }
  .site-header:not(:has(.site-nav-secondary)) .site-brand-group { gap: 10px; }
  .site-brand-home, .site-brand-group:has(.site-brand-home) .site-brand-divider, .site-nav-secondary { display: none; }
  .site-nav { gap: 12px; }
  .hero, .steps-section { padding: 48px 16px; }
  .cta-section { padding: 56px 16px; }
  .steps-section > h2, .cta-section h2 { font-size: 30px; }
  .hero-title { font-size: 34px; }
  .hero-copy, .cta-section p { font-size: 17px; }
  .hero-actions { margin-top: 28px; }
  .intro { margin-top: 48px; }
  .how-card { padding: 24px; }
  .site-footer-inner { padding: 32px 16px; }
  .legal-content { padding: 48px 20px 64px; }
  .legal-content h1 { font-size: 34px; }
}
@media (max-width: 359px) {
  .site-header .site-logo img { height: 26px; }
  .site-brand-name > span:first-child { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .site-skip-link { display: none; }
}
