:root {
  color-scheme: dark;

  --bg: #0f0718;
  --ink: #f4effb;
  --ink-secondary: #b9aecb;
  --ink-tertiary: #9a8fae;
  --brand: #a684f7;
  --on-brand: #170a2b;
  --brand-soft: #2e1b52;
  --on-brand-soft: #d9c9fd;
  --focus-ring: #c3a8ff;
  --success: #5cd39a;
  --success-soft: #14301f;
  --danger: #ff8075;
  --glass-fill: rgba(37, 24, 56, 0.58);
  --glass-stroke: rgba(255, 255, 255, 0.14);
  --shadow-glass: 0 10px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --hairline: rgba(244, 239, 251, 0.08);
  --aura-1: #5b2bc0;
  --aura-2: #3a1a6e;
  --aura-light: #7c4dea;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --radius-pill: 999px;
  --size-button: 52px;
  --content-max: 1280px;
  --side: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.nowrap {
  white-space: nowrap;
}

/* The empty alert stays rendered, so screen readers announce it when text arrives. */
.visually-hidden,
.beta__message--error:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  overflow: hidden;
  overflow: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page > * {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
}

.page > .aura {
  position: absolute;
  max-width: none;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.aura--1 {
  width: 420px;
  height: 420px;
  left: -160px;
  top: 420px;
  background: var(--aura-1);
  filter: blur(90px);
  opacity: 0.75;
}

.aura--2 {
  width: 360px;
  height: 360px;
  right: -140px;
  top: 160px;
  background: var(--aura-light);
  filter: blur(100px);
  opacity: 0.35;
}

.aura--3 {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 1100px;
  background: var(--aura-2);
  filter: blur(90px);
  opacity: 0.8;
}

.header {
  padding: 14px var(--side);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo__mark {
  display: block;
  border-radius: 11px;
}

.logo__name {
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 32px var(--side) 48px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--on-brand-soft);
  font-size: 0.875rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.badge__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--brand);
}

.hero__title {
  margin: 0;
  font-size: 2.75rem;
  line-height: 3rem;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.hero__accent {
  color: var(--brand);
}

.hero__lead {
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.625rem;
  color: var(--ink-secondary);
}

.beta {
  width: 100%;
  max-width: 520px;
}

.beta__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.beta__label {
  padding: 0 18px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.beta__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px;
  border-radius: 30px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-glass);
}

.beta__form.is-invalid .beta__field {
  border-color: var(--danger);
}

.beta__input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--size-button);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: -0.2px;
}

.beta__input::placeholder {
  color: var(--ink-secondary);
  opacity: 1;
}

.beta__input:focus {
  outline: none;
}

.beta__input:focus-visible {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 4px rgba(166, 132, 247, 0.25);
}

.beta__submit {
  flex: none;
  height: var(--size-button);
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--on-brand);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  cursor: pointer;
}

.beta__submit[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.beta__message {
  padding: 0 18px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink-secondary);
}

.beta__message--error {
  color: var(--danger);
}

.beta__done {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 28px;
  background: var(--success-soft);
  color: var(--success);
  text-align: left;
}

.beta__done-icon {
  flex: none;
  margin-top: 1px;
  stroke-width: 2;
}

.beta__done-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.beta__done-title {
  font-size: 1.0625rem;
  line-height: 1.375rem;
  font-weight: 700;
}

.beta__done-body {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.beta__reset {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--success);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink-secondary);
}

.checks li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checks svg {
  flex: none;
  stroke: var(--success);
  stroke-width: 2.2;
}

.phone {
  --phone-scale: 0.9;
  position: relative;
  flex: none;
  width: 300px;
  height: 634px;
}

