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

:root {
  --ink: #17151f;
  --text: #45414f;
  --muted: #6a6676;
  --page: #f7f7f9;
  --surface: #ffffff;
  --line: #e6e4ee;
  --line-strong: #cfccd9;
  --accent: #5b34c9;
  --accent-dark: #43249c;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2 {
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

a:hover {
  color: var(--accent-dark);
}

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

strong {
  color: var(--ink);
  font-weight: 600;
}

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

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.note {
  font-size: 15px;
  color: var(--muted);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
}

.button:active {
  transform: translateY(1px);
}

.button.large {
  min-height: 48px;
  padding: 0 22px;
}

.button.quiet {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button.quiet:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

/* Top */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

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

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
}

.menu a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.menu a:not(.button):hover {
  color: var(--ink);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 72px;
}

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

.lead {
  max-width: 30em;
  color: var(--text);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shot {
  width: 100%;
  border: 1px solid #e0dee8;
  border-radius: var(--radius);
}

.shot.raised {
  box-shadow: 0 24px 60px rgba(60, 40, 130, 0.16);
}

.shot.crop {
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

/* Facts */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 48px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--text);
  font-size: 16px;
}

/* How it works */

.intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 88px;
  padding-bottom: 40px;
}

.intro h2 {
  max-width: 18em;
}

.intro p {
  max-width: 36em;
  color: var(--text);
}

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  font-size: 22px;
  letter-spacing: -0.014em;
}

.card p:not(.note) {
  color: var(--text);
}

.figure {
  padding-bottom: 88px;
}

.figure .note {
  margin-top: 14px;
}

/* Features */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.split-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.split-head p {
  color: var(--text);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 28px 40px;
}

.features h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.features p {
  color: var(--text);
  font-size: 16px;
}

/* Safety */

.safety {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.safety-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.safety-text ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  list-style: none;
  color: var(--text);
}

/* Demonstration */

.band:has(.demo) {
  border-bottom: 0;
}

.demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.demo-text,
.demo-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.demo-text p,
.demo-action p:not(.note) {
  color: var(--text);
}

/* Legal texts and plain pages */

.legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 88px;
  color: var(--text);
}

.legal > * {
  max-width: 46rem;
}

.legal h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.1;
}

.legal h2 {
  margin-top: 28px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.014em;
}

.legal h3 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 18px;
}

.legal ul,
.legal ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
}

.legal code {
  font: inherit;
  overflow-wrap: anywhere;
}

.legal .table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal th,
.legal td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  color: var(--ink);
  font-weight: 600;
}

.legal tr:last-child td {
  border-bottom: 0;
}

.legal .draft {
  padding: 14px 16px;
  border: 1px solid #e3c36a;
  border-radius: var(--radius);
  background: #fff8e1;
  color: #5c4500;
}

.legal .draft strong {
  color: #5c4500;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 32px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 14px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero,
  .split,
  .safety,
  .demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .intro,
  .split,
  .safety,
  .demo {
    padding-top: 56px;
  }

  .figure,
  .split,
  .safety,
  .demo {
    padding-bottom: 56px;
  }

  .safety-shot {
    order: 2;
  }
}

@media (max-width: 520px) {
  .menu a:not(.button) {
    display: none;
  }

  .actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

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

  .button:active {
    transform: none;
  }
}
