:root {
  --primary: #ef4444;
  --secondary: #f87171;
  --tertiary: #f97316;
  --deep: #dc2626;
  --glow: #ff6a2c;
  --rose: #ee4c53;
  --amber: #f35039;
  --crimson: #b53a93;
  --pink: #d23394;
  --magenta: #c53eb0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--white);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.p-large { font-size: 20px; font-weight: 400; line-height: 30px; }
.p-medium { font-size: 16px; font-weight: 400; line-height: 24px; }
.p-small { font-size: 14px; font-weight: 400; line-height: 20px; }

.link-large { font-size: 20px; font-weight: 500; line-height: 30px; }
.link-medium { font-size: 16px; font-weight: 500; line-height: 24px; }
.link-small { font-size: 14px; font-weight: 500; line-height: 20px; }

.button-large { font-size: 20px; font-weight: 500; line-height: 1; }
.button-medium { font-size: 16px; font-weight: 500; line-height: 1; }
.button-small { font-size: 14px; font-weight: 500; line-height: 1; }

.hero {
  position: relative;
  display: grid;
  height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 112px 24px 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--crimson);
}

.wave {
  position: absolute;
  width: 90vw;
  height: 90vw;
  border-radius: 50%;
  filter: blur(18px);
  animation: none;
}

.wave-a {
  top: -35%;
  left: -20%;
  background: radial-gradient(circle, var(--glow) 0%, var(--amber) 42%, var(--rose) 68%, transparent 80%);
}

.wave-b {
  right: -30%;
  bottom: -45%;
  background: radial-gradient(circle, var(--magenta) 0%, var(--pink) 40%, var(--crimson) 70%, transparent 82%);
}

.wave-c {
  top: 10%;
  left: 22%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, var(--rose) 0%, #eb3d53 40%, var(--pink) 72%, transparent 84%);
}

.wave-d {
  top: -18%;
  right: -8%;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, var(--pink) 0%, var(--magenta) 46%, var(--crimson) 74%, transparent 84%);
}

.bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
}

.logo {
  color: var(--white);
  text-decoration: none;
}

.menu {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu span,
.menu span::before,
.menu span::after {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.6px;
  border-radius: 1px;
  background: var(--white);
}

.menu span { top: 19px; }

.menu span::before,
.menu span::after {
  content: "";
  left: 0;
  transition: transform 150ms ease, top 150ms ease;
}

.menu span::before { top: -6px; }
.menu span::after { top: 6px; }

.bar.is-open .menu span { background: transparent; }
.bar.is-open .menu span::before { top: 0; transform: rotate(45deg); }
.bar.is-open .menu span::after { top: 0; transform: rotate(-45deg); }

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

.bar-end {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pages {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pages a {
  color: var(--white);
  text-decoration: none;
}

.pages a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.ctas { display: flex; align-items: center; gap: 8px; }
.ctas[hidden] { display: none; }

.member-name { margin: 0; color: var(--white); text-decoration: none; }

button.cta {
  font-family: inherit;
  cursor: pointer;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.cta-quiet {
  border: 0.8px solid var(--white);
  color: var(--white);
}

.cta-quiet:hover { background: rgba(255, 255, 255, 0.12); }

.cta-exit {
  border: 0;
  background: #000;
  color: var(--white);
}

.cta-exit:hover {
  color: var(--white);
  background-image: linear-gradient(
    100deg,
    var(--glow),
    var(--amber),
    var(--rose),
    var(--pink),
    var(--magenta),
    var(--glow)
  );
  background-size: 220% 100%;
  animation: cta-flow 3.5s linear infinite;
}

.cta-solid {
  gap: 0;
  border: 0;
  background: var(--white);
  color: var(--primary);
  transition: color 150ms ease, background-color 150ms ease, gap 150ms ease;
}

.cta-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: max-width 150ms ease, opacity 150ms ease;
}

.cta-solid:hover,
.cta-solid:focus-visible {
  gap: 6px;
  background: #000;
  color: #fff;
}

.cta-solid:hover .cta-arrow,
.cta-solid:focus-visible .cta-arrow {
  max-width: 16px;
  opacity: 1;
}

.cta:focus-visible,
.pages a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90, 16, 48, 0.12), rgba(90, 16, 48, 0.22));
}

