/* /waitlist/: light Apple-style page. Accent is the TOS link lavender (#d5cbec). */

:root {
  color-scheme: light only;
  --wl-bg: #d5cbec;
  --wl-surface: #ffffff;
  --wl-group: #f5f5f7;
  --wl-group-hover: #ececf0;
  --wl-tint: #f0ebf9;
  --wl-separator: rgba(59, 47, 74, 0.12);
  --wl-accent: #d5cbec;
  --wl-accent-hover: #c9bce6;
  --wl-accent-pressed: #bdb0dc;
  --wl-accent-strong: #8b79c4;
  --wl-border: #dcdce2;
  --wl-border-hover: #c4c4cc;
  --wl-ring: rgba(139, 121, 196, 0.24);
  --wl-placeholder: #9e97a9;
  --wl-text: #1f1a26;
  --wl-secondary: #564e63;
  --wl-tertiary: #776f84;
  --wl-error: #d70015;
  --wl-radius: 18px;
  --wl-radius-sm: 12px;
  --wl-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --wl-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --wl-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --wl-shadow: 0 1px 2px rgba(59, 47, 74, 0.05), 0 24px 48px -16px rgba(59, 47, 74, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--wl-bg);
  -webkit-text-size-adjust: 100%;
}

body.wl-body {
  min-height: 100vh;
  background-color: var(--wl-bg);
  color: var(--wl-text);
  font-family: var(--wl-font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--wl-accent-strong);
  outline-offset: 3px;
}

.wl-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--wl-text);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.wl-skip:focus {
  top: 12px;
}

.wl-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 20px 0;
  background: transparent;
}

.wl-banner-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 22px;
  animation: wl-fade 0.7s var(--wl-ease) both;
}

.wl-main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.wl-intro {
  text-align: left;
  margin-bottom: 36px;
  padding: 0 4px;
}

.wl-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(139, 121, 196, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b3f6b;
}

.wl-title {
  font-family: var(--wl-font-display);
  font-size: clamp(26px, 5.5vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--wl-text);
}

.wl-lede {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--wl-secondary);
  margin: 0;
  max-width: 42em;
}

.wl-card {
  background: var(--wl-surface);
  border-radius: 24px;
  box-shadow: var(--wl-shadow);
  padding: 28px 22px 24px;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wl-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}

.wl-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--wl-group-hover);
  overflow: hidden;
}

.wl-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--wl-accent-strong);
  transition: width 0.4s var(--wl-ease);
}

.wl-progress-label {
  flex-shrink: 0;
  min-width: 10em;
  font-size: 13px;
  letter-spacing: -0.006em;
  color: var(--wl-tertiary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wl-form-alert {
  padding: 13px 16px;
  border-radius: var(--wl-radius-sm);
  background: rgba(215, 0, 21, 0.08);
  color: #9b1020;
  font-size: 15px;
  line-height: 1.4;
}

.wl-form-alert a {
  color: var(--wl-text);
  font-weight: 600;
}

.wl-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--wl-radius-sm);
  background: var(--wl-tint);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--wl-text);
}

.wl-perk .wl-hint-icon {
  margin-top: 1px;
}

.wl-fields {
  display: grid;
  gap: 16px;
}

.wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border: 0;
}

.wl-label {
  padding: 0 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.006em;
  color: var(--wl-secondary);
}

/* No-JS only: says a follow-up question is just for one answer above. */
.wl-label-note {
  font-weight: 400;
}

.wl-fieldset legend {
  margin-bottom: 6px;
}

.wl-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--wl-border);
  border-radius: 10px;
  background: var(--wl-group);
  color: var(--wl-text);
  font-size: 16px; /* >= 16px so iOS doesn't zoom on focus */
  line-height: 1.25;
  caret-color: var(--wl-accent-strong);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wl-input::placeholder {
  color: var(--wl-placeholder);
}

.wl-input:hover {
  border-color: var(--wl-border-hover);
}

