/* Spencly — shared site styles
   Tokens below match the app's design system exactly (colors, type scale,
   buttons, cards). Do not introduce sizes/colors outside this list. */

:root {
  --green: #3B6D11;
  --green-surface: #EAF3DE;
  --green-border: #C0DD97;
  --green-dark: #27500A;
  --bg: #F2F2F0;
  --card-bg: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #888888;
  --text-tertiary: #AAAAAA;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

/* ---------- Type scale — 5 sizes only, no exceptions ---------- */

.text-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.text-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.text-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.text-secondary {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.text-overline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin: 0 0 4px 0;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site-nav {
  background: var(--card-bg);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-nav .logo {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.site-nav nav {
  display: flex;
  gap: 18px;
}

.site-nav nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav nav a:hover,
.site-nav nav a[aria-current="page"] {
  color: var(--green);
}

main { flex: 1; }

/* ---------- Hero (home page only — gradient lives here alone) ---------- */

.hero {
  background: linear-gradient(160deg, #0D3305 0%, #1E5C0A 30%, #3B6D11 55%, #5BA32B 75%, #97C459 100%);
  color: #FFFFFF;
  padding: 56px 0 48px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-mark {
  width: 40px;
  height: 40px;
}

.hero .text-title {
  font-size: 22px;
  color: #FFFFFF;
  max-width: 320px;
}

.hero .text-body {
  color: rgba(255, 255, 255, 0.88);
  max-width: 340px;
}

.hero .pill-note {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

/* ---------- Plain page header (privacy / terms) ---------- */

.page-header {
  padding-top: 36px;
  padding-bottom: 8px;
}

.page-header .text-secondary { margin-top: 6px; }

/* ---------- Sections ---------- */

.section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

/* ---------- Cards ---------- */

.card {
  background: var(--card-bg);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  gap: 8px;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 20px;
  text-decoration: none;
  border: none;
  text-align: center;
}

.btn-pill {
  display: inline-block;
  background: var(--green-surface);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
  border: none;
}

/* ---------- Legal document body ---------- */

.legal h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 8px 0;
}

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

.legal h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 6px 0;
}

.legal p, .legal li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

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

.legal strong { font-weight: 700; }

.legal .placeholder {
  background: var(--green-surface);
  color: var(--green-dark);
  border-radius: 4px;
  padding: 1px 4px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0 32px;
}

footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

footer.site-footer a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-right: 16px;
}

footer.site-footer a:hover { color: var(--green); }

footer.site-footer .text-secondary { color: var(--text-tertiary); }

@media (max-width: 420px) {
  .hero { padding: 44px 0 36px; }
}
