/* SpaceDoc storefront — shared stylesheet for the static pages (S3 +
   CloudFront). No client framework; the only scripts are the pricing fetch
   and the success-page poll. */

:root {
  color-scheme: light dark;
  --bg: #fafaf8; --fg: #1a1a1a; --muted: #6b6b66; --card: #ffffff;
  --line: #e4e4de; --accent: #4a5d7a; --accent-fg: #ffffff; --ok: #2e7d4f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d; --fg: #e8e8e4; --muted: #90908a; --card: #1e2128;
    --line: #2c303a; --accent: #7d95b8; --accent-fg: #12141a; --ok: #6fbf8f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 880px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
header.site { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 2.5rem; }
header.site .logo { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
header.site .tag { color: var(--muted); font-size: 0.9rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 2.2rem 0 0.6rem; }
p.lede { color: var(--muted); font-size: 1.05rem; max-width: 40rem; margin: 0 0 2.5rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem;
}
.plan .name { font-weight: 650; font-size: 1.05rem; }
.plan .price { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em; }
.plan .price small { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0.6rem 0 1.2rem; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.plan li { padding: 0.22rem 0 0.22rem 1.4rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0.15rem; color: var(--ok); }
.plan .spacer { flex: 1; }
.btn {
  display: inline-block; text-align: center; border-radius: 8px; padding: 0.6rem 1.2rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; }
.note { color: var(--muted); font-size: 0.9rem; }
footer { margin-top: 4rem; color: var(--muted); font-size: 0.85rem; display: flex; gap: 1.25rem; }
footer a { color: inherit; }
.code-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 2rem; text-align: center; margin: 2rem 0;
}
.setup-code {
  font: 700 2.1rem/1.2 ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.12em; margin: 0.8rem 0; user-select: all;
}
.steps { text-align: left; max-width: 30rem; margin: 1.5rem auto 0; color: var(--muted); }
.steps li { margin: 0.4rem 0; }
.pulse {
  color: var(--muted); font: 400 1rem/1.6 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: normal;
}
article.legal { max-width: 42rem; }
article.legal h2 { font-size: 1.05rem; }
article.legal p, article.legal li { color: var(--muted); font-size: 0.95rem; }
.draft-banner {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px;
  background: var(--card); padding: 0.7rem 1rem; font-size: 0.9rem; color: var(--muted);
  margin-bottom: 2rem;
}
