/* SailStats — shared site styles.
 *
 * Every page used to carry its own near-identical copy of this block in a
 * <style> tag. They had already drifted apart. This is the single source of
 * truth: tokens, base document styles, and the handful of components that
 * appear on more than one page.
 *
 * Page-specific styling stays in that page's own <style> block — the device
 * table on /connect, the join code on /r/, and so on. Don't move a rule here
 * unless a second page actually needs it.
 */

:root {
  --bg: #011940;
  --card: #0a2450;
  --border: #16335f;
  --text: #e8eef2;
  --dim: #93a3bd;
  --accent: #22d3ee;
  --accent-ink: #06252b;   /* readable text ON the accent */
  --ok: #34d399;
  --warn: #fbbf24;
  --no: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  padding: 32px 24px 64px;
  -webkit-text-size-adjust: 100%;
}

/* Short pages that sit centred in the viewport rather than scrolling:
   the home card and the race-invite card. */
body.centred {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wrap { max-width: 860px; margin: 0 auto; }
.wrap.narrow { max-width: 720px; }

header { text-align: center; margin-bottom: 32px; }
.logo { width: 72px; height: 72px; }
.brand {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 20px;
}

h1 { font-size: 27px; letter-spacing: -0.5px; margin-bottom: 6px; }
h2 { font-size: 19px; margin: 28px 0 10px; letter-spacing: -0.3px; }
h3 { font-size: 16px; margin: 20px 0 6px; }
p, li { font-size: 15px; }
p { margin-bottom: 14px; }
ul, ol { margin: 8px 0 8px 22px; }
li { margin-bottom: 5px; }
a { color: var(--accent); }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }

.dim { color: var(--dim); }
.lede { color: var(--dim); font-size: 16px; margin-bottom: 24px; }

/* Called-out passage. `.summary` is the privacy policy's name for the same
   thing; keep both so that page's markup doesn't have to change. */
.note,
.summary {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  background: rgba(34, 211, 238, 0.05);
  font-size: 14.5px;
}
.summary { border-radius: 12px; padding: 18px 20px; margin-bottom: 30px; }
.summary h2 { margin-top: 0; }

/* App Store / primary call to action. */
.store {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.store:hover { filter: brightness(1.08); }

.foot { text-align: center; color: var(--dim); font-size: 13px; margin-top: 28px; }
.foot a { color: var(--dim); }

/* Trademark / independence notice. Small, quiet, and on every page that names
   a manufacturer. */
.legalese {
  text-align: center;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
  max-width: 640px;
  margin: 14px auto 0;
  opacity: 0.75;
}

/* The answer block: the 40-60 word plain-language summary that sits directly
   under the H1 on every page that answers a question. It is written to be
   true standing alone, because it is the passage most likely to be quoted. */
.answer {
  color: var(--dim);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 0 26px;
}
.answer b { color: var(--text); font-weight: 600; }

/* Numbered "do this" steps. The number comes from a counter rather than an
   <ol> so each step can carry a heading and a paragraph. */
.steps { counter-reset: step; display: grid; gap: 12px; margin: 6px 0 0; padding: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  align-items: start;
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.015);
}
.step::before {
  content: counter(step);
  font-size: 14px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent); border-radius: 50%;
  width: 26px; height: 26px; display: grid; place-items: center;
  margin-top: 1px;
}
.step h3 { margin: 0 0 3px; font-size: 15.5px; }
.step p { margin: 0; font-size: 14.5px; color: var(--dim); }
.step p:not(:last-child) { margin-bottom: 6px; }
.step a { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 560px) {
  body { padding: 24px 16px 48px; }
  .card { padding: 26px 20px; border-radius: 16px; }
  h1 { font-size: 23px; }
}
