/*
 * Colours and radii mirror theme/tokens.js — the app's single source of
 * truth. Copied by hand (this site has no build step); if the app's accent
 * or background changes, change them here too.
 */

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #f7f7f5;
  --surface: #ffffff;
  --surface-muted: #f1f1ee;
  --border: #e5e5e1;
  --text-primary: #171717;
  --text-secondary: #52524e;
  --text-muted: #6f6f6a;
  --accent: #1e5b46;
  --accent-strong: #174a38;
  --accent-subtle: #e7f0ec;
  --on-accent: #ffffff;
  --verdict-positive: #16a34a;
  --verdict-negative: #dc2626;
  --radius-xl: 12px;
  --radius-2xl: 20px;
  --shadow-card: 0px 1px 3px rgba(0, 0, 0, 0.08);
  --width: 1040px;
  --prose-width: 680px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-strong);
}

img,
svg {
  max-width: 100%;
}

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header / footer */

.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--text-primary);
}

.wordmark img {
  width: 32px;
  height: 32px;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 20px;
}

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

.site-footer {
  margin-top: 96px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 20px;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}

.button-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.button[aria-disabled='true'] {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
}

/* Landing page */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.hero h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero .lede {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 19px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}

.preview {
  padding: 24px;
}

.preview-label {
  color: var(--text-muted);
  font-size: 14px;
}

.preview-figure {
  margin: 2px 0 16px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.preview-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 28px;
}

.feature .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--accent-subtle);
  color: var(--accent);
}

.feature h2 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
}

.not-this {
  max-width: var(--prose-width);
  margin: 88px auto 0;
  text-align: center;
}

.not-this h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.not-this p {
  margin: 0;
  color: var(--text-secondary);
}

/* Prose pages (privacy, terms, support) */

.prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 40px 16px 0;
}

.prose h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose .updated {
  margin: 0 0 40px;
  color: var(--text-muted);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

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

.prose li {
  margin-bottom: 6px;
}

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

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

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

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

/* Invite page */

.invite {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 32px 24px;
  text-align: center;
}

.invite h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
}

.invite p {
  margin: 0 0 24px;
  color: var(--text-secondary);
}

.invite .stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite .hint {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 0 56px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .site-header nav a {
    margin-left: 14px;
  }

  .prose h1 {
    font-size: 32px;
  }
}
