/*
 * The published pages of capsakey.com — the landing page and the legal documents.
 *
 * ⛔ Self-contained on purpose: no font from a CDN, no stylesheet from anywhere else, nothing that
 *    fetches. A privacy policy that loads a third-party asset in order to be read contradicts itself
 *    in the first second, and these pages are read by exactly the sort of person who checks.
 *
 * The accent is the product's own default, so the site and the widget agree.
 */
:root {
  --ink: #14181a;
  --muted: #5b6a6a;
  --line: #e3e9e6;
  --paper: #ffffff;
  --raised: #f7faf8;
  --accent: #0e6a5e;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #e6f0ec;
    --muted: #9fb0ac;
    --line: #25302c;
    --paper: #0d1210;
    --raised: #131a17;
    --accent: #4fbfa8;
    --accent-ink: #06120e;
  }
}

:root[data-theme='dark'] {
  --ink: #e6f0ec;
  --muted: #9fb0ac;
  --line: #25302c;
  --paper: #0d1210;
  --raised: #131a17;
  --accent: #4fbfa8;
  --accent-ink: #06120e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}
header.site .wrap { padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
header.site a.brand { font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
header.site nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-left: auto; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
header.site nav a:hover, header.site nav a:focus { color: var(--accent); text-decoration: underline; }

h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.35rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent); }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
.lead { font-size: 1.1rem; color: var(--muted); }

strong { font-weight: 650; }

/* Wide content scrolls inside its own box; the page itself never scrolls sideways. */
.scroll { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; background: var(--raised); white-space: nowrap; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--raised);
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  border-radius: 0 6px 6px 0;
}
.note p:last-child { margin-bottom: 0; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap { padding: 1.5rem 1.25rem 2.5rem; }
footer.site a { color: var(--muted); }

/* The landing page only. */
.hero { padding-top: 1rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0 0 2rem; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; background: var(--raised); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
}
.cta:hover, .cta:focus { filter: brightness(1.08); }
