/* =========================================
   DABBIES WAITLIST
   CORE STYLES
========================================= */

:root {
  --black: #0d0d0d;
  --white: #f5f5f5;
  --muted: #777;
  --dim: #4d4d4d;
  --line: rgba(255,255,255,.12);
  --soft-line: rgba(255,255,255,.07);
  --max: 1280px;
}


/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  min-height: 100vh;

  background: var(--black);

  color: var(--white);

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  -webkit-font-smoothing: antialiased;

  overflow-x: hidden;
}


button,
input {
  font: inherit;
}


/* =========================================
   PAGE
========================================= */

.waitlist-page {
  position: relative;

  width: 100%;

  min-height: 100vh;

  display: flex;

  flex-direction: column;

  padding:
    32px 45px
    25px;
}


/* =========================================
   HEADER
========================================= */

.waitlist-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  width: min(
    100%,
    var(--max)
  );

  margin: 0 auto;

  width: 100%;
}


.waitlist-brand {
  color: var(--white);

  text-decoration: none;

  font-size: 12px;

  font-weight: 500;

  letter-spacing: .12em;
}


.waitlist-encouragement {
  margin: 0;

  max-width: 240px;

  font-size: 10px;

  line-height: 1.6;

  text-align: right;

  color: var(--muted);
}


/* =========================================
   PROGRESS
========================================= */

.waitlist-progress {
  width: 100%;

  max-width: 520px;

  margin:
    80px auto
    0;
}


.waitlist-progress-meta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 10px;

  font-size: 8px;

  letter-spacing: .12em;

  color: var(--dim);
}


.waitlist-progress-track {
  position: relative;

  width: 100%;

  height: 1px;

  background:
    rgba(255,255,255,.1);

  overflow: hidden;
}


.waitlist-progress-bar {
  width: 0;

  height: 100%;

  background: var(--white);

  transition:
    width .45s ease;
}


/* =========================================
   FORM
========================================= */

.waitlist-form {
  width: 100%;

  max-width: 620px;

  margin:
    70px auto
    100px;

  flex: 1;
}


.waitlist-step {
  display: none;
}


.waitlist-step.active {
  display: block;
}


.waitlist-step-label {
  display: block;

  margin-bottom: 22px;

  font-size: 8px;

  letter-spacing: .16em;

  color: #555;
}


.waitlist-step h1,
.waitlist-step h2,
.waitlist-success h2 {
  margin: 0;

  max-width: 650px;

  font-size:
    clamp(
      46px,
      7vw,
      78px
    );

  line-height: .94;

  letter-spacing: -.065em;

  font-weight: 400;
}


.waitlist-step h1 span,
.waitlist-step h2 span,
.waitlist-success h2 span {
  display: block;

  color: #555;
}


/* =========================================
   FIELDS
========================================= */

.waitlist-fields {
  margin-top: 65px;
}


.waitlist-field {
  margin-bottom: 32px;
}


.waitlist-field label {
  display: block;

  margin-bottom: 10px;

  font-size: 8px;

  letter-spacing: .13em;

  color: #555;
}


.waitlist-field input {
  width: 100%;

  height: 55px;

  padding:
    0 0;

  border: 0;

  border-bottom:
    1px solid
    rgba(255,255,255,.16);

  outline: none;

  background: transparent;

  color: var(--white);

  font-size: 16px;

  border-radius: 0;

  transition:
    border-color .25s ease;
}


.waitlist-field input::placeholder {
  color: #3f3f3f;
}


.waitlist-field input:focus {
  border-color: rgba(255,255,255,.7);
}


/* Remove number arrows */

.waitlist-field input[type="number"]::-webkit-inner-spin-button,
.waitlist-field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;

  -webkit-appearance: none;
}


.waitlist-field input[type="number"] {
  -moz-appearance: textfield;
}


/* =========================================
   ERROR
========================================= */

.field-error {
  display: block;

  min-height: 14px;

  margin-top: 8px;

  font-size: 9px;

  color: #999;
}


/* =========================================
   QUESTIONS
========================================= */

.waitlist-question {
  margin-top: 55px;

  padding-bottom: 30px;

  border-bottom:
    1px solid
    var(--soft-line);
}


.waitlist-question > p {
  margin: 0 0 20px;

  font-size: 12px;

  line-height: 1.7;

  color: #aaa;
}


