@font-face {
  font-family: "Spear Glyphic";
  src: url("../fonts/SpearGlyphic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --spear-ink: #333;
  --spear-accent: #e7f0f4;
}

html,
body {
  min-width: 320px;
  margin: 0;
}

body {
  background: #dadada;
}

body,
button,
input,
select {
  font-family: "Geist", Arial, sans-serif;
}

.announcement-page {
  min-height: 100dvh;
  background: linear-gradient(to bottom, #b7d1db, rgba(185, 225, 240, 0) 304px), #dadada;
  border-top: 7px solid #64ffd1;
  color: var(--spear-ink);
}

.announcement-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
  max-width: 1299px;
  margin: 0 auto;
  padding: 75px 0 220px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 44px;
}

.brand-logo {
  display: block;
  flex: none;
  width: 152px;
  height: 52px;
  max-width: none;
}

.announcement-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.section-heading {
  width: 100%;
  margin: 0;
  color: #292929;
  font-family: "Spear Glyphic", Georgia, serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 64px;
  text-align: center;
}

.video-embed {
  display: block;
  width: min(977px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.signup-choice {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  width: min(750px, 100%);
  max-width: 100%;
  margin: 0;
  padding: 7px;
  border: 0;
  border-radius: 18px;
  background: #cfcfcf;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
}

.signup-choice-label {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.signup-choice-label input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.signup-choice-label span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--spear-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition: background-color .18s ease;
}

.signup-choice-label input:checked + span {
  background: var(--spear-accent);
  box-shadow: 0 6px 5.5px rgba(0, 40, 46, .05);
}

.signup-choice-label input:not(:checked):hover + span {
  background-color: rgba(231, 240, 244, .55);
}

@supports selector(:has(*)) {
  .signup-choice::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 7px;
    width: calc((100% - 25px) / 2);
    border-radius: 10px;
    background: var(--spear-accent);
    box-shadow: 0 6px 5.5px rgba(0, 40, 46, .05);
    content: "";
    pointer-events: none;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  }

  .signup-choice:has(input[value="beta"]:checked)::before {
    transform: translateX(calc(100% + 11px));
  }

  .signup-choice-label input:checked + span {
    background: transparent;
    box-shadow: none;
  }
}

.signup-choice-label input:focus-visible + span {
  outline: 3px solid #164b62;
  outline-offset: 3px;
}

.signup-fields {
  width: min(583px, 100%);
}

.beta-message {
  margin: 0 0 24px;
  color: var(--spear-ink);
  font-size: 16px;
  line-height: 1.5;
}

.signup-fields .field {
  margin: 0;
}

.signup-fields .field + .field {
  margin-top: 48px;
}

.signup-fields .label {
  margin-bottom: 12px;
  color: var(--spear-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
}

.signup-fields .input,
.signup-fields .select,
.signup-fields select {
  width: 100%;
  height: 57px;
  min-height: 57px;
  border: 2px solid var(--spear-accent);
  border-radius: 10px;
  background: rgba(231, 240, 244, .2);
  box-shadow: none;
  color: var(--spear-ink);
  font-size: 22px;
}

.signup-fields .input,
.signup-fields select {
  padding: 12px 20px;
  transition: background-color .18s ease, border-color .18s ease;
}

.signup-fields .select {
  border: 0;
  background: none;
}

/* Bulma draws its own chevron with borders; replace that shape with Figma's SVG. */
.signup-fields .select:not(.is-multiple):not(.is-loading)::after {
  width: 15px;
  height: 9px;
  right: 20px;
  margin-top: -4.5px;
  border: 0;
  background: url("../images/select-chevron.svg") center / contain no-repeat;
  transform: none;
  transition: none;
}

/* Customizable select keeps the native control when the picker API is unavailable. */
@supports (appearance: base-select) and selector(::picker(select)) {
  .signup-fields select.signup-picker,
  .signup-picker::picker(select) {
    appearance: base-select;
  }

  .signup-picker::picker-icon,
  .signup-picker option::checkmark {
    display: none;
  }

  .signup-picker::picker(select) {
    top: calc(anchor(top) + 8px);
    left: calc(anchor(left) + 8px);
    width: calc(anchor-size(width) - 16px);
    min-width: 0;
    max-height: min(80dvh, 420px);
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
    border: 0;
    border-radius: 10px;
    background: #d5f1f1;
    box-shadow: 0 12px 7.5px rgba(0, 40, 46, .05);
    color: var(--spear-ink);
    font-family: "Geist", Arial, sans-serif;
    font-size: 22px;
  }

  #signup-pointing-device::picker(select) {
    top: auto;
    position-area: bottom;
    position-try-fallbacks: flip-block;
    position-try-order: normal;
  }

  .signup-picker option {
    box-sizing: border-box;
    height: 45px;
    padding: 8px 20px;
    background: transparent;
    color: var(--spear-ink);
    line-height: 1.3;
  }

  .signup-picker option:disabled {
    opacity: .3;
  }

  .signup-picker option:not(:disabled):is(:hover, :focus) {
    background: #7cf8d2;
  }
}

.signup-fields .input:hover,
.signup-fields select:hover {
  background-color: #d4dde0;
}

.signup-fields .input:focus,
.signup-fields select:focus {
  border-color: #64ffd1;
  background-color: rgba(184, 210, 220, .5);
  box-shadow: none;
  outline: none;
}

.signup-submit {
  min-height: 57px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--spear-accent);
  box-shadow: 0 6px 5.5px rgba(0, 40, 46, .05);
  color: var(--spear-ink);
  font-size: 22px;
  font-weight: 600;
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.signup-submit:hover {
  background: #d5f1f1;
}

.signup-submit:focus {
  background: var(--spear-accent);
  box-shadow: inset 0 0 0 2px #64ffd1, 0 6px 5.5px rgba(0, 40, 46, .05);
  outline: none;
}

.signup-submit:active {
  background: rgba(100, 255, 209, .8);
  box-shadow: inset 0 0 0 2px #64ffd1;
  color: #01805a;
}

.signup-honeypot {
  display: none;
}

.signup-privacy,
.signup-error {
  max-width: 583px;
  margin: -32px 16px 0;
  color: #444;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.signup-privacy a {
  color: var(--spear-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-privacy a:focus-visible {
  border-radius: 2px;
  outline: 3px solid #164b62;
  outline-offset: 3px;
}

.signup-error {
  color: #8a1424;
}

html:has(.privacy-modal[open]) {
  overflow: hidden;
}

.privacy-modal {
  width: min(800px, calc(100% - 40px));
  max-width: none;
  height: min(800px, calc(100dvh - 64px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f4f7f8;
  box-shadow: 0 12px 7.5px rgba(0, 40, 46, .05), 0 24px 64px rgba(0, 40, 46, .12);
  color: var(--spear-ink);
}

.privacy-modal[open] {
  display: flex;
  flex-direction: column;
}

.privacy-modal::backdrop {
  background: rgba(0, 40, 46, .28);
}

.privacy-modal-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 40, 46, .08);
}

.privacy-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.privacy-modal-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--spear-ink);
  cursor: pointer;
}

.privacy-modal-close:hover {
  background: var(--spear-accent);
}

.privacy-modal-close:focus-visible {
  outline: 3px solid #164b62;
  outline-offset: 2px;
}

.privacy-modal-body {
  flex: 1;
  min-height: 0;
  padding: 24px;
}

.privacy-modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.signup-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.signup-confirmation {
  color: var(--spear-ink);
  font-size: 24px;
  line-height: 39px;
  text-align: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  color: var(--spear-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.social-link:hover {
  color: var(--spear-ink);
}

.social-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-link:focus-visible {
  outline: 3px solid #164b62;
  outline-offset: 3px;
}

.announcement-social img {
  display: block;
  width: 50px;
  height: 50px;
}

.site-footer {
  margin-inline: 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px 20px;
  border-top: 1px solid #000;
  background: #dadada;
  color: var(--spear-ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible {
  outline: 3px solid #164b62;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1350px) {
  .announcement-layout {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 760px) {
  .privacy-modal {
    width: calc(100% - 24px);
    height: calc(100dvh - 32px);
  }

  .privacy-modal-header {
    padding: 12px 16px;
  }

  .privacy-modal-body {
    padding: 16px;
  }

  .announcement-page {
    min-height: 100dvh;
  }

  .announcement-layout {
    gap: 64px;
    padding-top: 41px;
    padding-right: 20px;
    padding-bottom: 30px;
    padding-left: 20px;
  }

  .announcement-section,
  .signup-form {
    gap: 32px;
  }

  .section-heading {
    font-size: clamp(30px, 7.5vw, 42px);
    line-height: 1.25;
  }

  .signup-choice {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    width: min(583px, 100%);
  }

  @supports selector(:has(*)) {
    .signup-choice::before {
      right: 7px;
      bottom: auto;
      width: auto;
      height: calc((100% - 25px) / 2);
    }

    .signup-choice:has(input[value="beta"]:checked)::before {
      transform: translateY(calc(100% + 11px));
    }
  }

  .signup-choice-label span {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 16px;
    white-space: normal;
  }

  .signup-fields .field + .field {
    margin-top: 32px;
  }

  .signup-fields .input,
  .signup-fields .select,
  .signup-fields select {
    height: 52px;
    min-height: 52px;
    font-size: 18px;
  }

  @supports (appearance: base-select) and selector(::picker(select)) {
    .signup-picker::picker(select) {
      top: auto;
      position-area: bottom;
      position-try-fallbacks: flip-block;
      position-try-order: normal;
      font-size: 18px;
    }

    .signup-picker option {
      padding-inline: 14px;
      font-size: 18px;
    }
  }

  .signup-submit {
    min-height: 52px;
    font-size: 18px;
  }

  .signup-privacy,
  .signup-error {
    margin-top: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup-choice::before,
  .signup-choice-label span,
  .signup-fields .input,
  .signup-fields select,
  .signup-submit {
    transition: none;
  }
}
