/*
 * Shared styles of the site variations 2–5: the floating version switcher
 * (same look as SiteVariationSwitcher in the React page) and the states of the
 * beta application form rendered by site-variacoes.js. Pages may override the
 * --site-lead-* variables (the dark version does).
 */

.site-variation-switcher {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(8, 80, 65, 0.09), 0 2px 4px rgba(8, 50, 40, 0.04), 0 12px 32px -8px rgba(8, 50, 40, 0.12);
  transform: translateY(-50%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.site-variation-switcher__label {
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66756f;
}
.site-variation-switcher__link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #44534e;
  text-decoration: none;
  transition: background 140ms cubic-bezier(0.2, 0.7, 0.2, 1), color 140ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-variation-switcher__link:hover {
  background: #e1f5ee;
  color: #0b6b50;
}
.site-variation-switcher__link:focus-visible {
  outline: 2px solid #1d9e75;
  outline-offset: 2px;
}
.site-variation-switcher__link[aria-current='page'] {
  background: #0a5a48;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(8, 50, 40, 0.2), 0 6px 16px -6px rgba(10, 90, 72, 0.5);
}
/* Phones: a horizontal pill in the bottom-right corner, so it never covers a line of text. */
@media (max-width: 639px) {
  .site-variation-switcher { top: auto; right: 12px; bottom: 12px; flex-direction: row; padding: 4px; transform: none; }
  .site-variation-switcher__label { display: none; }
  .site-variation-switcher__link { width: 30px; height: 30px; font-size: 12px; }
}

/* ---------- Beta application form states ---------- */

.site-lead-field-error {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--site-lead-error, #a3242f);
}
form[data-site-lead-form] [aria-invalid='true'] {
  box-shadow: inset 0 0 0 1px var(--site-lead-error, #a3242f) !important;
}
.site-lead-submit-error {
  flex-basis: 100%;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--site-lead-error, #a3242f);
  background: var(--site-lead-error-wash, #fcebec);
}
.site-lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form[data-site-lead-form] { position: relative; }
form[data-site-lead-form] button[disabled] { opacity: 0.6; cursor: progress; }
.site-lead-received {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 8px;
  text-align: center;
}
.site-lead-received__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: var(--site-lead-ok, #0b6b50);
  background: var(--site-lead-ok-wash, #e1f5ee);
}
.site-lead-received h3 {
  margin: 20px 0 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.site-lead-received p {
  max-width: 42ch;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.8;
}
