:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #0084ff;
  --primary-hover: #0066cc;
  --warning: #ff6622;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --panel-muted: #f1f5f9;
  --control-height: 52px;
}

* { box-sizing: border-box; }

.waitlist-section {
  padding: 96px 0 90px;
  background: #ffffff;
  margin: 0;
}

.waitlist-section .waitlist-header {
  margin-bottom: 35px;
}

.card {
  width: 100%;
  max-width: 750px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin: 0 auto;
}

.waitlist-section #page-title {
  text-transform: uppercase;
}

.waitlist-section #page-intro {
  max-width: 710px;
  margin: 0 auto 20px;
}

.hidden { display: none !important; }

.step {
  display: none;
}

.step--active {
  display: block;
}

.form {
  display: grid;
  gap: 14px;
  font-family: "Poppins", sans-serif;
}

.field {
  display: grid;
  gap: 8px;
  scroll-margin-top: 96px;
}

.captcha-field {
  display: grid;
  gap: 6px;
}

.captcha-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.captcha-visual {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field > span,
.captcha-label {
  font-size: 16px;
  font-weight: 400;
  color: #374048;
  font-family: "Poppins", sans-serif;
}

.field input[type="email"],
.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #e1e4e7;
  border-radius: 5px;
  padding: 0.875rem 1rem;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: "Poppins", sans-serif;
  color: #374048;
}

.field input[type="email"]::placeholder,
.field input[type="text"]::placeholder,
.field textarea::placeholder {
  color: #b4bcc3;
  font-weight: 300;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #0084ff;
  box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.1);
}

.field textarea {
  resize: vertical;
}

.compact-textarea {
  min-height: 104px;
  max-height: 220px;
}

.compact-textarea--roomy {
  min-height: 128px;
  max-height: 260px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8f969d 50%), linear-gradient(135deg, #8f969d 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e1e4e7;
  border-radius: 5px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 300;
  font-family: "Poppins", sans-serif;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.captcha-block {
  display: contents;
}

.captcha-image {
  margin-top: 0;
  width: 138px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 5px;
  border: 1px solid #e1e4e7;
  overflow: hidden;
  flex-shrink: 0;
}

.captcha-image svg {
  display: block;
  width: 100%;
  height: 100%;
}

.captcha-answer-field {
  gap: 0;
}

.primary-button,
.secondary-button,
.skip-button {
  border: none;
  border-radius: 30px;
  padding: 0 33px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s linear;
  text-align: center;
  font-family: "Poppins", sans-serif;
  height: 54px;
}

.primary-button {
  background: #0084ff;
  color: white;
  width: 100%;
}

.primary-button:hover { 
  background: #0066cc;
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.secondary-button {
  background: #e1e4e7;
  color: #374048;
  padding: 0;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  color: #8f969d;
}

.captcha-refresh-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.captcha-refresh:hover {
  background: transparent;
  color: #0084ff;
  box-shadow: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.secondary-button:hover {
  background: #cbd5e1;
}

.question-label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  color: #374048;
  font-weight: 400;
  font-size: 16px;
}

.question-label > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.info-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: help;
  vertical-align: middle;
}

.info-trigger::before,
.info-trigger::after {
  position: absolute;
  left: 50%;
  content: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
}

.info-trigger::before {
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #374048;
}

.info-trigger::after {
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(220px, calc(100vw - 32px));
  padding: 8px 10px;
  border-radius: 5px;
  background: #374048;
  color: #ffffff;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.35;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Poppins", sans-serif;
}

.info-trigger:focus-visible {
  outline: none;
}

.info-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: block;
  opacity: 0.6;
}

.info-trigger.is-touch-open .info-icon {
  opacity: 1;
}

.info-trigger.is-touch-open::before {
  content: "";
}

.info-trigger.is-touch-open::after {
  content: attr(data-tooltip);
}

.info-trigger.is-touch-open::before,
.info-trigger.is-touch-open::after {
  opacity: 1;
  visibility: visible;
}