.phone__frame {
  position: absolute;
  left: 50%;
  top: 0;
  width: 328px;
  height: 692px;
  margin-left: -164px;
  padding: 8px;
  border-radius: 58px;
  background: linear-gradient(160deg, #3a2a52, #1a1026);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: scale(var(--phone-scale));
  transform-origin: top center;
}

.phone__screen {
  position: relative;
  width: 312px;
  height: 676px;
  border-radius: 50px;
  overflow: hidden;
  background: var(--bg);
}

.phone__image {
  display: block;
  width: 312px;
  height: 675px;
}

.phone__island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: var(--radius-pill);
  background: #000;
}

.toast {
  position: absolute;
  left: -6px;
  top: 470px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(37, 24, 56, 0.8);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  text-align: left;
  white-space: nowrap;
}

.toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--success-soft);
  color: var(--success);
}

.toast__icon svg {
  stroke-width: 2.2;
}

.toast__text {
  display: flex;
  flex-direction: column;
}

.toast__title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.toast__meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-secondary);
}

.benefits {
  padding: 0 var(--side);
}

.benefits__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0 8px;
  border-top: 1px solid var(--hairline);
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--on-brand-soft);
}

.benefit__icon svg {
  stroke-width: 1.8;
}

.benefit__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit__title {
  font-size: 1.0625rem;
  line-height: 1.375rem;
  font-weight: 700;
}

.benefit__body {
  font-size: 0.9375rem;
  line-height: 1.375rem;
  color: var(--ink-secondary);
}

.legal {
  flex: 1 0 auto;
  padding: 32px var(--side) 56px;
}

.legal__text {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.625rem;
  color: var(--ink-secondary);
}

.legal__text h1 {
  margin: 0 0 4px;
  font-size: 2.125rem;
  line-height: 2.5625rem;
  font-weight: 700;
  color: var(--ink);
}

.legal__text h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  line-height: 1.5625rem;
  font-weight: 600;
  color: var(--ink);
}

.legal__text :is(p, ul) + :is(p, ul) {
  margin-top: 12px;
}

.legal__text ul {
  padding-left: 1.25em;
  list-style: disc;
}

.legal__text li + li {
  margin-top: 8px;
}

.legal__text strong {
  color: var(--ink);
}

.legal__text a {
  color: var(--brand);
}

.legal__meta {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--ink-tertiary);
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 32px var(--side) 40px;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--ink-tertiary);
}

.footer a {
  color: var(--ink-secondary);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 320 px wide screens: the 0.9 phone does not fit in the side margins. */
@media (max-width: 359px) {
  .phone {
    --phone-scale: 0.8;
    width: 262px;
    height: 554px;
  }

  .toast {
    left: -10px;
    top: 410px;
  }
}

@media (min-width: 1024px) {
  :root {
    --side: 40px;
  }

  .header {
    padding: 28px var(--side);
  }

  .hero {
    flex-direction: row;
    gap: 64px;
    padding: 56px var(--side) 64px;
  }

  .hero__text {
    flex: 1 1 0;
    align-items: flex-start;
    text-align: left;
  }

  .hero__title {
    font-size: clamp(3.5rem, 5.28vw, 4.75rem);
    line-height: 1.0526;
    letter-spacing: -2.4px;
  }

  .hero__lead {
    font-size: 1.25rem;
    line-height: 1.875rem;
  }

  .beta__field {
    flex-direction: row;
    border-radius: var(--radius-pill);
  }

  .checks {
    justify-content: flex-start;
  }

  .phone {
    --phone-scale: 1;
    width: 420px;
    height: 700px;
  }

  .toast {
    left: -40px;
    top: 440px;
  }

  .benefits__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-top: 40px;
  }

  .legal {
    padding: 56px var(--side) 64px;
  }

  .footer {
    flex-direction: row;
    padding: 48px var(--side) 40px;
  }

  .aura--1 {
    width: 760px;
    height: 760px;
    left: -220px;
    top: 120px;
  }

  .aura--2 {
    width: 640px;
    height: 640px;
    right: -120px;
    top: -80px;
  }

  .aura--3 {
    width: 760px;
    height: 760px;
    left: calc(50% - 20px);
    top: 640px;
  }
}
