:root {
  --background: #fff;
  --foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --radius: 0.625rem;
  --max-width: 64rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.85;
}

a.no-underline {
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
}

/* Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary img {
  width: 1.25rem;
  height: 1.125rem;
}

main {
  flex: 1;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-muted {
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  color: var(--muted-foreground);
}

/* Hero */
.hero {
  padding: 4rem 0 6rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-top img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Steps */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

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

.step-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Features */
.platform-block {
  margin-top: 2.5rem;
}

.platform-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.platform-block > p {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--muted-foreground);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  overflow: hidden;
}

.feature-list li {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.feature-list li:first-child {
  border-top: none;
}

.feature-list h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.feature-list p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Tags */
.tags {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: var(--background);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 30%, transparent);
  padding: 3rem 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
  }
}

.footer-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links a.no-underline:hover {
  color: var(--foreground);
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Privacy prose */
.prose {
  max-width: 48rem;
  padding: 3rem 0 4rem;
}

.prose header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.prose h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose .updated {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.prose-body {
  margin-top: 2rem;
}

.prose h2 {
  margin: 2.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  scroll-margin-top: 6rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.prose p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.prose ul,
.prose ol {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  color: var(--muted-foreground);
}

.prose li {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.prose table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--muted);
  color: var(--foreground);
  font-weight: 500;
}

.prose strong {
  color: var(--foreground);
  font-weight: 600;
}

.prose code {
  font-size: 0.875em;
  background: var(--muted);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
