@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/Bricolage-Title.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Display';
  src: url('/fonts/Bricolage-Display.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0b0b0d;
  --surface: #151518;
  --raised: #1f1f23;
  --ink: #f4f4f6;
  --ink-2: #a7a7b0;
  --ink-3: #85858e;
  --line: rgba(255, 255, 255, 0.08);
  --protein: #8fa6ff;
  --carbs: #ffc857;
  --fat: #ff9cc2;
  --gutter: 24px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(244, 244, 246, 0.35);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--protein);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  overflow-x: clip; /* nothing, not even the glow behind the phone, makes the page scroll sideways */
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header and footer */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 21px/1 'Bricolage', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
}
.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--ink-3);
  font-size: 14px;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}
footer a {
  color: var(--ink-2);
}

/* Landing */
.hero {
  display: grid;
  gap: 56px;
  align-items: center;
  padding: 56px 0 24px;
}
.hero h1 {
  font: 800 clamp(46px, 6.4vw, 92px) / 0.98 'Bricolage Display', 'Inter', sans-serif;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.lede {
  color: var(--ink-2);
  font-size: 20px;
  max-width: 36ch;
  margin: 0 0 36px;
}
.join {
  display: flex;
  gap: 6px;
  max-width: 500px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 160ms, box-shadow 160ms;
}
.join:focus-within {
  border-color: rgba(143, 166, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(143, 166, 255, 0.16);
}
.join input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px 'Inter', system-ui, sans-serif;
}
.join input::placeholder {
  color: var(--ink-3);
}
.join input:focus {
  outline: none;
}
.join button {
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 16px 'Inter', system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.join button:hover {
  background: #fff;
}
.fine {
  color: var(--ink-3);
  font-size: 14px;
  margin: 14px 0 0;
}
.fine a {
  color: var(--ink-2);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* A field people never see; bots fill it in. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.phone {
  position: relative;
  justify-self: center;
  width: min(78%, 320px);
  margin: 0;
}
/* The app's protein, carbs and fat glow, behind the phone. */
.phone::before {
  content: '';
  position: absolute;
  inset: 6% -14% 4%;
  background:
    radial-gradient(closest-side at 32% 34%, rgba(143, 166, 255, 0.34), transparent),
    radial-gradient(closest-side at 74% 56%, rgba(255, 200, 87, 0.2), transparent),
    radial-gradient(closest-side at 44% 82%, rgba(255, 156, 194, 0.24), transparent);
  filter: blur(36px);
}
.phone img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 46px;
  box-shadow:
    0 0 0 9px #050506,
    0 0 0 10px rgba(255, 255, 255, 0.1),
    0 40px 90px rgba(0, 0, 0, 0.65);
}

.what {
  margin-top: 80px;
  display: grid;
  gap: 2px;
}
.what div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.what .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 9px;
}
.what h2 {
  font: 700 21px/1.3 'Bricolage', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.what p {
  margin: 0;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 72px;
    padding: 80px 0 40px;
  }
  .phone {
    /* As big as fits under the header on a laptop screen, up to 340px wide. */
    width: clamp(260px, calc((100vh - 190px) * 0.462), 340px);
    justify-self: end;
    margin-right: 24px;
  }
  .what {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 112px;
  }
  .what div {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 18px;
    padding: 28px 0 0;
  }
  .what .dot {
    margin-top: 0;
  }
}

/* Waitlist result pages */
.note {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 0 24px;
  text-align: center;
}
.note .mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
}
.note h1 {
  font: 800 clamp(38px, 6vw, 60px) / 1.02 'Bricolage Display', 'Inter', sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.note p {
  color: var(--ink-2);
  font-size: 19px;
  margin: 0 0 32px;
}
.note .join {
  margin: 0 auto;
  text-align: left;
}

/* Documents */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
}
.doc h1 {
  font: 700 clamp(34px, 7vw, 48px) / 1.05 'Bricolage', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.doc .meta {
  color: var(--ink-3);
  font-size: 15px;
  margin: 0 0 32px;
}
.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  margin: 0 0 40px;
}
.doc .summary h2 {
  margin-top: 0;
}
.doc .summary ul {
  margin-bottom: 0;
}
.doc h2 {
  font: 700 24px/1.25 'Bricolage', 'Inter', sans-serif;
  letter-spacing: -0.015em;
  margin: 48px 0 12px;
}
.doc h3 {
  font: 600 18px/1.35 'Inter', sans-serif;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  color: #d6d6dc;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc strong {
  color: var(--ink);
  font-weight: 600;
}
.toc {
  border-left: 2px solid var(--line);
  padding-left: 18px;
  margin: 0 0 40px;
  font-size: 15px;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
}
.toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--ink-2);
  font-weight: 600;
}
td {
  color: #d6d6dc;
}
.scroll {
  overflow-x: auto;
}

.contact {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.contact:hover {
  background: #fff;
}

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
details:last-of-type {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}
details p {
  margin: 10px 0 0;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .nav {
    gap: 14px;
    font-size: 14px;
  }
  .hero {
    padding-top: 36px;
    gap: 48px;
  }
  .lede {
    font-size: 18px;
  }
  .join {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
  }
  .join:focus-within {
    box-shadow: none;
  }
  .join input {
    flex: none;
    height: 54px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .join input:focus {
    border-color: rgba(143, 166, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(143, 166, 255, 0.16);
  }
  .join button {
    width: 100%;
    height: 54px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .note .mark {
    animation: settle 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  @keyframes settle {
    from {
      transform: rotate(-90deg) scale(0.9);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}
