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

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111111;
  --fg-2: #5f5f5f;
  --fg-3: #737373;
  --line: #eaeaea;
  --surface: #fafafa;
  --focus: #0070f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #ededed;
    --fg-2: #a1a1a1;
    --fg-3: #7c7c7c;
    --line: #222222;
    --surface: #111111;
    --focus: #3291ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-header nav a {
  font-size: 15px;
  color: var(--fg-2);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--fg);
}

/* Hero */

.hero {
  padding: 64px 0 48px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 7.4vw, 56px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 32px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}

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

/* Tactile buttons: a lit top edge, a shaded bottom, and a press that sinks */

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.15s;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
  filter: none;
}

.btn-primary {
  border-color: #000000;
  background: linear-gradient(180deg, #3e3e42 0%, #232326 50%, #141416 100%);
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 1px 1px rgba(0, 0, 0, 0.16),
    0 3px 6px -1px rgba(0, 0, 0, 0.16),
    0 10px 20px -8px rgba(0, 0, 0, 0.35);
}

.btn-primary:active {
  background: linear-gradient(180deg, #161618 0%, #26262a 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  border-color: rgba(0, 0, 0, 0.13) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f7 60%, #ededef 100%);
  color: var(--fg);
  text-shadow: 0 1px 0 #ffffff;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(0, 0, 0, 0.07),
    0 4px 10px -4px rgba(0, 0, 0, 0.14);
}

.btn-secondary:active {
  background: linear-gradient(180deg, #e9e9eb 0%, #f3f3f4 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
}

@media (prefers-color-scheme: dark) {
  .btn:hover {
    filter: brightness(1.1);
  }

  .btn-primary {
    border-color: rgba(0, 0, 0, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #ececee 55%, #d9d9dc 100%);
    color: #0a0a0a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    box-shadow:
      inset 0 1px 0 #ffffff,
      inset 0 -1px 0 rgba(0, 0, 0, 0.14),
      0 1px 2px rgba(0, 0, 0, 0.6),
      0 10px 22px -8px rgba(0, 0, 0, 0.8);
  }

  .btn-primary:active {
    background: linear-gradient(180deg, #d4d4d7 0%, #e6e6e8 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .btn-secondary {
    border-color: rgba(0, 0, 0, 0.9);
    background: linear-gradient(180deg, #2e2e31 0%, #222225 55%, #1a1a1c 100%);
    color: var(--fg);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3),
      0 1px 2px rgba(0, 0, 0, 0.6),
      0 10px 22px -8px rgba(0, 0, 0, 0.8);
  }

  .btn-secondary:active {
    background: linear-gradient(180deg, #1a1a1c 0%, #242427 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  }
}

.meta {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--fg-3);
}

/* Demo */

.demo-section {
  padding: 8px 0 0;
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-3);
}

.demo-caption p {
  margin: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.theme-toggle input {
  margin: 0;
  accent-color: var(--fg);
}

/* Sections */

h2 {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.features {
  padding: 96px 0 0;
}

.features ul,
.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 28px;
}

.features strong,
.steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.features span,
.steps span {
  color: var(--fg-2);
}

.steps {
  padding: 88px 0 0;
}

.steps ol {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
}

.cta {
  padding: 88px 0 96px;
}

/* Footer */

.site-footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-3);
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

/* Privacy policy */

.doc {
  padding: 48px 0 80px;
}

.doc h1 {
  font-size: clamp(34px, 6vw, 44px);
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: 21px;
}

.doc p,
.doc li {
  color: var(--fg-2);
}

.doc strong {
  color: var(--fg);
  font-weight: 600;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 8px;
}

.doc code {
  font-size: 0.9em;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
}

@media (max-width: 520px) {
  .hero {
    padding-top: 40px;
  }

  .lede {
    font-size: 17px;
  }

  .features,
  .steps {
    padding-top: 72px;
  }
}