.wl-input:focus {
  outline: none;
  border-color: var(--wl-accent-strong);
  background: var(--wl-surface);
  box-shadow: 0 0 0 4px var(--wl-ring);
}

.wl-field.is-invalid .wl-input {
  border-color: var(--wl-error);
}

.wl-field.is-invalid .wl-input:focus {
  box-shadow: 0 0 0 4px rgba(215, 0, 21, 0.12);
}

.wl-input:-webkit-autofill,
.wl-input:-webkit-autofill:hover,
.wl-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--wl-text);
  -webkit-box-shadow: 0 0 0 1000px var(--wl-group) inset;
  transition: background-color 9999s ease-out 0s;
}

.wl-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--wl-surface) inset, 0 0 0 4px var(--wl-ring);
}

.wl-select-wrap {
  position: relative;
}

.wl-select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 13px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16' fill='none' stroke='%23564e63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 5.5 5 2l3.5 3.5M1.5 10.5 5 14l3.5-3.5'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.wl-select {
  padding-right: 36px;
  cursor: pointer;
}

.wl-select:invalid {
  color: var(--wl-placeholder);
}

.wl-select option {
  color: #1d1d1f;
  background: #ffffff;
}

.wl-error {
  padding: 0 2px;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: -0.006em;
  color: var(--wl-error);
}

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

.wl-field.is-invalid .wl-error {
  animation: wl-fade 0.2s ease;
}

.wl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wl-chip {
  position: relative;
  cursor: pointer;
}

.wl-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.wl-chip span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--wl-border);
  border-radius: 999px;
  background: var(--wl-group);
  font-size: 15px;
  color: var(--wl-text);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wl-chip:hover span {
  border-color: var(--wl-border-hover);
}

.wl-chip input:checked + span {
  background: var(--wl-accent);
  border-color: var(--wl-accent-strong);
  box-shadow: inset 0 0 0 0.5px var(--wl-accent-strong);
}

.wl-chip input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--wl-ring);
}

.wl-fieldset.is-invalid .wl-chip span {
  border-color: var(--wl-error);
}

.wl-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl-actions {
  margin-top: 4px;
}

.wl-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 980px;
  background: var(--wl-accent);
  color: var(--wl-text);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.wl-submit:hover {
  background: var(--wl-accent-hover);
}

.wl-submit:active {
  background: var(--wl-accent-pressed);
  transform: scale(0.985);
}

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

.wl-submit[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.wl-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(29, 29, 31, 0.2);
  border-top-color: var(--wl-text);
  animation: wl-spin 0.8s linear infinite;
}

.wl-submit.is-loading .wl-spinner {
  display: inline-block;
}

.wl-legal {
  margin-top: -8px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--wl-tertiary);
  text-align: center;
}

.wl-legal a {
  color: #8b79c4;
  text-decoration: none;
}

.wl-legal a:hover {
  text-decoration: underline;
}

.wl-success {
  text-align: center;
  padding: 8px 4px 4px;
  outline: none;
  animation: wl-fade 0.5s var(--wl-ease);
}

.wl-success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.wl-success-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.wl-success-mark circle {
  stroke: var(--wl-accent);
  fill: var(--wl-accent);
  fill-opacity: 0;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: wl-draw 0.6s var(--wl-ease) 0.1s forwards, wl-fill 0.3s ease 0.6s forwards;
}

.wl-success-mark path {
  stroke: var(--wl-text);
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: wl-draw 0.4s var(--wl-ease) 0.7s forwards;
}

.wl-success-title {
  font-family: var(--wl-font-display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.wl-success-copy {
  font-size: 17px;
  line-height: 1.47;
  color: var(--wl-secondary);
  max-width: 440px;
  margin: 0 auto 20px;
}

.wl-hint-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: #8b79c4;
}

/* Referral card on the success screen */

.wl-refer {
  max-width: 460px;
  margin: 28px auto 0;
  padding: 20px;
  border-radius: var(--wl-radius);
  background: var(--wl-tint);
  text-align: left;
}

.wl-refer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.wl-refer-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  fill: var(--wl-accent-strong);
}

