/* ShareApp website — one shared stylesheet.
   No external fonts, no CDNs, no JavaScript, no tracking. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #1b1d21;
  --text-muted: #5b6069;
  --border: #e2e4e9;
  --accent: #2b6ef2;
  --accent-text: #ffffff;
  --code-bg: #f0f1f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-soft: #1c1f25;
    --text: #e7e9ee;
    --text-muted: #a2a8b4;
    --border: #2b2f37;
    --accent: #6fa2ff;
    --accent-text: #10131a;
    --code-bg: #22262e;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

.wrap-wide {
  max-width: 880px;
}

/* ---------- Typography ---------- */

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

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.6rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

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

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

li {
  margin-bottom: 0.35rem;
}

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

a:hover {
  text-decoration: none;
}

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

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

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

.todo {
  background: #ffe9a8;
  color: #4a3a00;
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  white-space: nowrap;
}

/* ---------- Landing page ---------- */

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

.badge {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

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

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

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

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

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

footer a {
  margin-right: 1rem;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
