/* ─────────────────────────────────────────────────
   RunMyCo — global design tokens
   Shared by homepage, questionnaire, blueprint pages.
───────────────────────────────────────────────── */

:root {
  --cream: #F4EEE3;
  --cream-deep: #EAE2D2;
  --ink: #14130F;
  --ink-soft: #2A2722;
  --ink-mute: #6B655A;
  --rule: #C9BFA9;
  --accent: #B84A1F;
  --accent-deep: #8C3614;
  --accent-soft: #F2D9C9;
  --paper-shadow: 0 1px 0 rgba(20, 19, 15, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain via fixed pseudo elements */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(184, 74, 31, 0.04) 0%, transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(20, 19, 15, 0.03) 0%, transparent 35%);
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.wrap { position: relative; z-index: 3; }

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .shell { padding: 0 24px; }
}

/* ── Buttons ───────────────────────────────────── */

.btn-primary {
  background: var(--accent);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 0 rgba(140, 54, 20, 0.4), 0 4px 14px rgba(184, 74, 31, 0.18);
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(140, 54, 20, 0.4), 0 8px 22px rgba(184, 74, 31, 0.28);
}

.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-secondary {
  color: var(--ink);
  background: transparent;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s;
  font-family: inherit;
}

.btn-secondary:hover { text-decoration-color: var(--accent); }

/* ── Reveal on scroll ──────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.35s; }
.d3 { animation-delay: 0.55s; }
.d4 { animation-delay: 0.75s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