.hero-inner { grid-area: 1 / 1; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-align: center;
}

.proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 22px;
}

.faces {
  display: flex;
  align-items: center;
}

.faces img {
  width: 44px;
  height: 44px;
  margin-left: -12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.faces img:first-child { margin-left: 0; }

.proof-count { margin: 0; }

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.lede {
  margin: 20px auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
}

.wait[hidden],
.wait-load[hidden],
.wait-answer[hidden] {
  display: none !important;
}

.wait {
  position: fixed;
  z-index: 5;
  top: 76px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: var(--crimson);
  box-shadow: 0 -18px 48px rgba(40, 0, 20, 0.32);
  text-align: center;
  transform: translateY(100%);
}

.wait.is-in { animation: sheet-up 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.wait::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 44px;
  height: 4px;
  margin-left: -22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.wait::after {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 90%;
  background:
    radial-gradient(circle at 18% 40%, var(--glow), transparent 42%),
    radial-gradient(circle at 82% 16%, var(--pink), transparent 46%),
    radial-gradient(circle at 58% 78%, var(--rose), transparent 42%);
  filter: blur(18px);
  pointer-events: none;
}

.wait-load,
.wait-answer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(680px, calc(100% - 48px));
}

.wait-answer { animation: rise 0.45s ease; }

.wait-answer .ask {
  width: 100%;
  margin: 4px 0 0;
}

.wait-load p,
.answer-text { margin: 0; }

.stages {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.stages li {
  color: rgba(255, 255, 255, 0.38);
  transition: color 280ms ease;
}

.stages li.is-now { color: var(--white); }

.stages li.is-done { color: rgba(255, 255, 255, 0.72); }

.dots {
  position: relative;
  width: 72px;
  height: 72px;
  animation: spin 1.15s linear infinite;
}

.dots i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: var(--white);
}

.dots i:nth-child(1) { transform: rotate(0deg) translateY(-28px); opacity: 1; }
.dots i:nth-child(2) { transform: rotate(30deg) translateY(-28px); opacity: 0.92; }
.dots i:nth-child(3) { transform: rotate(60deg) translateY(-28px); opacity: 0.82; }
.dots i:nth-child(4) { transform: rotate(90deg) translateY(-28px); opacity: 0.7; }
.dots i:nth-child(5) { transform: rotate(120deg) translateY(-28px); opacity: 0.58; }
.dots i:nth-child(6) { transform: rotate(150deg) translateY(-28px); opacity: 0.46; }
.dots i:nth-child(7) { transform: rotate(180deg) translateY(-28px); opacity: 0.36; }
.dots i:nth-child(8) { transform: rotate(210deg) translateY(-28px); opacity: 0.28; }
.dots i:nth-child(9) { transform: rotate(240deg) translateY(-28px); opacity: 0.22; }
.dots i:nth-child(10) { transform: rotate(270deg) translateY(-28px); opacity: 0.18; }
.dots i:nth-child(11) { transform: rotate(300deg) translateY(-28px); opacity: 0.28; }
.dots i:nth-child(12) { transform: rotate(330deg) translateY(-28px); opacity: 0.55; }

.wait-load p { color: rgba(255, 255, 255, 0.92); }

.answer-text {
  max-width: 34rem;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes cta-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.ask {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(680px, 100%);
  margin: 36px auto 0;
  padding: 18px 16px 12px 18px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.ask-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ask-spark {
  width: 16px;
  height: 16px;
  flex: none;
  fill: #8b909a;
}

.ask input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: #171717;
  font-family: inherit;
  outline: none;
  box-shadow: none;
}

.ask input:focus,
.ask input:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}

.ask input::placeholder { color: #8b909a; }

.ask-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ask-plus,
.ask-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 9999px;
  cursor: pointer;
}

.ask-plus {
  width: 34px;
  height: 34px;
  border: 1px solid #e6e6e8;
  background: #fff;
  color: #171717;
}

.ask-plus svg,
.ask-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ask-mode { position: relative; }

.ask-mode select {
  appearance: none;
  height: 34px;
  margin: 0;
  padding: 0 30px 0 12px;
  border: 1px solid #e6e6e8;
  border-radius: 9999px;
  background: #fff;
  color: #171717;
  font-family: inherit;
  cursor: pointer;
}

.ask-mode::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #171717;
  border-bottom: 1.5px solid #171717;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ask-send {
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: #171717;
  color: #fff;
}

