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

@font-face {
  font-family: "Haffer Variable";
  src: url("/fonts/HafferVF.ttf") format("truetype-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Bogue";
  src: url("/fonts/Bogue-Thin.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

:root {
  color-scheme: dark;
  --surface: rgba(25, 25, 28, 0.92);
  --surface-strong: rgba(18, 18, 20, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.64);
  --quiet: rgba(244, 244, 244, 0.42);
  --orange: #f4824d;
  --red: #f42919;
  --danger: #ff8e79;
  --success: #82d6a1;
  --focus: #ffd3bf;
  --radius: 8px;
  font-family: "Haffer", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  background: #171719;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(9, 9, 10, 0.54), rgba(9, 9, 10, 0.82)),
    url("/fs.cdn.poly.app/assets/landingpage/ec628e3/public/images/hero-loading.webp") center / cover fixed no-repeat;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #171719;
  background: var(--text);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.application-page {
  display: grid;
  grid-template-columns: 328px minmax(0, 1fr);
  grid-template-rows: 76px minmax(calc(100vh - 76px), auto);
  min-height: 100vh;
}

.application-header {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 76px;
  padding: 12px 24px;
  background: rgba(19, 19, 21, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 32px;
  height: 34px;
  object-fit: contain;
}

.exit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.exit-link:hover {
  color: var(--text);
}

.application-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: calc(100vh - 76px);
  padding: 36px 24px 24px;
  background: rgba(18, 18, 20, 0.88);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(24px);
}

.sidebar-copy h1,
.step-heading h2,
.success-state h2 {
  margin: 0;
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-weight: 520;
  letter-spacing: 0;
}

.sidebar-copy h1 {
  max-width: 260px;
  font-size: 28px;
  line-height: 1.08;
}

.sidebar-copy > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.step-list {
  display: grid;
  gap: 2px;
  margin: 38px -10px 24px;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
}

.step-list li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: transparent;
  content: "";
}

.step-list li.is-current::before {
  background: linear-gradient(180deg, var(--orange), var(--red));
}

.step-list button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  color: var(--quiet);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.step-list button:not(:disabled) {
  cursor: pointer;
}

.step-list button:not(:disabled):hover {
  color: var(--text);
  background: var(--surface-soft);
}

.step-list li.is-current button,
.step-list li.is-complete button {
  color: var(--text);
}

.step-number {
  padding-top: 2px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
}

.step-list strong,
.step-list small {
  display: block;
}

.step-list strong {
  font-size: 14px;
  line-height: 1.25;
}

.step-list small {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.25;
}

.step-list li.is-current small,
.step-list li.is-complete small {
  color: var(--muted);
}

.sidebar-note {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
}

.application-main {
  min-width: 0;
  padding: 38px clamp(20px, 5vw, 72px) 24px;
}

.form-surface {
  width: min(100%, 780px);
  min-height: 640px;
  margin: 0 auto;
  padding: 40px clamp(24px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.34),
    inset 1px 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(36px);
}

.mobile-progress {
  display: none;
  margin-bottom: 28px;
}

.mobile-progress__copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: width 240ms ease;
}

.form-step[hidden],
.success-state[hidden] {
  display: none;
}

.form-step.is-active {
  animation: step-in 220ms ease both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  margin-bottom: 34px;
}

.step-heading h2,
.success-state h2 {
  max-width: 650px;
  font-size: 34px;
  line-height: 1.06;
}

.step-heading > p:last-child,
.success-state > p {
  max-width: 610px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

#form-title,
.form-step[data-step="1"] .step-heading > p:last-child {
  white-space: nowrap;
}

.field-grid {
  display: grid;
  align-items: start;
  gap: 18px;
}

.field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid + .field-grid,
.field-grid + .field,
.form-step > .field + .field,
.form-step > fieldset.field + .field,
.form-step > .field + .terms-panel {
  margin-top: 22px;
}

.field-grid > .field {
  margin-top: 0;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.field label span {
  color: var(--quiet);
  font-weight: 400;
}

.field-label-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.character-count {
  flex: 0 0 auto;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 11px;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 12px 13px;
}

textarea {
  min-height: 94px;
  padding: 13px;
  line-height: 1.45;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 244, 244, 0.34);
}

input:hover,
select:hover,
textarea:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(244, 130, 77, 0.14);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

select {
  color-scheme: dark;
}

.field-help {
  margin: 7px 0 0;
  color: var(--quiet);
  font-size: 11px;
}

.field-error {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.step-error-summary {
  margin: 0 0 24px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(210, 55, 48, 0.16);
  border: 1px solid rgba(255, 112, 104, 0.62);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.step-error-summary:focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice > span {
  display: block;
  min-height: 124px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice:hover > span {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--border-strong);
}

.choice input:focus-visible + span {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(244, 130, 77, 0.14);
}

.choice input:checked + span {
  background: rgba(244, 130, 77, 0.11);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(244, 130, 77, 0.24);
}

.choice strong,
.choice small {
  display: block;
}

.choice strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.choice small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.terms-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.6fr);
  gap: 28px;
  margin-top: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.terms-panel h3 {
  margin: 0;
  font-family: "Bogue", serif;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.05;
}

.terms-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.terms-panel dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-panel dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.terms-panel dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.terms-panel dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.agreement-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.agreement {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.agreement input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--orange);
}

.agreement span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.agreement a {
  color: var(--text);
  text-underline-offset: 3px;
}

.agreement a:hover,
.agreement a:focus-visible {
  color: var(--orange);
}

.agreement-list .field-error {
  margin: -5px 0 2px 29px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions--end {
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.button--primary {
  background: linear-gradient(134.77deg, var(--orange) 25.1%, var(--red) 74.9%);
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, 0.28),
    inset -1px -1px 2px rgba(0, 0, 0, 0.14),
    inset 1px 1px 2px rgba(255, 255, 255, 0.17);
}

.button--primary:hover {
  box-shadow:
    4px 6px 16px rgba(0, 0, 0, 0.34),
    inset -1px -1px 2px rgba(0, 0, 0, 0.14),
    inset 1px 1px 2px rgba(255, 255, 255, 0.17);
}

.button--secondary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border);
}

.button--secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
}

.review-summary {
  display: grid;
  gap: 12px;
}

.review-section {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-section:first-child {
  padding-top: 0;
}

.review-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.review-section__head h3 {
  margin: 0;
  font-size: 14px;
}

.review-section__head button {
  padding: 4px 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}

.review-grid div {
  min-width: 0;
}

.review-grid dt {
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 10px;
  text-transform: uppercase;
}

.review-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  white-space: pre-line;
}

.submit-status {
  min-height: 20px;
  margin-top: 18px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
}

.guest-submit-note {
  margin-top: 24px;
  padding: 18px 20px;
  color: var(--text);
  background: rgba(244, 130, 77, 0.08);
  border: 1px solid rgba(244, 130, 77, 0.34);
  border-radius: 6px;
}

.guest-submit-note strong {
  display: block;
  font-size: 14px;
}

.guest-submit-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.submission-note {
  margin: 13px 0 0;
  color: var(--quiet);
  font-size: 11px;
  text-align: right;
}

.success-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 560px;
  justify-content: center;
  animation: step-in 260ms ease both;
}

