@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-bold.woff2") format("woff2");
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist/geist-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist/geist-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist/geist-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist/geist-mono-500.woff2") format("woff2");
}

:root {
  --bg: #f4f4f6;
  --ink: #28282c;
  --muted: #55555d;
  --body: #45454b;
  --faint: #a3a3b0;
  --dot: #c4c4cc;
  --rule: #d5d5da;
  --error: #cf3f38;
  --white: #ffffff;
  --scrim: hsla(240, 8%, 18%, 0.05);
  --ease: cubic-bezier(0.42, 0, 0.44, 1.52);
  color-scheme: light;
}

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

html {
  background: var(--bg);
}

body.home {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

.home h1,
.home h2,
.home p,
.home ul {
  margin: 0;
  padding: 0;
}

.home a {
  color: var(--ink);
  text-decoration: none;
}

.home a:focus-visible,
.home button:focus-visible,
.home input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Skip link */

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-220%);
}

.home a.skip {
  color: var(--bg);
}

.skip:focus {
  transform: none;
}

#main:focus {
  outline: none;
}

/* Page frame */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 72px;
}

.site-header {
  width: 100%;
  max-width: 1040px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg {
  flex: none;
  display: block;
}

.wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  transform: translateY(-1px);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.home a.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transform: translateY(-4px);
}

.home a.nav-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* QR popover */

.nav-item {
  position: relative;
}

.underline-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.35rem 0.6rem 0.25rem;
  border-radius: 5px;
  font: inherit;
}

.underline-btn:hover,
.underline-btn[aria-expanded="true"] {
  color: var(--ink);
}

.underline-btn svg {
  display: block;
  margin: 0 auto;
}

.underline {
  display: block;
  height: 2px;
  margin-top: 0.35rem;
  background: var(--ink);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    opacity 130ms ease-in-out,
    transform 320ms var(--ease);
}

.underline-btn:hover .underline,
.underline-btn[aria-expanded="true"] .underline {
  opacity: 1;
  transform: scaleX(1);
}

body.has-pop::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 18;
  background: var(--scrim);
  pointer-events: none;
}

.popover {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  z-index: 21;
  background: var(--white);
  border: 1px solid hsla(240, 6%, 10%, 0.08);
  border-radius: 4px;
  visibility: hidden;
  pointer-events: none;
  box-shadow:
    0 1px 0 hsla(240, 6%, 10%, 0.05),
    0 10px 20px hsla(240, 8%, 14%, 0.06);
}

.popover.is-open {
  visibility: visible;
  pointer-events: auto;
}

.popover::before {
  content: "";
  position: absolute;
  top: -1.15rem;
  right: calc(0.6rem + 6px);
  transform: translateX(50%);
  border: 0.7rem solid transparent;
  border-bottom-color: var(--white);
}

.qr-pop {
  padding: 1.6rem 1.7rem 1.5rem;
}

.qr-pop .qr-link {
  display: block;
}

.qr-pop img {
  display: block;
  width: 10rem;
  height: 10rem;
  image-rendering: pixelated;
}

.popover-close {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: hsl(0, 0%, 75%);
  cursor: pointer;
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.4rem;
}

/* Content column */

.content {
  margin-top: calc(20px + clamp(88px, 20vh, 242px));
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero h2 {
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 3px;
}

.hero-blurb {
  max-width: 560px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  list-style: none;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chips li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dot);
}