.waitlist-options {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


.waitlist-options label {
  position: relative;

  cursor: pointer;
}


.waitlist-options input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.waitlist-options span {
  display: block;

  padding:
    11px 15px;

  border:
    1px solid
    rgba(255,255,255,.12);

  color: #777;

  font-size: 9px;

  letter-spacing: .03em;

  transition:
    color .25s ease,
    background .25s ease,
    border-color .25s ease;
}


.waitlist-options label:hover span {
  border-color:
    rgba(255,255,255,.3);

  color: #bbb;
}


.waitlist-options input:checked + span {
  border-color: #fff;

  background: #fff;

  color: #000;
}


/* =========================================
   BUTTONS
========================================= */

.waitlist-next,
.waitlist-submit {
  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 230px;

  margin-top: 50px;

  padding:
    17px 20px;

  border:
    1px solid
    rgba(255,255,255,.25);

  background: transparent;

  color: #fff;

  cursor: pointer;

  font-size: 9px;

  letter-spacing: .13em;

  transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease;
}


.waitlist-next:hover,
.waitlist-submit:hover {
  background: #fff;

  border-color: #fff;

  color: #000;
}


.waitlist-next span:last-child,
.waitlist-submit span:last-child {
  font-size: 15px;
}


/* =========================================
   SUCCESS
========================================= */

.waitlist-success {
  display: none;

  width: 100%;

  max-width: 620px;

  margin:
    100px auto;

  flex: 1;

  flex-direction: column;

  justify-content: center;
}


.waitlist-success.visible {
  display: flex;
}


.waitlist-success p {
  max-width: 380px;

  margin:
    30px 0
    40px;

  font-size: 12px;

  line-height: 1.9;

  color: #777;
}


.waitlist-home {
  display: inline-flex;

  width: fit-content;

  padding:
    15px 20px;

  border:
    1px solid
    rgba(255,255,255,.2);

  color: #fff;

  text-decoration: none;

  font-size: 8px;

  letter-spacing: .13em;

  transition:
    background .3s ease,
    color .3s ease;
}


.waitlist-home:hover {
  background: #fff;

  color: #000;
}


/* =========================================
   FOOTER
========================================= */

.waitlist-footer {
  display: grid;

  grid-template-columns:
    1fr 1fr 1fr;

  width: 100%;

  padding-top: 20px;

  border-top:
    1px solid
    var(--soft-line);

  font-size: 8px;

  letter-spacing: .14em;

  color: #444;
}


.waitlist-footer span:nth-child(2) {
  text-align: center;
}


.waitlist-footer span:nth-child(3) {
  text-align: right;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 850px) {

  .waitlist-page {
    padding:
      28px 25px
      22px;
  }


  .waitlist-progress {
    margin-top: 65px;
  }


  .waitlist-form {
    margin-top: 60px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 520px) {

  .waitlist-page {
    padding:
      22px 20px
      18px;
  }


  .waitlist-header {
    align-items: center;
  }


  .waitlist-brand {
    font-size: 10px;
  }


  .waitlist-encouragement {
    max-width: 150px;

    font-size: 8px;
  }


  .waitlist-progress {
    margin-top: 55px;
  }


  .waitlist-form {
    margin:
      50px auto
      70px;
  }


  .waitlist-step h1,
  .waitlist-step h2,
  .waitlist-success h2 {
    font-size: 45px;
  }


  .waitlist-fields {
    margin-top: 50px;
  }


  .waitlist-field input {
    height: 50px;

    font-size: 15px;
  }


  .waitlist-question {
    margin-top: 40px;
  }


  .waitlist-options span {
    padding:
      10px 12px;

    font-size: 8px;
  }


  .waitlist-next,
  .waitlist-submit {
    width: 100%;

    margin-top: 40px;
  }


  .waitlist-success {
    margin:
      70px auto;
  }


  .waitlist-footer {
    font-size: 7px;
  }

}

/* =========================================
   WAITLIST — QUESTION GROUPS
========================================= */

.question-group {
  margin-top: 28px;
}


.question-group h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}


.choice {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 52px;

  padding: 14px 16px;
  margin-bottom: 8px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}


.choice:hover {
  border-color:
    rgba(255, 255, 255, 0.28);

  background:
    rgba(255, 255, 255, 0.035);
}


.choice input {
  width: 16px;
  height: 16px;

  margin: 0;

  accent-color: #fff;
}


.choice span {
  font-size: 14px;
  line-height: 1.4;
}


.form-error {
  min-height: 20px;

  margin: 12px 0 0;

  font-size: 12px;
  line-height: 1.4;

  color: #ff6b6b;
}