/*
 * Shared by every page. Deliberately one small file with no build step: this
 * site exists to satisfy a store review, host two association files and catch
 * invite links, and a toolchain would be more to maintain than the site.
 *
 * The palette is the app's own, so someone arriving from an invite recognises
 * where they have landed.
 */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #5c6b7e;
  --accent: #2b6fea;
  --accent-ink: #ffffff;
  --accent-wash: #eef3fe;
  --border: #e2e8f0;
  --warn: #b4531a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141c;
    --surface: #182130;
    --text: #e8edf4;
    --muted: #94a3b8;
    --accent: #6fa3ff;
    --accent-ink: #0f141c;
    --accent-wash: #16233a;
    --border: #2a364a;
    --warn: #e0965c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 680px; margin: 0 auto; padding: 48px 0 96px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; margin: 40px 0 8px; letter-spacing: -0.01em; }
p, li { color: var(--text); }
li { margin-bottom: 6px; }
a { color: var(--accent); }

/* Keyboard users need to see where they are; the default ring disappears
   against the accent on the filled button. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Utilities, so pages stop carrying inline styles for the same three things. */
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.flush { margin-top: 0; }
.nowrap { white-space: nowrap; }

/* The opening paragraph of each page: same size as body text elsewhere would
   read as an afterthought under a 2rem heading. */
.lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 8px; }

.mark {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 32px;
}
.mark span { color: var(--accent); }

/* States the honest thing about the product rather than implying a download
   exists. Remove this on release day. */
.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

/* Same box as .card but marked with the accent, for the one thing on a page
   we actually want someone to do. */
.cta {
  background: var(--accent-wash);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px 16px 16px 4px;
  padding: 22px 24px;
  margin: 28px 0;
}
.cta p:last-child { margin-bottom: 0; }

.code {
  font: 600 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Tracking is applied to every character including the last, which pushes
     the whole string left of centre unless the trailing space is taken back. */
  letter-spacing: 6px;
  margin-right: -6px;
  color: var(--accent);
  word-break: break-all;
}
.code-invalid { color: var(--warn); font-size: 1.1rem; letter-spacing: 0; margin-right: 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  margin-top: 8px;
}

/* Secondary action — present, but not competing with the filled button. */
.button-quiet {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 4px 0 12px;
}
.button-quiet:hover { border-color: var(--accent); }

/* Where the store badges go at launch. Until then it holds the sentence that
   explains why there are none. */
.stores {
  margin: 32px 0 0;
  padding: 18px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { display: inline-block; margin: 0 16px 6px 0; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* Three columns of prose do not fit a phone; let the table scroll rather than
   the page. */
@media (max-width: 560px) {
  table { display: block; overflow-x: auto; white-space: normal; }
  h1 { font-size: 1.7rem; }
}
