/* Homepage waitlist — design handoff v2026 */

html:has(.home-waitlist-page) body {
  background-color: #F6F5F1;
  background-image:
    linear-gradient(#e9e6e0 1px, transparent 1px),
    linear-gradient(90deg, #e9e6e0 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  font-family: 'Hanken Grotesk', 'Geist', system-ui, sans-serif;
  color: #1a1815;
}

html:has(.home-waitlist-page) body::before {
  display: none;
}

.home-waitlist-page {
  --wl-paper: #F6F5F1;
  --wl-card: #FFFFFF;
  --wl-field: #FAF9F6;
  --wl-ink: #1a1815;
  --wl-ink-soft: #56524c;
  --wl-ink-mute: #8d887f;
  --wl-line: #e9e6e0;
  --wl-orange: #E8823C;
  --wl-orange-cta: #E07B39;
  --wl-orange-deep: #bd6526;
  --wl-green: #3c7d3f;
  --wl-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;
  --wl-sans: 'Hanken Grotesk', 'Geist', system-ui, sans-serif;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  box-sizing: border-box;
  font-family: var(--wl-sans);
  color: var(--wl-ink);
  background-color: var(--wl-paper);
  background-image:
    linear-gradient(var(--wl-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--wl-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
}

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

.home-waitlist-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  background: var(--wl-card);
  border: 1px solid var(--wl-line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 40px 90px -50px rgba(40, 30, 15, 0.4),
    0 2px 6px rgba(40, 30, 15, 0.04);
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
}

.home-waitlist-card::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 42%;
  width: 520px;
  height: 360px;
  background: radial-gradient(circle, rgba(232, 130, 60, 0.18), transparent 60%);
  filter: blur(8px);
  pointer-events: none;
}

.home-wl-glowdot {
  position: absolute;
  top: 62px;
  left: calc(42% + 56px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wl-orange);
  box-shadow: 0 0 0 5px rgba(232, 130, 60, 0.14);
  z-index: 2;
  pointer-events: none;
}

.home-wl-left {
  padding: 64px 56px 60px;
  position: relative;
  z-index: 1;
}

.home-wl-header { margin: 0; }

.home-wl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wl-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--wl-orange-deep);
  background: #f7e9da;
  padding: 7px 13px;
  border-radius: 7px;
  white-space: nowrap;
}

.home-wl-eyebrow-tri {
  width: 0;
  height: 0;
  border-left: 6px solid var(--wl-orange-deep);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.home-wl-title {
  font-size: 46px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.028em;
  margin: 24px 0 0;
  text-wrap: balance;
  max-width: 15ch;
}

.home-wl-accent { color: var(--wl-orange-deep); }

.home-wl-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--wl-ink-soft);
  margin: 20px 0 0;
  max-width: 46ch;
}

.home-wl-lede b {
  color: var(--wl-ink);
  font-weight: 700;
}

.home-wl-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 0;
  border: 1px solid var(--wl-line);
  border-radius: 13px;
  padding: 13px 16px;
  background: #fcfbf9;
}

.home-wl-avatars { display: flex; }

.home-wl-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  font-family: var(--wl-mono);
}