.ask-plus:hover { background: #f4f4f5; }
.ask-send:hover { background: #000; }

.ask button:focus-visible,
.ask select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.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;
}

@keyframes wave-a {
  0% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(18vw, 22vh) scale(1.25); }
  70% { transform: translate(8vw, -8vh) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes wave-b {
  0% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-22vw, -18vh) scale(1.15); }
  75% { transform: translate(-6vw, 10vh) scale(1.3); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes wave-c {
  0% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-14vw, 16vh) scale(1.2); }
  65% { transform: translate(16vw, 6vh) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes wave-d {
  0% { transform: translate(0, 0) scale(1); }
  45% { transform: translate(-12vw, 20vh) scale(1.35); }
  80% { transform: translate(10vw, 8vh) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 860px) {
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    align-content: center;
    overflow: visible;
    padding: 96px 20px 36px;
  }

  .bar { padding: 16px 20px; }

  .menu { display: inline-flex; }

  .bar-end {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(23, 23, 23, 0.92);
  }

  .bar.is-open .bar-end { display: flex; }

  .pages {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pages a {
    padding: 12px 8px;
  }

  .ctas { flex-direction: column; align-items: stretch; }
  .ctas form { width: 100%; }

  .cta { min-height: 44px; width: 100%; }

  .proof { gap: 10px; margin-bottom: 16px; }

  .faces img {
    width: 36px;
    height: 36px;
    margin-left: -10px;
  }

  h1 { font-size: 34px; }

  .lede { margin-top: 12px; }

  .ask {
    margin-top: 24px;
    padding: 16px 14px 12px;
  }
}

.band {
  padding: 96px 24px 112px;
  background: #fff;
  color: #171717;
}

.band-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.band-kicker {
  margin: 0;
  color: var(--primary);
}

.band h2 {
  margin: 12px 0 0;
  max-width: 12ch;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.band-lede {
  margin: 20px 0 0;
  max-width: 28rem;
  color: #525252;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #ececee;
}

.step-num {
  display: block;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.steps h3 {
  margin: 0;
}

.steps p {
  margin: 8px 0 0;
  color: #525252;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}

.auth-hero {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  align-content: center;
  padding: 96px 20px 48px;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: #fff;
  color: #171717;
  text-align: left;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35);
}

.auth-card h1 {
  font-size: 32px;
  line-height: 1.1;
  color: #171717;
}

.auth-card .lede {
  margin: 10px 0 0;
  color: #525252;
}

.auth-error {
  margin: 14px 0 0;
  color: #b91c1c;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.field span { color: #737373; }

.field input {
  height: 44px;
  border: 1px solid #e6e6e8;
  border-radius: 9999px;
  padding: 0 16px;
  background: #fff;
  color: #171717;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  outline: none;
  box-shadow: none;
}

.field input:focus,
.field input:focus-visible {
  border-color: #171717;
  outline: none;
  box-shadow: none;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
  border: 0;
  cursor: pointer;
}

.auth-switch {
  margin: 16px 0 0;
  color: #525252;
}

.auth-switch a {
  color: #171717;
  font-weight: 500;
}
