/*
 * Tick — the public site.
 *
 * One stylesheet for every page. The site exists because both stores require a reachable
 * privacy policy, a support address and a way to delete an account from outside the app; it
 * is a document site, so it is built for reading and nothing else. No framework, no build
 * step, no JavaScript on any page but the deletion form.
 *
 * The palette is the app's: #0F766E is the same teal as the icon and the primary button.
 */

:root {
  --bg: #FFFFFF;
  --surface: #F7F8F8;
  --text: #101A19;
  --text-secondary: #4A5654;
  --text-meta: #6B7A78;
  --border: #E3E7E6;
  --accent: #0F766E;
  --accent-hover: #0B5A54;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1211;
    --surface: #131C1B;
    --text: #EDF2F1;
    --text-secondary: #A8B5B3;
    --text-meta: #7C8B89;
    --border: #223330;
    --accent: #2DD4BF;
    --accent-hover: #5EEAD4;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0F766E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1;
}

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

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

/* ---------- body copy ---------- */

main { padding-bottom: 4rem; }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type { border-top: none; padding-top: 0; }

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

p, ul, ol { margin: 0 0 1.1rem; }

ul, ol { padding-left: 1.4rem; }

li { margin-bottom: 0.4rem; }

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

strong { font-weight: 600; }

.updated {
  color: var(--text-meta);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.lang {
  display: inline-block;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* A quoted caveat — the "not reviewed by a lawyer" note. Kept visible rather than buried:
   hiding it would be the one dishonest thing on an otherwise honest page. */
blockquote {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
  font-size: 0.97rem;
}

blockquote p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { font-weight: 600; white-space: nowrap; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

/* ---------- landing ---------- */

.hero { padding: 1rem 0 2.5rem; }

.hero h1 { font-size: 2.6rem; }

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.card h3 { margin-top: 0; }

.card p { margin-bottom: 0; color: var(--text-secondary); font-size: 0.97rem; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--text-meta);
  font-size: 0.92rem;
}

footer.site a { color: var(--text-secondary); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

footer.site .links { margin-bottom: 0.75rem; }
footer.site .links a { margin-right: 1.1rem; }