.info-trigger.is-touch-open::before,
.info-trigger.is-touch-open::after {
  transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
  .info-trigger:hover .info-icon,
  .info-trigger:focus-visible .info-icon {
    opacity: 1;
  }

  .info-trigger:hover::before,
  .info-trigger:focus-visible::before {
    content: "";
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
  }

  .info-trigger:hover::after,
  .info-trigger:focus-visible::after {
    content: attr(data-tooltip);
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
  }
}

@media (hover: none), (pointer: coarse) {

  .info-trigger.touch-align-left::before {
    left: 3px;
    transform: none;
  }

  .info-trigger.touch-align-left::after {
    left: 0;
    transform: none;
  }

  .info-trigger.touch-align-right::before {
    left: auto;
    right: 3px;
    transform: none;
  }

  .info-trigger.touch-align-right::after {
    left: auto;
    right: 0;
    transform: none;
  }
}

.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
  scroll-margin-top: 96px;
}

.field--invalid > input[type="email"],
.field--invalid > input[type="text"],
.field--invalid > textarea,
.field--invalid > select {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.field--invalid legend,
.field--invalid .question-label {
  color: #991b1b;
}

.field--invalid.choice-group {
  padding: 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.55);
}

.choice-group legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 400;
  color: #374048;
  font-family: "Poppins", sans-serif;
  border: 0;
  border-bottom: 0;
}

.choice-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e1e4e7;
  border-radius: 5px;
  background: #ffffff;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.choice-card:hover {
  border-color: rgba(0, 132, 255, 0.4);
  background: rgba(0, 132, 255, 0.05);
}

.choice-card:has(input:checked) {
  border-color: #0084ff;
  background: rgba(0, 132, 255, 0.08);
}

.choice-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0084ff;
}

.choice-card span {
  color: #374048;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}

.price-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.price-slider-row--stacked {
  margin-top: 4px;
}

.price-slider {
  flex: 1;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border-radius: 999px;
  outline: none;
  accent-color: #0084ff;
  cursor: pointer;
}

.price-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: #e1e4e7;
  border-radius: 999px;
}

.price-slider::-moz-range-track {
  height: 6px;
  background: #e1e4e7;
  border-radius: 999px;
  border: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0084ff;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0084ff;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.price-slider-output {
  min-width: 60px;
  text-align: right;
  font-weight: 500;
  font-size: 16px;
  color: #374048;
  font-family: "Poppins", sans-serif;
}

.skip-button-row {
  text-align: center;
}

.skip-button {
  background: transparent;
  color: #0084ff;
  width: auto;
  display: inline;
  padding: 0;
  text-decoration: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  height: auto;
  font-family: "Poppins", sans-serif;
}

.skip-button:hover {
  text-decoration: underline;
}

.primary-button:disabled,
.secondary-button:disabled,
.skip-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.flash {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}

.flash--error {
  background: #fef2f2;
  color: #991b1b;
}

.flash--success {
  background: #ecfdf5;
  color: #065f46;
}

.summary,
.optional-note {
  margin-bottom: 14px;
  color: #82898f;
  line-height: 26px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

.optional-form {
  margin-top: 8px;
}

.question-divider {
  height: 1px;
  background: #e1e4e7;
}

.conditional-field {
  margin-top: 2px;
}

.success-box {
  border: 1px solid #86efac;
  background: #f0fdf4;
  border-radius: 5px;
  padding: 28px;
  text-align: center;
}

.success-box h2 {
  margin: 0 0 12px;
  font-size: 30px;
  color: #065f46;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.success-box p {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #065f46;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
}

@media (max-width: 640px) {
  .card {
    padding: 32px 24px;
    border-radius: 0;
  }

  .waitlist-section .waitlist-header {
    margin-bottom: 25px;
  }

  .waitlist-section #page-intro {
    max-width: 90%;
  }

  .captcha-block {
    display: block;
  }

  .secondary-button {
    width: 100%;
  }

  .captcha-refresh {
    width: 28px;
  }

  .question-label {
    align-items: flex-start;
  }

  .choice-card {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
  }

}

@media (max-width: 370px) {
  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-visual {
    width: 100%;
  }
}