.home-wl-av:first-child { margin-left: 0; }
.home-wl-av-a { background: #E07B39; }
.home-wl-av-b { background: #2c2a27; }
.home-wl-av-c { background: var(--wl-green); }
.home-wl-av-d { background: #161412; font-size: 14px; }

.home-wl-proof-text {
  font-size: 14.5px;
  color: var(--wl-ink-soft);
  margin: 0;
}

.home-wl-proof-text b {
  color: var(--wl-ink);
  font-weight: 800;
}

.home-wl-props {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.home-wl-props li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--wl-line);
}

.home-wl-props li:last-child { border-bottom: 1px solid var(--wl-line); }

.home-wl-prop-n {
  font-family: var(--wl-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--wl-orange-deep);
  padding-top: 3px;
  flex: none;
}

.home-wl-prop-t {
  font-size: 16px;
  line-height: 1.45;
  color: var(--wl-ink-soft);
}

.home-wl-prop-t b {
  color: var(--wl-ink);
  font-weight: 700;
}

.home-wl-prop-full { display: inline; }
.home-wl-prop-short { display: none; }

.home-wl-right {
  padding: 64px 56px 60px;
  border-left: 1px solid var(--wl-line);
  background: #fcfbf9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.home-wl-fhead {
  font-family: var(--wl-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wl-ink-mute);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.home-wl-form {
  margin: 0;
  width: 100%;
}

.home-waitlist-page .home-wl-field {
  width: 100%;
  margin: 0;
  font-family: var(--wl-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--wl-ink);
  background: var(--wl-card);
  border: 1px solid var(--wl-line);
  border-radius: 13px;
  padding: 17px 18px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: 0.15s;
  box-sizing: border-box;
}

.home-waitlist-page .home-wl-field::placeholder { color: var(--wl-ink-mute); }

.home-waitlist-page .home-wl-field:focus {
  border-color: var(--wl-orange);
  box-shadow: 0 0 0 3px rgba(232, 130, 60, 0.14);
}

.home-waitlist-page .home-wl-field:focus-visible {
  outline: none;
}

/* Labels sit between inputs — use ~ not + */
.home-waitlist-page .home-wl-form .home-wl-field ~ .home-wl-field {
  margin-top: 13px;
}

.home-wl-hint {
  font-family: var(--wl-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #b6b0a6;
  margin: 9px 0 0;
}

.home-waitlist-page button.home-wl-submit {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: var(--wl-sans);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--wl-orange-cta);
  border: none;
  border-radius: 13px;
  padding: 18px;
  cursor: pointer;
  transition: 0.16s;
  box-shadow: 0 14px 30px -12px rgba(224, 123, 57, 0.7);
  appearance: none;
  -webkit-appearance: none;
}

.home-waitlist-page button.home-wl-submit svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.home-waitlist-page button.home-wl-submit:not(:disabled):hover {
  background: #ec8742;
  transform: translateY(-1px);
}

.home-waitlist-page button.home-wl-submit:disabled {
  opacity: 1;
  cursor: wait;
  transform: none;
}

.home-waitlist-page button.home-wl-submit:focus-visible {
  outline: none;
  box-shadow:
    0 14px 30px -12px rgba(224, 123, 57, 0.7),
    0 0 0 3px rgba(232, 130, 60, 0.14);
}

.home-waitlist-page button.home-wl-submit.is-loading .home-wl-submit-label::after {
  content: "";
  display: inline-block;
  width: 1ch;
  animation: home-wl-ellipsis 1.2s infinite;
}

@keyframes home-wl-ellipsis {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80%, 100% { content: "..."; }
}

.home-wl-incentive {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--wl-ink-soft);
}

.home-wl-lock {
  width: 15px;
  height: 15px;
  color: var(--wl-orange-deep);
  flex: none;
}

.home-wl-incentive b {
  color: var(--wl-ink);
  font-weight: 700;
}

/* Success */
.home-waitlist-card--success {
  display: block;
  max-width: 560px;
  padding: 56px 48px 48px;
}

.home-wl-success {
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-wl-success-mark {
  color: var(--wl-green);
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
}

.home-wl-success-label {
  font-family: var(--wl-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wl-green);
  font-weight: 700;
  margin-bottom: 8px;
}

.home-wl-success-title {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.home-wl-success-position {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
  background: var(--wl-ink);
  color: #fff;
  border-radius: 13px;
  margin-bottom: 18px;
}

.home-wl-success-position-label {
  font-family: var(--wl-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.home-wl-success-position-num {
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-wl-success-position-num span { color: var(--wl-orange); }

.home-wl-success-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--wl-ink-soft);
  margin: 0 0 18px;
}

.home-wl-success-sub strong { color: var(--wl-ink); }

.home-wl-success-followup {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--wl-ink-soft);
  padding: 14px 16px;
  background: #fcfbf9;
  border: 1px solid var(--wl-line);
  border-radius: 13px;
  text-align: left;
}

.home-wl-success-followup-icon {
  flex-shrink: 0;
  font-family: var(--wl-mono);
  color: var(--wl-orange-deep);
  font-weight: 700;
}

/* Mobile: form high, after headline */
@media (max-width: 860px) {
  html:has(.home-waitlist-page) body {
    background-size: 46px 46px;
  }

  .home-waitlist-page {
    align-items: flex-start;
    padding: 24px 16px 32px;
    background-size: 46px 46px;
  }

  .home-waitlist-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "form"
      "proof"
      "props";
    border-radius: 24px;
    max-width: none;
    padding: 30px 24px 30px;
    box-shadow: 0 20px 50px -36px rgba(40, 30, 15, 0.4);
  }

  .home-waitlist-card::before {
    top: -120px;
    left: 30%;
    width: 300px;
    height: 240px;
    background: radial-gradient(circle, rgba(232, 130, 60, 0.16), transparent 62%);
    filter: blur(6px);
  }

  .home-wl-glowdot {
    top: 30px;
    right: 34px;
    left: auto;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 4px rgba(232, 130, 60, 0.14);
  }

  .home-wl-left {
    display: contents;
  }

  .home-wl-header {
    grid-area: header;
    padding: 0;
  }

  .home-wl-right {
    grid-area: form;
    border-left: none;
    padding: 0;
    margin-top: 22px;
    background: transparent;
  }

  .home-wl-fhead {
    display: none;
  }

  .home-wl-proof {
    grid-area: proof;
    margin: 22px 0 0;
    gap: 12px;
    padding: 12px 14px;
  }

  .home-wl-props {
    grid-area: props;
    margin: 8px 0 0;
  }

  .home-wl-prop-full { display: none; }
  .home-wl-prop-short { display: inline; }

  .home-wl-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 6px 11px;
    border-radius: 6px;
    gap: 7px;
  }

  .home-wl-eyebrow-tri {
    border-left-width: 5px;
    border-top-width: 3.5px;
    border-bottom-width: 3.5px;
  }

  .home-wl-title {
    font-size: 30px;
    line-height: 1.06;
    letter-spacing: -0.026em;
    margin-top: 16px;
    max-width: none;
  }

  .home-wl-lede {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 13px;
    max-width: none;
  }

  .home-wl-lede-extra { display: none; }

  .home-waitlist-page .home-wl-field {
    background: var(--wl-field);
    padding: 15px 16px;
  }

  .home-waitlist-page .home-wl-field:focus { background: #fff; }

  .home-waitlist-page .home-wl-form .home-wl-field ~ .home-wl-field {
    margin-top: 10px;
  }

  .home-wl-hint {
    font-size: 10.5px;
    letter-spacing: 0.05em;
    margin-top: 8px;
  }

  .home-waitlist-page button.home-wl-submit {
    font-size: 16.5px;
    padding: 17px;
    margin-top: 16px;
    gap: 10px;
    box-shadow: 0 14px 28px -12px rgba(224, 123, 57, 0.7);
  }

  .home-waitlist-page button.home-wl-submit svg {
    width: 17px;
    height: 17px;
  }

  .home-waitlist-page button.home-wl-submit:not(:disabled):hover {
    background: var(--wl-orange-cta);
    transform: none;
  }

  .home-waitlist-page button.home-wl-submit:not(:disabled):active { transform: translateY(1px); }

  .home-wl-incentive { margin-top: 15px; }

  .home-wl-av {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .home-wl-av-d { font-size: 13px; }

  .home-wl-proof-text { font-size: 13.5px; }

  .home-wl-props li {
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--wl-line);
    border-top: none;
  }

  .home-wl-props li:last-child { border-bottom: 1px solid var(--wl-line); }

  .home-wl-prop-n { font-size: 12px; padding-top: 2px; }

  .home-wl-prop-t { font-size: 14.5px; }

  .home-waitlist-card--success {
    padding: 40px 24px 32px;
  }
}
