/* PrepAid design system — shared tokens & primitives.
   Visual language mirrors the mobile app: bright blue primary, deep navy
   "space" surfaces, gold gamification accents, soft rounded cards. */

:root {
  /* Brand */
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --teal-400: #22d3ee;
  --navy-900: #081231;
  --navy-800: #0b1b46;
  --navy-700: #12275e;
  --gold-500: #f5a623;
  --gold-400: #fbbf24;

  /* Semantics */
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --amber-600: #d97706;
  --amber-100: #fef3c7;

  /* Neutrals */
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --bg: #f6f8fc;
  --card: #ffffff;

  /* Shape & type */
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 6px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 50px -16px rgba(8, 18, 49, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 1px; }

.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }

.btn-ghost { background: transparent; color: var(--blue-600); border-color: var(--slate-200); }
.btn-ghost:hover { border-color: var(--blue-500); background: var(--blue-50); }

.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--blue-50); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---- Cards & badges ---- */
.card {
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font: 600 12px/1.6 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-blue { background: var(--blue-50); color: var(--blue-600); }

/* ---- Section scaffolding ---- */
.section { padding: 88px 0; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--slate-500); font-size: 17px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
