/* Tokens mirror frontend/src/index.css so the marketing site and the app
   read as one product. Same oklch values, written out here because this
   page deliberately has no build step - it is static HTML, and pulling in
   Tailwind to lay out five sections would cost more than it returns. */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --subtle: oklch(0.97 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --radius: 0.5rem;
  --measure: 68ch;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.narrow {
  max-width: var(--measure);
}

.center {
  text-align: center;
}

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in oklch, var(--background) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--foreground);
}

/* The nav links are secondary to the sign-in button; below 640px they
   crowd it out, so they step aside rather than wrap into a second row. */
@media (max-width: 640px) {
  nav .nav-link {
    display: none;
  }
}

/* ----------------------------------------------------------------- type */

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.lede {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------- layout */

.hero {
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}

.section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.band {
  background: var(--subtle);
  border-block: 1px solid var(--border);
}

.band p {
  color: var(--muted-foreground);
}

.center p {
  margin-inline: auto;
}

/* ---------------------------------------------------------------- steps */

.steps {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.steps li {
  margin: 0;
}

.step-n {
  display: block;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.steps p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.cell p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--subtle);
  opacity: 1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.center-row {
  justify-content: center;
}

/* ---------------------------------------------------------------- footer */

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

.site-footer .wordmark {
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Respect a reader who has asked for less motion; the only motion here is
   the smooth scroll, which is exactly what that preference is about. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
