:root {
  --bg: #faf5ea;
  --surface: #ffffff;
  --border: #e6dcc6;
  --text: #2b2420;
  --text-dim: #8a7a63;
  --accent: #3a5aad;
  --accent-dim: #2f4890;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  max-width: 440px;
  margin: 4em auto 2em;
  padding: 0 1.5em;
  text-align: center;
}

main.wide { max-width: 560px; text-align: left; }

/* Wordmark: the icon art already reads "fkx" (dark badge, bold lowercase),
   so pairing it tightly with "mplr" — not the full word again — reads as
   one continuous "fkxmplr". Tight gap + matched weight sells it; a
   generous gap would read as two separate things. */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  margin-bottom: 1.4em;
}

img.logo {
  width: 48px;
  height: 48px;
}

h1 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0;
}

main.wide h1 { text-align: center; font-size: 1.3em; margin-bottom: 0.6em; }

p.pitch {
  font-size: 1.05em;
  line-height: 1.6;
  margin: 0 0 0.6em;
}

p.sub {
  color: var(--text-dim);
  font-size: 0.92em;
  line-height: 1.6;
  margin: 0 0 2.2em;
}

.btn {
  display: inline-block;
  padding: 0.9em 2.2em;
  font-size: 1.05em;
  font-weight: 600;
  color: #fff;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

.links { margin-top: 2.5em; }
.links a { color: var(--text-dim); font-size: 0.82em; text-decoration: none; }
.links a:hover { text-decoration: underline; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6em 1.8em;
  text-align: left;
}

.card h2 {
  font-size: 1em;
  font-weight: 700;
  margin: 1.6em 0 0.5em;
}
.card h2:first-child { margin-top: 0; }

.card p {
  color: var(--text-dim);
  font-size: 0.9em;
  line-height: 1.65;
  margin: 0.6em 0;
}

.card ul {
  color: var(--text-dim);
  font-size: 0.9em;
  line-height: 1.6;
  padding-left: 1.2em;
  margin: 0.6em 0;
}
.card ul li { margin-bottom: 0.5em; }
.card strong { color: var(--text); }

.card a { color: var(--accent-dim); }

.back { text-align: center; margin-top: 2em; }
.back a { color: var(--text-dim); font-size: 0.85em; text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* Floating share/donate — same look as the main site's FloatingActions,
   re-implemented as plain CSS/vanilla JS since this site shares no code
   with frontend/. No "Install" button here — the whole page already is
   the install pitch, a second one would just be noise. */
.floating-actions {
  position: fixed;
  bottom: 1.2em;
  right: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  z-index: 50;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.1em;
  border-radius: 100px;
  font-size: 0.8em;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(43, 36, 32, 0.18);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s ease, background 0.15s ease;
}
.float-btn:hover { text-decoration: none; }
.float-donate { background: #b8860b; color: #fff; }
.float-donate:hover { filter: brightness(1.08); }
.float-share { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.float-share:hover { background: var(--border); }

.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 36, 32, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5em;
}
.share-overlay.open { display: flex; }
.share-modal {
  position: relative;
  text-align: center;
  padding: 2em 2.2em 1.8em;
  margin: 0;
}
.share-modal img {
  display: block;
  margin: 0 auto 1em;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.share-url {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
}
.share-close {
  position: absolute;
  top: 0.6em;
  right: 0.6em;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1em;
  cursor: pointer;
}
.share-close:hover { color: var(--text); }

@media (max-width: 480px) {
  .floating-actions { bottom: 0.8em; right: 0.8em; }
  .float-btn { padding: 0.55em 0.9em; font-size: 0.74em; }
}
