/*
 * The marketing site. Plain HTML and CSS on purpose.
 *
 * The app itself is a Compose canvas, which is the right trade for an app —
 * one codebase, native-quality interaction — and the wrong one for a page
 * whose entire job is to be found and read. A canvas has no text to index, no
 * text to select, nothing for Ctrl+F, and it costs a 16MB first load before a
 * visitor has decided whether they care. So the split is: everything a stranger
 * sees is HTML; everything behind sign-in is the app.
 */
@import url("./tokens.css");

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-xxxl) var(--gutter) var(--space-huge);
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--gutter);
  border-bottom: var(--border-width) solid var(--border);
  background: var(--surface);
}

.wordmark {
  font-size: var(--title-size);
  line-height: var(--title-lh);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  color: var(--accent);
  text-decoration: none;
}

h1 {
  font-size: var(--display-size);
  line-height: var(--display-lh);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  margin: 0 0 var(--space-lg);
}

h2 {
  font-size: var(--title-size);
  line-height: var(--title-lh);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  margin: var(--space-xxxl) 0 var(--space-sm);
}

.lede {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--text-secondary);
  margin: 0 0 var(--space-xxl);
}

p { margin: 0 0 var(--space-lg); color: var(--text-secondary); }
p strong { color: var(--text-primary); font-weight: 600; }

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

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-lg);
  padding: 0 var(--space-xxl);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: var(--row-reason-size);
  font-weight: var(--row-reason-weight);
  letter-spacing: var(--row-reason-tracking);
  text-decoration: none;
  transition: background var(--motion-press) var(--ease-house);
}
.cta:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.cta:active { background: var(--accent-pressed); }

.cards {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: var(--space-xxl) 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.cards h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--row-reason-size);
  line-height: var(--row-reason-lh);
  font-weight: var(--row-reason-weight);
  color: var(--text-primary);
}

.cards p { margin: 0; font-size: var(--title-sub-size); line-height: var(--title-sub-lh); }

.overline {
  font-size: var(--label-size);
  line-height: var(--label-lh);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-xs);
}

footer.site {
  border-top: var(--border-width) solid var(--border);
  padding: var(--space-xxl) var(--gutter);
  color: var(--text-tertiary);
  font-size: var(--meta-size);
  line-height: var(--meta-lh);
}
footer.site nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-sm); }

/* Long-form pages: the privacy policy is meant to be read, not skimmed past. */
.prose h2 { font-size: var(--row-reason-size); line-height: var(--row-reason-lh); }
.prose ul { margin: 0 0 var(--space-lg); padding-left: var(--space-xxl); color: var(--text-secondary); }
.prose li { margin-bottom: var(--space-xs); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 var(--space-lg); font-size: var(--title-sub-size); }
.prose th, .prose td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--border-width) solid var(--border);
  vertical-align: top;
}
.prose th { color: var(--text-primary); font-weight: 600; }
.prose td { color: var(--text-secondary); }
.updated { color: var(--text-tertiary); font-size: var(--meta-size); }
