@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --raised: rgb(16 24 40 / 0.035);
  --line: rgb(16 24 40 / 0.1);
  --line-strong: rgb(16 24 40 / 0.22);
  --fg: #101828;
  --muted: #566072;
  --faint: #8a93a3;
  --accent: #2f6fed;
  --accent-strong: #1f5bd6;
  --accent-soft: #eaf1ff;
  --ok: #1f9d63;
  --danger: #d92d3a;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 12px 32px -12px rgb(16 24 40 / 0.18);
  color-scheme: light;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss03";
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

::selection {
  background: rgb(47 111 237 / 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}

a.button:hover,
button.button:hover {
  background: var(--accent-strong);
}

button.button {
  cursor: pointer;
}

button.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button.large {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.button.small {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 112px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(47 111 237 / 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, transparent 30%, #000 100%);
}

.hero-text {
  padding-top: 112px;
  text-align: center;
}

.hero h1 {
  max-width: 896px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 7.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.accent {
  color: var(--accent);
}

.underlined {
  position: relative;
  display: inline-block;
}

.underlined svg {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  color: var(--accent);
}

.lede {
  max-width: 672px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.25rem);
  line-height: 1.625;
}

.join {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 36px auto 0;
  scroll-margin-top: 96px;
}

.join[hidden] {
  display: none;
}

.join input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.join input[type="email"]::placeholder {
  color: var(--faint);
}

.join input[type="email"]:hover {
  border-color: var(--faint);
}

.join input[type="email"]:focus {
  border-color: var(--accent);
}

.trap {
  position: absolute;
  left: -9999px;
}

.status {
  min-height: 21px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.status.is-done {
  margin-top: 36px;
  color: var(--fg);
  font-size: 18px;
  font-weight: 500;
}

.status.is-done::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: middle;
}

/* Demo video */

.demo {
  position: relative;
  max-width: 896px;
  margin: 72px auto 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.demo video,
.demo iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.demo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--faint);
  font-size: 15px;
}

/* Footer */

.bottom {
  border-top: 1px solid var(--line);
}

.bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 80px;
  }

  .hero-text {
    padding-top: 72px;
  }

  .join {
    flex-direction: column;
  }

  .join input[type="email"] {
    flex: none;
  }

  .demo {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
