/* ==========================================================================
   Metabafit funnel — shared base styles
   Brand tokens match the 3M Coaching site (bg #050505, red #e33b36).
   Change colors here and every page updates.
   ========================================================================== */
:root {
  --bg: #050505;
  --bg-2: #0e0e0f;
  --card: #141416;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.48);
  --accent: #e33b36;
  --accent-hot: #f0764f;
  --accent-grad: linear-gradient(135deg, #e33b36 0%, #f0764f 100%);
  --good: #3ecf8e;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 20px;
  --max: 560px; /* mobile-first column; desktop just centers it */

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0;
}
.hl { color: var(--accent); }
.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 16px 22px;
  border-radius: 14px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.01em;
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(227, 59, 54, 0.65), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .35; box-shadow: none; pointer-events: none; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; font-weight: 700; }

/* Image slots: show a labelled placeholder until the real file is dropped in */
.slot { position: relative; background: #1a1a1d; overflow: hidden; }
.slot::before {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  padding: 10px; text-align: center; font-size: 11px; line-height: 1.3; color: var(--ink-3);
  font-family: ui-monospace, Menlo, monospace;
  background: repeating-linear-gradient(135deg, #17171a 0 10px, #1c1c20 10px 20px);
}
.slot img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.slot img.missing { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.slot.loaded::before { display: none; }
[hidden] { display: none !important; }

/* Page background artwork (fixed, sits behind everything) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), var(--bg) url("/images/brand/bg_desktop_std.webp") center / cover no-repeat;
}
