@font-face {
  font-family: 'Manrope';
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #07110d;
  --bg-2: #0d1a14;
  --card: #10201a;
  --line: #20382d;
  --text: #e7f1ea;
  --muted: #9bb3a6;
  /* Button fill, and green text on dark backgrounds. */
  --accent: #34c77b;
  --accent-text: #7ee2a8;
  --on-accent: #062014;
  --wave: #5eead4;
  --glow: #134a36;
  --focus: #7ee2a8;
  --radius: 20px;
  --gutter: clamp(16px, 5vw, 56px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f7f3;
    --bg-2: #e7efe8;
    --card: #ffffff;
    --line: #d7e3d9;
    --text: #13221b;
    --muted: #4f675b;
    --accent: #1f9d5c;
    /* At least 4.5:1 on --bg and --bg-2. */
    --accent-text: #157a46;
    --on-accent: #062014;
    --wave: #2cc5b8;
    --glow: #cfe9d8;
    --focus: #157a46;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Manrope',
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

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

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}

.pill {
  padding: 1px 9px;
  border: 1px solid color-mix(in oklab, var(--accent-text) 50%, transparent);
  border-radius: 999px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

.nav nav a.nav-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}

.nav nav a.nav-cta:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 120px) var(--gutter) clamp(140px, 16vw, 190px);
  background: radial-gradient(900px 500px at 15% 0%, var(--glow) 0%, transparent 65%), var(--bg);
}

.waves {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 130px;
  fill: none;
  stroke: var(--wave);
  stroke-width: 2;
  opacity: 0.3;
}

.waves path:nth-child(2) {
  opacity: 0.6;
}

.waves path:nth-child(3) {
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 span {
  color: var(--accent-text);
}

.lead {
  margin: 24px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 120ms ease,
    filter 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px var(--accent);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: -70px auto 0;
  padding: 0 var(--gutter);
  position: relative;
}

.shots figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}

/* Sections */

.section {
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}

.section.alt {
  background: var(--bg-2);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.wrap.narrow {
  max-width: 760px;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wrap > p {
  color: var(--muted);
  margin: 0;
}

.wrap > p + .code,
.code + p,
.code + .code {
  margin-top: 16px;
}

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

.grid article {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.grid p {
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 72px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 20%, transparent);
  color: var(--accent-text);
  font-weight: 800;
}

.steps strong {
  color: var(--text);
}

.wrap > p.fine,
.fine {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.fine code {
  font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--text);
}

/* Commands */

.code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'label label'
    'code copy';
  gap: 6px 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.code .label {
  grid-area: label;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code code {
  grid-area: code;
  /* Long commands wrap; the copy button copies them as one line. */
  overflow-wrap: anywhere;
  padding: 4px 0;
  font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--text);
}

.copy {
  grid-area: copy;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  min-width: 76px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--accent);
}

/* FAQ */

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Long-form pages (privacy) */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter);
}

.prose h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 8px;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 24px;
}

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

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

.prose ul {
  padding-left: 22px;
}

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

.prose .updated {
  margin-top: 0;
  font-size: 15px;
}

.table-scroll {
  overflow-x: auto;
}

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

.prose th,
.prose td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.prose th {
  color: var(--text);
}

/* Footer */

.footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px var(--gutter) 56px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer .legal {
  max-width: 620px;
  margin: 0;
  font-size: 13px;
}

@media (max-width: 720px) {
  .nav nav a:not(.nav-cta) {
    display: none;
  }
  .shots {
    margin-top: -40px;
  }
  .steps li {
    padding: 70px 20px 20px;
  }
}
