/* CountMeIn shared design system.
   Tokens, chrome (nav + footer), buttons and document-page typography.
   Page-specific layout — the landing hero and board — stays with its page. */

:root {
  --ink: #071018;
  --abyss: #06304C;
  --sky: #38B6FF;
  --paper: #EEF4F8;
  --sun: #FFB23F;

  --slate: #40525F;

  --display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Short pages still fill the viewport, so the footer never floats mid-screen. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- chrome ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-cta:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 30px rgba(56, 182, 255, 0.22);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(56, 182, 255, 0.34); }

footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 26px;
  padding-bottom: 34px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.44);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; }

/* ---------- document pages (privacy, terms, contact) ---------- */

.doc-head {
  background:
    radial-gradient(110% 130% at 82% -30%, rgba(56, 182, 255, 0.26) 0%, rgba(56, 182, 255, 0) 62%),
    var(--ink);
  padding-bottom: clamp(38px, 6vw, 60px);
}

.doc-title {
  padding-top: clamp(34px, 5vw, 54px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 14px;
}

.doc-title h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 6.4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 16ch;
}

.doc-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  margin: 16px 0 0;
}

.doc-body {
  flex: 1 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding-top: clamp(46px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

/* Legal text wants a narrow measure far more than the marketing page does. */
.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 44px 0 12px;
}

.prose h2:first-child { margin-top: 0; }

.prose p,
.prose li {
  color: var(--slate);
  font-size: 16.5px;
  line-height: 1.68;
}

.prose p { margin: 0 0 16px; }

.prose ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.prose li { margin-bottom: 9px; }

.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: #0A6FB0;
  text-decoration-color: rgba(10, 111, 176, 0.35);
  text-underline-offset: 2px;
}

.prose a:hover { text-decoration-color: currentColor; }

.prose .lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ---------- centred pages (404) ---------- */

.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(60px, 12vw, 130px) var(--gutter);
  background:
    radial-gradient(90% 110% at 50% 0%, rgba(56, 182, 255, 0.22) 0%, rgba(56, 182, 255, 0) 65%),
    var(--ink);
}

.stage h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 14px;
  max-width: 18ch;
}

.stage p {
  margin: 0 auto 30px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.7);
}

.stage .eyebrow { color: var(--sun); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
