@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --canvas: #07080a;
  --panel: #0d0f13;
  --raised: #121519;
  --control: #161a20;
  --divider: #14171c;
  --text-strong: #f2f5f8;
  --text: #e8ecf1;
  --text-secondary: #c9d0d9;
  --text-tertiary: #8a93a0;
  --accent: #5be3ff;
  --on-accent: #041015;
  --amber: #ffb547;

  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 32%, transparent);

  --font-sans: "Sora", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --gutter: 16px;
  --measure: 34rem;
  --page: 72rem;
  --radius-screen: 18px;
  --radius-phone: 28px;
  --shadow-screen: 0 30px 80px -30px rgb(0 0 0 / 0.9), 0 0 0 1px var(--divider);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* A short page, such as the 404, still ends with its footer at the bottom. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent-line);
  transition: text-decoration-color 160ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--raised);
  color: var(--text-strong);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow .count {
  color: var(--text-tertiary);
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.mark-bg {
  fill: var(--accent);
}

.mark-bar {
  fill: var(--on-accent);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding-block: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-strong);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.45em;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  margin-top: -64px;
  padding-top: calc(64px + 56px);
  padding-bottom: 72px;
  min-height: min(100svh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 100%;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(7 8 10 / 0.55) 0%, rgb(7 8 10 / 0.15) 35%, rgb(7 8 10 / 0.75) 72%, var(--canvas) 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  max-width: 12ch;
}

.hero .lede {
  margin-top: 20px;
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 32px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  color: var(--text-strong);
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.soon svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}

.beta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
}

.beta span {
  transition: transform 160ms ease;
}

.beta:hover span {
  transform: translateX(2px);
}

.platforms {
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Promises strip */

.promises {
  border-block: 1px solid var(--divider);
  background: var(--panel);
}

.promises ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block: 0;
  padding-block: 24px;
  list-style: none;
}

.promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.promises svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}

/* Features */

.features {
  display: grid;
  gap: 96px;
  padding-block: 88px 40px;
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature-copy h2 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.feature-copy p {
  margin-top: 16px;
  max-width: var(--measure);
  color: var(--text-secondary);
}

.feature-copy .note {
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  max-width: var(--measure);
  list-style: none;
  color: var(--text-secondary);
}

.ticks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
}

.ticks svg {
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  color: var(--accent);
}

.screen {
  isolation: isolate;
  margin: 0;
  justify-self: center;
  width: min(100%, 300px);
}

.screen img {
  width: 100%;
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-screen);
  background: var(--panel);
}

.screen-glow {
  position: relative;
}

.screen-glow::before {
  content: "";
  position: absolute;
  inset: 12% 8% 6%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(30px);
}

/* Closing */

.closing {
  padding-block: 72px 96px;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  max-width: 18ch;
  margin-inline: auto;
}

.closing h2 + p {
  margin: 16px auto 0;
  max-width: var(--measure);
  color: var(--text-secondary);
}

.closing .cta {
  justify-content: center;
}

/* Documents (privacy, support) */

.doc {
  padding-block: 40px 88px;
}

.doc-head {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--divider);
}

.doc-head h1 {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
}

.doc-head p {
  margin-top: 16px;
  max-width: var(--measure);
  color: var(--text-secondary);
}

.doc-head .updated {
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.prose {
  max-width: 42rem;
}

.prose section + section {
  margin-top: 40px;
}

.prose h2 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose ol + p,
.prose p + ol {
  margin-top: 12px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text-strong);
  font-weight: 500;
}

.summary {
  display: grid;
  gap: 12px;
  margin: 0 0 40px;
  padding: 20px;
  list-style: none;
  max-width: 42rem;
  background: var(--panel);
  border: 1px solid var(--divider);
  border-radius: 16px;
}

.summary li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  color: var(--text);
}

.summary svg {
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  color: var(--accent);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 42rem;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--divider);
  border-radius: 16px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  color: var(--text-strong);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.faq summary:hover::after {
  border-color: var(--text-secondary);
}

.faq .answer {
  padding: 0 20px 20px;
}

.contact-card {
  margin-top: 40px;
  max-width: 42rem;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--raised);
  border: 1px solid var(--divider);
}

.contact-card h2 {
  font-size: 1.375rem;
}

.contact-card p {
  margin-top: 8px;
  color: var(--text-secondary);
}

.contact-card a {
  font-weight: 500;
  overflow-wrap: break-word;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--text-strong);
}

/* Not found */

.lost {
  min-height: 70svh;
  display: grid;
  align-content: center;
  padding-block: 64px;
}

.lost h1 {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
}

.lost p {
  margin-top: 16px;
  max-width: var(--measure);
  color: var(--text-secondary);
}

.lost .home {
  display: inline-block;
  margin-top: 24px;
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--panel);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding-block: 8px;
}

.site-footer nav a:hover {
  color: var(--text-strong);
}

/* Wider screens */

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .promises ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 48px;
  }

  .hero {
    align-items: center;
    padding-top: calc(64px + 96px);
    padding-bottom: 120px;
  }

  .hero-art img {
    object-position: 60% 100%;
  }

  .hero-art::after {
    background:
      linear-gradient(90deg, rgb(7 8 10 / 0.85) 0%, rgb(7 8 10 / 0.35) 50%, transparent 75%),
      linear-gradient(180deg, transparent 70%, var(--canvas) 100%);
  }

  .hero .lede {
    font-size: 1.1875rem;
  }

  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }

  .feature:nth-child(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .feature:nth-child(even) .feature-copy {
    order: 2;
  }

  .feature .screen {
    width: 100%;
  }

  .feature .screen img {
    border-radius: var(--radius-screen);
  }

  .feature-tall {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .feature-tall .screen {
    width: min(100%, 320px);
  }

  .feature-tall .screen img {
    border-radius: var(--radius-phone);
  }

  .doc {
    padding-block: 64px 120px;
  }

  .faq summary {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
