/* ============================================================
   MyFlowChamp — Base Reset & Typography
   Import AFTER tokens.css, BEFORE components.css.
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--mfc-text);
  background-color: var(--mfc-bg);
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ── Typography scale ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--mfc-text);
}

h1 { font-size: clamp(32px, 6vw, 52px); }
h2 { font-size: clamp(22px, 4vw, 36px); }
h3 { font-size: clamp(18px, 3vw, 24px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

p {
  color: var(--mfc-text-mid);
  line-height: 1.65;
}

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

small {
  font-size: 12px;
}

/* ── Mono numbers helper ──────────────────────────────────── */
.mono,
.metric-value,
.xp-value,
.streak-value {
  font-family: var(--font-mono);
}

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

/* ── Utility: hidden ──────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Focus ring ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--mfc-indigo);
  outline-offset: 2px;
}

/* ── Scrollbar (Webkit) ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--mfc-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--mfc-surface2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mfc-indigo-dim);
}

/* ── Kicker / overline label ──────────────────────────────── */
.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mfc-indigo);
}

/* ── Muted text helper ────────────────────────────────────── */
.muted {
  color: var(--mfc-text-mid);
}

/* ── Insight text ─────────────────────────────────────────── */
.insight {
  font-size: 13px;
  color: var(--mfc-text-mid);
  font-weight: 600;
  line-height: 1.55;
}

/* ── Fade-in animation class (assigned by JS) ─────────────── */
.fade-in {
  animation: fadeSlideUp 0.25s ease-out both;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Mini label (uppercase section label) ─────────────────── */
.mini-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mfc-text-dim);
}

/* ── Strong (accent) text ─────────────────────────────────── */
.strong {
  font-weight: 700;
  color: var(--mfc-text);
}

/* ── Accent colour spans ──────────────────────────────────── */
.accent       { color: var(--mfc-indigo); }
.accent-gold  { color: var(--mfc-gold); }
.accent-mint  { color: var(--mfc-mint); }
.accent-red   { color: var(--mfc-red); }

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(1180px, calc(100% - 24px));
  }
}
