/* Retainory marketing + legal site.
   Single stylesheet, no build step, no external requests — Cloudflare Pages serves
   these files exactly as they are. Accent matches the app's AccentColor asset
   (Retainory/Backend/RetainoryColors.xcassets/AccentColor.colorset). */

:root {
  --accent: #5751d1;
  --accent-hover: #443ec0;
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --text: #16161d;
  --text-muted: #5c5c69;
  --border: #e3e3ea;
  --max-width: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8585f5;
    --accent-hover: #9c9cf8;
    --bg: #101014;
    --bg-soft: #18181f;
    --text: #f2f2f5;
    --text-muted: #a0a0ad;
    --border: #2a2a34;
  }
}

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

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

nav.site a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.35rem;
}

nav.site a:hover {
  color: var(--accent);
}

/* ---------- Type ---------- */

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  color: var(--text);
}

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

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

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ---------- Blocks ---------- */

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

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

.features li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 0;
}

.features strong {
  display: block;
  margin-bottom: 0.3rem;
}

.features span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

footer.site {
  margin-top: 4.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.25rem;
}

footer.site a:first-child {
  margin-left: 0;
}

footer.site a:hover {
  color: var(--accent);
}
