/* SpentSy marketing site — mobile first, no JavaScript.
   Palette matches the app: canvas #0B0B0E, surface #14141A,
   text #F5F5F7, accent #30D158. */

/* Plus Jakarta Sans, self-hosted so the site makes no third-party request.
   Google's css2 endpoint advertises five separate weights but serves the same
   file for all of them: it is a VARIABLE font (fvar + gvar), so this one
   27 KB latin subset covers every weight below — 400, 500, 600, 700, 800 —
   with real interpolated outlines rather than synthesized bold.
   SIL Open Font License 1.1; the licence ships in fonts/OFL.txt as it
   requires. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
  --canvas: #0B0B0E;
  --surface: #14141A;
  --text: #F5F5F7;
  --text-dim: #A1A1A8;
  --text-faint: #6E6E76;
  --accent: #30D158;
  --hairline: rgba(255, 255, 255, 0.08);
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.brand {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.brand .dot { color: var(--accent); }

/* ── type ─────────────────────────────────────────────────────────────── */

h1 {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.5rem;
}

p { margin: 0 0 1.125rem; color: var(--text-dim); }

p.lead { color: var(--text); font-size: 1.0625rem; }

strong { color: var(--text); font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

ul { margin: 0 0 1.125rem; padding-left: 1.1rem; color: var(--text-dim); }
li { margin-bottom: 0.5rem; }

/* ── surfaces ─────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 0 0 1.125rem;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.mail {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  word-break: break-all;
}

/* ── navigation between the three pages ───────────────────────────────── */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 2rem 0 0;
}

.links a {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.links a:hover, .links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ── footer ───────────────────────────────────────────────────────────── */

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 0.875rem;
}

footer a { color: var(--text-dim); }

.updated { color: var(--text-faint); font-size: 0.875rem; margin-bottom: 2rem; }

/* ── wider screens ────────────────────────────────────────────────────── */

@media (min-width: 40rem) {
  .wrap { padding: 4.5rem 2rem 5rem; }
  h1 { font-size: 2.5rem; }
}
