/*
 * The public pages: the landing, /privacy and /terms. The colors are the
 * kit's tokens, see its DESIGN.md. The brand is the product's: set it here
 * and in frontend/src/app.css.
 */
:root {
  color-scheme: light dark;
  --brand: oklch(0.5 0.1 235);
  --brand-foreground: oklch(0.99 0.005 235);
  --background: oklch(0.982 0.003 250);
  --surface: oklch(1 0 0);
  --text: oklch(0.22 0.012 250);
  --text-muted: oklch(0.49 0.014 250);
  --border: oklch(0.91 0.006 250);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: oklch(0.77 0.1 235);
    --brand-foreground: oklch(0.21 0.03 235);
    --background: oklch(0.195 0.006 250);
    --surface: oklch(0.225 0.007 250);
    --text: oklch(0.95 0.004 250);
    --text-muted: oklch(0.76 0.01 250);
    --border: oklch(0.33 0.008 250);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px;
}

.product {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 12vh;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.25rem;
}

p,
ul {
  margin: 8px 0;
}

.lead {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-foreground);
  font-weight: 600;
  text-decoration: none;
}

.muted {
  color: var(--text-muted);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer .bar {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 24px;
}
