/* base.css — reset, tokens, typography */
:root {
  /* Brand colors */
  --blue: #0F62FE;
  /* primary */
  --blue-700: #0B4BCE;
  --green: #16A34A;
  /* accent */
  --green-700: #12813C;

  /* UI neutrals */
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --border: #e5e7eb;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .08);

  /* Sizing */
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1100px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --fs-0: 14px;
  --fs-1: 16px;
  --fs-2: 18px;
  --fs-3: 22px;
  --fs-4: 28px;
  --fs-5: 36px;
  --fs-6: 46px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --speed: 180ms;
}

/* CSS reset (modern, minimal) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Typography helpers */
h1 {
  font-size: clamp(var(--fs-4), 3vw, var(--fs-6));
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(var(--fs-3), 2.2vw, var(--fs-5));
  line-height: 1.2;
  margin-bottom: var(--s-5);
}

h3 {
  font-size: var(--fs-3);
  line-height: 1.25;
  margin-bottom: var(--s-3);
}

.lead {
  font-size: var(--fs-2);
  color: #1f2937;
}

/* Accessibility helpers */
:focus-visible {
  outline: 3px solid rgba(15, 98, 254, .5);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

/* Small utilities used across components */
.hl {
  background: linear-gradient(180deg, rgba(22, 163, 74, .12), rgba(22, 163, 74, .12))
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: #F1F5F9;
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.disclaimer {
  color: var(--muted);
  font-size: var(--fs-0);
  margin-top: var(--s-3);
}
/* Spacing utilities (for removing inline styles in HTML) */
.mt-6 { margin-top: var(--s-6) !important; }
.mt-8 { margin-top: var(--s-8) !important; }
.mt-10 { margin-top: var(--s-10) !important; }

/* Safety: prevent accidental horizontal scroll on mobile (debug if you see clipping) */
html { overflow-x: hidden; }
