/*
 * KiTiTa marketing theme — shared by every page.
 *
 * Colours come from the app's dashboard palette
 * (frontend/src/v2/theme/dashboardPalette.ts) so the site and the app read as
 * one product. Each token is an RGB triplet so Tailwind's opacity modifiers
 * (bg-mint/10, border-line/50 …) keep working; theme.js maps the Tailwind
 * colour names onto these variables. Dark mode swaps the variables, so no
 * per-class dark overrides are needed.
 *
 * Pages load this file as /theme.css?v=N. nginx caches .css/.js as immutable for a
 * year, so bump that version in every page whenever this file changes.
 */

:root {
  --bg: 238 241 245;          /* #EEF1F5 page background */
  --card: 255 255 255;        /* #FFFFFF cards */
  --surface-alt: 230 235 242; /* #E6EBF2 alternate section background */
  --tint: 234 243 251;        /* #EAF3FB highlighted card */
  --line: 220 226 233;        /* #DCE2E9 borders, tracks */
  --ink: 10 37 64;            /* #0A2540 headings (brand navy) */
  --body: 21 34 48;           /* #152230 body text */
  --muted: 86 101 117;        /* #566575 secondary text */
  --primary: 10 37 64;        /* #0A2540 icons, labels */
  --mint: 16 185 129;         /* #10B981 buttons, fills */
  --mint-strong: 10 143 95;   /* #0A8F5F mint text on light surfaces */
  --mint-pale: 216 240 228;   /* #D8F0E4 mint-tinted panels */
  --on-mint: 6 37 26;         /* #06251A label on a mint button */
  --gold: 176 118 21;         /* #B07615 */
  --gold-pale: 251 234 208;   /* #FBEAD0 */
  --navy: 10 37 64;           /* #0A2540 feature band */
  --on-navy: 230 235 242;     /* #E6EBF2 text on the navy band */
  --error: 192 57 43;         /* #C0392B */
}

html.dark {
  --bg: 8 24 38;              /* #081826 */
  --card: 14 34 54;           /* #0E2236 */
  --surface-alt: 12 30 48;    /* #0C1E30 */
  --tint: 18 41 62;           /* #12293E */
  --line: 23 50 74;           /* #17324A */
  --ink: 255 255 255;         /* #FFFFFF */
  --body: 230 235 242;        /* #E6EBF2 */
  --muted: 147 167 189;       /* #93A7BD */
  --primary: 176 200 235;     /* #B0C8EB */
  --mint: 61 220 151;         /* #3DDC97 */
  --mint-strong: 61 220 151;  /* #3DDC97 */
  --mint-pale: 18 58 44;      /* #123A2C */
  --on-mint: 6 37 26;         /* #06251A */
  --gold: 224 162 60;         /* #E0A23C */
  --gold-pale: 46 36 19;      /* #2E2413 */
  --navy: 14 34 54;           /* #0E2236 */
  --on-navy: 230 235 242;     /* #E6EBF2 */
  --error: 242 138 138;       /* #F28A8A */
}

body {
  background-color: rgb(var(--bg));
  color: rgb(var(--body));
  min-height: 100dvh;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.organic-card {
  background-color: rgb(var(--tint));
  border: 1px solid rgb(var(--line));
}

#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }

/* Legal document typography (terms, privacy, delete-account) */
.legal-content h2 {
  font-family: 'Plus Jakarta Sans';
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: rgb(var(--ink));
}
.legal-content p,
.legal-content li {
  font-family: 'Inter';
  font-size: 16px;
  line-height: 26px;
  color: rgb(var(--muted));
  margin-bottom: 1rem;
}
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: rgb(var(--body)); font-weight: 600; }
.legal-content a { color: rgb(var(--mint-strong)); text-decoration: underline; }

/* Swahili pages: the "English version prevails" note */
.lang-note {
  background-color: rgb(var(--tint));
  border: 1px solid rgb(var(--line));
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 14px;
  line-height: 22px;
  color: rgb(var(--muted));
}