.wl-refer-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.wl-refer-copy {
  font-size: 15px;
  line-height: 1.45;
  color: var(--wl-secondary);
}

.wl-refer-copy strong {
  font-weight: 600;
  color: var(--wl-text);
}

.wl-refer-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wl-secondary);
  margin-bottom: 6px;
}

.wl-refer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius-sm);
  background: var(--wl-surface);
}

.wl-refer-link:focus-within {
  border-color: var(--wl-accent-strong);
  box-shadow: 0 0 0 4px var(--wl-ring);
}

.wl-refer-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--wl-text);
  font: 500 15px var(--wl-font);
  text-overflow: ellipsis;
}

.wl-refer-copy-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 9px;
  background: var(--wl-accent);
  color: var(--wl-text);
  font: 600 15px var(--wl-font);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wl-refer-copy-btn:hover {
  background: var(--wl-accent-hover);
}

.wl-share-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-refer .wl-share-actions {
  flex-direction: column;
}

.wl-refer .wl-share-status {
  min-height: 0;
  margin-top: 8px;
}

.wl-refer .wl-share-status:empty {
  display: none;
}

.wl-refer .wl-btn {
  width: 100%;
  padding: 0 16px;
  white-space: nowrap;
}

.wl-btn--whatsapp {
  background: #25d366;
  color: #0b2e18;
}

.wl-btn--whatsapp:hover {
  background: #20c25c;
}

.wl-follow {
  margin-top: 28px;
}

.wl-follow-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--wl-secondary);
  margin-bottom: 12px;
}

.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.wl-btn:active {
  opacity: 0.85;
}

.wl-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.wl-btn--primary {
  background: var(--wl-accent);
  color: var(--wl-text);
}

.wl-btn--primary:hover {
  background: var(--wl-accent-hover);
}

.wl-btn--ghost {
  background: var(--wl-group);
  color: var(--wl-text);
  box-shadow: inset 0 0 0 1px var(--wl-border);
}

.wl-btn--ghost:hover {
  background: var(--wl-group-hover);
}

.wl-share-status {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 13px;
  color: var(--wl-secondary);
  text-align: center;
}

.wl-home-link {
  display: inline-block;
  margin-top: 8px;
  padding: 10px;
  font-size: 17px;
  color: #8b79c4;
  text-decoration: none;
}

.wl-home-link::after {
  content: " ›";
}

.wl-home-link:hover {
  text-decoration: underline;
}

.wl-footer {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 28px 20px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--wl-secondary);
}

.wl-footer-logo {
  display: inline-block;
}

.wl-footer-logo img {
  width: auto;
  height: 18px;
  margin-bottom: 10px;
  filter: brightness(0);
  opacity: 0.45;
}

.wl-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.wl-footer-links a {
  color: var(--wl-secondary);
  text-decoration: none;
  padding: 6px 0;
}

.wl-footer-links a + a::before {
  content: "·";
  margin: 0 10px;
  color: var(--wl-secondary);
}

.wl-footer-links a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .wl-main {
    padding-top: 20px;
  }

  .wl-intro {
    margin-bottom: 40px;
  }

  .wl-lede {
    font-size: 17px;
    line-height: 1.38;
  }

  .wl-card {
    padding: 36px 36px 32px;
  }

  .wl-share-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .wl-legal {
    margin-top: 4px;
  }

  .wl-intro {
    margin-bottom: 28px;
  }

  .wl-card {
    padding: 22px 18px 22px;
  }
}

@keyframes wl-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wl-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wl-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes wl-fill {
  to {
    fill-opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .wl-success-mark circle,
  .wl-success-mark path {
    stroke-dashoffset: 0;
  }

  .wl-success-mark circle {
    fill-opacity: 1;
  }
}