.success-state > p {
  max-width: 520px;
}

.success-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 0;
}

.success-mark span {
  width: 18px;
  height: 10px;
  border-bottom: 2px solid var(--text);
  border-left: 2px solid var(--text);
  transform: rotate(-45deg) translate(1px, -1px);
}

.application-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.application-id span {
  color: var(--quiet);
  font-size: 11px;
  text-transform: uppercase;
}

.application-id strong {
  font-size: 13px;
}

.application-footer {
  display: flex;
  justify-content: space-between;
  width: min(100%, 780px);
  margin: 18px auto 0;
  color: rgba(244, 244, 244, 0.52);
  font-size: 11px;
}

.application-footer a:hover {
  color: var(--text);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

@media (max-width: 960px) {
  body {
    background-image:
      linear-gradient(rgba(9, 9, 10, 0.62), rgba(9, 9, 10, 0.88)),
      url("/fs.cdn.poly.app/assets/landingpage/ec628e3/public/images/hero-loading-mobile.webp");
  }

  .application-page {
    display: block;
  }

  .application-header {
    height: 68px;
    padding: 10px 18px;
  }

  .application-sidebar {
    display: none;
  }

  .application-main {
    padding: 22px 18px 18px;
  }

  .form-surface {
    min-height: calc(100vh - 124px);
    padding: 28px 32px 32px;
  }

  .mobile-progress {
    display: block;
  }
}

@media (max-width: 680px) {
  .application-header {
    padding-inline: 14px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 27px;
    height: 29px;
  }

  .exit-link {
    font-size: 12px;
  }

  .application-main {
    padding: 12px 0 0;
  }

  .form-surface {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 24px 18px 30px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .step-heading {
    margin-bottom: 28px;
  }

  .step-heading h2,
  .success-state h2 {
    font-size: 29px;
  }

  .step-heading > p:last-child,
  .success-state > p {
    font-size: 14px;
  }

  .field-grid--two,
  .choice-grid,
  .terms-panel,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .field-grid--two {
    gap: 22px;
  }

  .choice > span {
    min-height: 0;
  }

  .terms-panel {
    gap: 22px;
    padding: 18px;
  }

  .terms-panel dl > div {
    grid-template-columns: 88px 1fr;
  }

  .form-actions {
    position: static;
    margin-right: 0;
    margin-left: 0;
    padding: 22px 0 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .button {
    min-height: 47px;
    padding-inline: 15px;
  }

  .submission-note {
    text-align: left;
  }

  .application-footer {
    display: none;
  }
}

@media (max-width: 390px) {
  .exit-link {
    gap: 5px;
  }

  .step-heading h2,
  .success-state h2 {
    font-size: 27px;
  }

  .field-label-row {
    align-items: flex-start;
  }

  .form-actions .button {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
