/* The other pages (support, privacy, terms, the squad invite and the 404); the landing page's own styles are in
   index.html. The same look as the landing page: a teal band at the top (#007A74, the app's brand teal, since 8 Nov 2026)
   with the wordmark in white and a white "Get the app" button in the brand green (src/lib/theme/colors.ts), black type on white,
   Inter. The invite and 404 pages carry the teal on behind their white card.
   Light only, as the app is. */
:root {
  --sky: #d9edf4;
  --teal: #007a74; /* the app's brand teal (colors.brand), a win's banner: the top of every page since 8 Nov 2026 */
  --green: #0b4141;
  --paper: #ffffff;
  --text: #111417;
  --sub: #3f4b52;
  --muted: #5d676d;
  --rule: rgba(17, 20, 23, 0.1);
  --radius: 16px;
  --max: 1760px; /* content 1680px, the landing page's */
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* Header: the landing page's nav, on its blue. */
/* Edge to edge, as the landing page's. On the invite and 404 pages the card below carries on in the same blue. */
.site-header { background: var(--teal); padding: 28px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.header-cta { font-weight: 600; font-size: 15px; text-decoration: none; background: #fff; color: var(--green); padding: 10px 18px; border-radius: 999px; }
.header-cta:hover { opacity: 0.9; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores img { height: 50px; width: auto; }

/* Footer: as the landing page's. */
.site-footer { padding: 32px 0 64px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer .wrap::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--rule); margin-bottom: 20px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--text); }

/* Legal pages: straight on the white, left-aligned with the logo, capped at a readable width. */
.legal { padding: 72px 0 56px; max-width: 760px; }
.legal h1 { font-weight: 600; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 20px; text-wrap: balance; }
.legal h2 { font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 12px; }
.legal h3 { font-weight: 600; font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--sub); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }

/* Invite and 404: a white card on the blue, carrying on from the header as the landing page's hero does. */
.invite-main { background: var(--teal); margin-top: -1px; min-height: calc(100vh - 230px); display: grid; place-items: center; padding: 32px 0 96px; }
.invite-main .wrap { width: 100%; display: flex; justify-content: center; }
.invite-card { background: var(--paper); border-radius: 28px; padding: 48px 32px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 30px 60px rgba(17, 40, 52, 0.12); }
.badge { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.invite-card .caption { margin: 0 0 6px; color: var(--muted); font-weight: 500; font-size: 15px; }
.invite-card h1 { font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 10px; overflow-wrap: anywhere; text-wrap: balance; }
.invite-card .meta { margin: 0 0 32px; color: var(--sub); font-size: 16px; }
.button { display: block; width: 100%; padding: 17px 20px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; }
.button:hover { opacity: 0.92; }
.invite-card .stores { justify-content: center; margin-top: 24px; }
.invite-card .stores img { height: 44px; }
.invite-card .hint { margin: 20px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .site-header { padding: 22px 0; }
  .invite-main .wrap { padding: 0 16px; }
  .legal { padding: 48px 0 40px; }
  .invite-card { padding: 40px 24px; }
}
