/* Shared styling for the ClubHQ public site (marketing + the legal and support
   pages the app links to). Deliberately small and dependency-free: these pages
   have to load fast on a phone, be readable by an App Store reviewer, and
   never need a build step. */

:root {
  --dark: #242424;
  --brand: #ec3642;
  --ink: #18181b;
  --muted: #52525b;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --bg: #ffffff;
  --wash: #fafafa;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

/* ---- header / footer ---- */
.site-head {
  background: var(--dark);
  color: #fff;
  padding: 1.1rem 1.25rem;
}
.site-head .inner,
.site-foot .inner,
main {
  max-width: var(--measure);
  margin: 0 auto;
}
.site-head .inner {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.mark {
  width: 2rem; height: 2rem; border-radius: .55rem;
  background: var(--brand);
  display: grid; place-items: center;
  flex: none;
}
.mark svg { display: block; }
.site-head a.wordmark {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

main { padding: 2.25rem 1.25rem 3rem; }

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: .875rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; }
.site-foot a { color: var(--muted); }

/* ---- type ---- */
h1 {
  font-size: 1.9rem; line-height: 1.2; letter-spacing: -.02em;
  margin: 0 0 .6rem;
}
h2 {
  font-size: 1.1rem; letter-spacing: -.01em;
  margin: 2.25rem 0 .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 1rem; margin: 1.5rem 0 .35rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { font-weight: 650; }

.lede { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.75rem; }
.updated { color: var(--faint); font-size: .85rem; margin-bottom: 2rem; }
.note {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }

/* Marketing page only */
.hero-sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.75rem; }
.cols { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 34rem) { .cols { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card ul { margin-bottom: 0; }
.contact {
  display: inline-block;
  background: var(--dark); color: #fff;
  padding: .7rem 1.2rem; border-radius: .7rem;
  font-weight: 650; text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a; --wash: #1e1e22; --ink: #f4f4f5;
    --muted: #b4b4bb; --faint: #85858e; --line: #33333a;
  }
  .contact { background: var(--brand); }
}
