/* Colours mirror swift-app/Jam/DesignSystem/Theme.swift. The app is light mode only, so is the site. */
:root {
  color-scheme: light;
  --ink: #171316;
  --muted: #6b6165; /* a touch darker than Theme.muted (#746a6e) for AA contrast on the background */
  --card: #fffdfb;
  --background: #f8f3ef;
  --white: #ffffff;
  --border: #e4d8d3;
  --hairline: #efe6e1;
  --apricot-cta: #fcc1a5;
  --apricot-soft: #ffe1cc;
  --notice-fill: #fff3ea;
  --notice-border: #f6dcc8;
  --radius-card: 24px;
  --radius-group: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  flex: 1;
}

.page.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Brand row at the top of inner pages */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  margin-bottom: 24px;
}
.brand img { width: 30px; height: auto; display: block; }

.logo { width: 96px; height: auto; display: block; margin: 0 auto 16px; }
.logo.small { width: 64px; }

h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.page.center h1 { text-wrap: balance; }
h2 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--muted); }

.tagline { font-size: 20px; margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  box-shadow: 0 7px 24px rgba(23, 19, 22, 0.11);
}

.stack > * + * { margin-top: 16px; }

/* Primary button: apricot pill, dark text (Theme.apricotCTA + Theme.ink) */
.button {
  display: block;
  width: 100%;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--apricot-cta);
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.button:hover { filter: brightness(0.97); }

.store { margin: 0; }
.store a { font-weight: 600; }

/* Club invite code */
.code-label { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.code {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.18em;
  /* letter-spacing adds a trailing gap; pull it back so the code looks centred */
  padding-right: calc(18px - 0.18em);
  user-select: all;
}

.notice {
  background: var(--notice-fill);
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-group);
  padding: 12px 14px;
  font-size: 15px;
  text-align: left;
}

/* Legal + support documents */
.doc section {
  background: var(--card);
  border-radius: var(--radius-group);
  padding: 18px 18px 8px;
  margin-top: 16px;
  overflow-wrap: break-word;
}
.doc .meta { margin-top: 20px; font-size: 15px; color: var(--muted); }
.doc .meta p { margin-bottom: 6px; }

.footer {
  padding: 20px;
  text-align: center;
  font-size: 15px;
  border-top: 1px solid var(--border);
}
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer a { color: var(--muted); padding: 6px 0; }

@media (min-width: 600px) {
  .page { padding-top: 48px; }
  h1 { font-size: 38px; }
  .card { padding: 36px 32px; }
}