.chip {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.home a.chip:hover {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.home a.chip-personas:hover {
  background-image: linear-gradient(135deg, #d946ef, #8b1df0);
}

.home a.chip-elements:hover {
  background-image: linear-gradient(135deg, #4ade80, #047857);
}

/* Product sections */

.product {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  flex-direction: row;
}

.product--reverse {
  flex-direction: row-reverse;
}

.product-copy {
  flex: 1 1 340px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.product--reverse .product-copy {
  align-items: flex-end;
  text-align: right;
}

.product--reverse .product-copy p {
  align-self: stretch;
  text-align: left;
}

.product--reverse .product-copy .title {
  align-self: flex-start;
}

.product--reverse .product-copy .more {
  align-self: flex-start;
}

.product-copy p,
.soon-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.home a.title {
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.home a.title:hover {
  opacity: 0.65;
  transform: translateX(-3px);
}

.title-kicker {
  font-size: 15px;
  font-weight: 700;
  color: var(--faint);
}

.title-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-personas {
  background-image: linear-gradient(135deg, #d946ef, #8b1df0);
}

.grad-elements {
  background-image: linear-gradient(135deg, #4ade80, #047857);
}

.grad-performance {
  background-image: linear-gradient(135deg, #fbbf24, #ea580c);
}

.grad-drives {
  background-image: linear-gradient(135deg, #f87171, #991b1b);
}

.grad-smell {
  background-image: linear-gradient(135deg, #22d3ee, #2563eb);
}

.home a.more {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}

.home a.more:hover {
  opacity: 0.6;
}

.crowd {
  flex: 1 1 360px;
  min-width: 0;
  height: 360px;
  position: relative;
}

.crowd .pc-stage,
.crowd canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* Date Picker mock card */

.dp {
  flex: 1 1 360px;
  min-width: 0;
  font-family: Geist, system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #1c1d1f;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
}

.dp-head {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

.dp-crumb {
  font-size: 12px;
  color: #9b9ca2;
}

.dp-titlerow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.dp-tags {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.dp-tag {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  background: #f2f2f3;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 5px;
  padding: 0 6px;
}

.dp-states {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: #f6f6f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

.dp-state {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.dp-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #9b9ca2;
}

.dp-input {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
  color: #9b9ca2;
  white-space: nowrap;
  overflow: hidden;
}

.dp-input span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-input--filled {
  border-color: #1c1d1f;
  color: #1c1d1f;
}

.dp-input--error {
  border-color: var(--error);
  color: #1c1d1f;
}

.dp-icon {
  margin-left: auto;
  color: #9b9ca2;
}

.dp-prop {
  display: grid;
  grid-template-columns: 76px 84px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.075);
  font-size: 12px;
  align-items: center;
}

.dp-prop:last-child {
  border-bottom: 0;
}

.dp-name {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 11.5px;
}

.dp-type {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #606168;
}

.dp-desc {
  color: #606168;
}

/* Coming soon */

.soon-label {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.soon-rule {
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: var(--rule);
}

.soon-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 72px 56px;
  align-items: start;
}

.soon {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.soon-copy {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

/* Waitlist */

.waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}

.waitlist-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.waitlist-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.waitlist-head p {
  max-width: 440px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

.capture {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.capture label.field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--body);
}

.capture input[type="email"] {
  width: 100%;
  height: 46px;
  border: 1px solid #d9d9de;
  border-radius: 7px;
  background: #fff;
  padding: 0 14px;
  font: 700 16px Nunito, sans-serif;
  color: var(--ink);
  outline: none;
}

.capture input[type="email"]:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(40, 40, 44, 0.08);
}

.capture input[type="email"][aria-invalid="true"] {
  border-color: var(--error);
}

.capture button[type="submit"] {
  margin-top: 4px;
  height: 46px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font: 700 16px Nunito, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.capture button[type="submit"]:hover {
  background: #3a3a40;
}

.capture .note,
.capture .field-error {
  font-size: 13px;
  line-height: 1.4;
}

.capture .note {
  color: var(--body);
}

.home .capture .note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home .capture .note a:hover {
  color: var(--muted);
}

.capture .field-error {
  color: var(--error);
}

.capture .field-error[hidden] {
  display: none;
}

/* Replace the default note while an error is showing */
.capture .field-error:not([hidden]) + .note {
  display: none;
}

.home-footer {
  width: 100%;
  max-width: 1040px;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
  max-width: 520px;
  border-top: 1px solid rgba(0, 0, 0, 0.075);
  padding-top: 32px;
  font-family: Geist, system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
}

.home-footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.home-footer-col > span:first-child {
  font: 500 10.5px "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.home .home-footer a {
  font-family: Geist, system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
}

.home .home-footer a:hover,
.home .home-footer a[aria-current="page"] {
  color: var(--muted);
}

.home-copy {
  font: 11px "Geist Mono", ui-monospace, monospace;
  color: var(--faint);
}

@media (max-width: 550px) {
  .page {
    padding: 20px 20px 56px;
  }

  .content {
    gap: 72px;
  }

  .site-header {
    gap: 16px;
  }

  .product {
    gap: 36px;
  }

  .crowd,
  .dp {
    flex-basis: 100%;
  }

  .crowd {
    height: 320px;
  }

  .dp-prop {
    grid-template-columns: 64px 76px minmax(0, 1fr);
    gap: 8px;
  }

  .popover {
    border-radius: 11px;
  }

  .popover-qr {
    position: fixed;
    top: 5%;
    left: 15%;
    right: 15%;
  }

  .popover-qr::before {
    display: none;
    content: none;
  }

  .popover-qr .popover-close {
    display: block;
  }

  .qr-pop {
    padding: 3rem;
  }

  .qr-pop img {
    width: 100%;
    height: auto;
    max-width: 14rem;
    margin: 0 auto;
  }
}
