/* On The Mats: shared look for the public site and the web app. */
:root {
  --bg: #f7f8fa; --panel: #ffffff; --line: #e3e7ec; --text: #121c26; --muted: #5c6977; --soft: #eef2f5;
  --accent: #1f4fd6; --accent-2: #173cae; --accent-ink: #ffffff; --warn: #a86400; --bad: #c4352e;
  --r: 14px; --shadow: 0 1px 2px rgba(18, 28, 38, .05), 0 6px 24px rgba(18, 28, 38, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1116; --panel: #141b22; --line: #24303a; --text: #e9eff4; --muted: #94a2af; --soft: #1b242d;
    --accent: #7196ff; --accent-2: #5a80f5; --accent-ink: #08133a; --warn: #f5a524; --bad: #ff6b63;
    --shadow: 0 1px 2px rgba(0,0,0,.3); }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header + footer */
.site-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-top .in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.site-top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.site-top nav a.link { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.site-top nav a.link:hover, .site-top nav a.link.on { color: var(--text); background: var(--soft); }
footer.site { border-top: 1px solid var(--line); margin-top: 72px; }
footer.site .in { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px;
  color: var(--muted); font-size: 14px; align-items: center; }
footer.site a { text-decoration: none; } footer.site a:hover { color: var(--text); }
footer.site .sp { flex: 1; }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 9px 16px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 550;
  transition: border-color .15s, transform .05s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.big { padding: 13px 22px; font-size: 17px; border-radius: 12px; }
.btn.small { padding: 5px 11px; font-size: 13.5px; border-radius: 8px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }

/* type + layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { font-size: 12.5px; padding: 2px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; font-weight: 550; }
.belt { display: inline-block; width: 30px; height: 9px; border-radius: 2px; vertical-align: middle;
  border: 1px solid rgba(127,127,127,.35); background: linear-gradient(90deg, var(--belt) 74%, #111 74%); }
.belt.black { background: linear-gradient(90deg, #111 74%, #d8332b 74%); }

/* legal pages */
.doc { padding-top: 48px; padding-bottom: 48px; }
.doc h1 { font-size: 38px; letter-spacing: -.02em; margin: 6px 0 6px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc .updated { color: var(--muted); font-size: 14px; }
.btn, .site-top nav a.link, .logo { white-space: nowrap; }
@media (max-width: 480px) {
  .site-top .in { gap: 8px; padding: 10px 14px; }
  .site-top nav { gap: 2px; }
  .site-top nav a.link { padding: 6px 8px; }
  .logo { font-size: 0; gap: 0; }           /* just the mark on small phones */
}

/* "Get the iPhone app" button (assets/appbadge.js) */
.appstore { display: inline-flex; align-items: center; gap: 10px; background: #0b0f14; color: #fff !important; text-decoration: none;
  border-radius: 12px; padding: 9px 16px 9px 12px; line-height: 1.15; border: 1px solid #0b0f14; }
.appstore:hover { background: #1c2530; }
.appstore small { display: block; font-size: 11px; opacity: .8; }
.appstore b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.appstore.soon { background: transparent; color: var(--text, #121c26) !important; border-color: var(--line, #d9dee4); cursor: default; }
.appstore.soon b { font-size: 14px; }
.appstore-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.appstore-row .muted { font-size: 14px; }
