/* ============================================================
   MONSANCTUS — Design System
   Surface: Decide/Learn (marketing). Structure inspired by Stripe's
   clean-corporate-light system; typography softened with a serif
   display face for editorial warmth/trust.
   ============================================================ */

:root {
  /* Color */
  --bg: #ffffff;
  --bg-alt: #faf8f4;
  --ink: #1b2420;
  --ink-soft: #565f5a;
  --ink-faint: #8a9089;
  --accent: #bd5b33;
  --accent-deep: #9c4726;
  --accent-tint: #f6e9e0;
  --success: #2f6b4f;
  --success-tint: #e7f0ea;
  --line: #e6e1d6;
  --line-soft: #f0ece3;
  --dark-bg: #1b2420;
  --dark-bg-alt: #232f29;
  --cream: #f5f1e8;
  --cream-soft: rgba(245, 241, 232, 0.72);

  /* Shadow — tinted toward ink for brand cohesion */
  --shadow-sm: 0 3px 8px rgba(27, 36, 32, 0.06);
  --shadow-md: 0 18px 36px -18px rgba(27, 36, 32, 0.22), 0 8px 16px -8px rgba(27, 36, 32, 0.08);
  --shadow-lg: 0 30px 60px -30px rgba(27, 36, 32, 0.28), 0 14px 28px -14px rgba(27, 36, 32, 0.12);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius / spacing */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.tnum { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-deep); }
.btn-dark {
  background: var(--cream);
  color: var(--dark-bg);
}
.btn-dark:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  flex: none;
}
.logo-mark::before, .logo-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.logo-mark::before { width: 14px; height: 3px; top: 9px; left: 8px; border-radius: 2px; }
.logo-mark::after { width: 8px; height: 3px; bottom: 9px; left: 8px; border-radius: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -27px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
  background: var(--bg-alt);
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  transition: all 0.15s ease;
}
.lang-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 28px 28px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; box-shadow: var(--shadow-md); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--accent-tint) 0%, rgba(246, 233, 224, 0) 68%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.hero-compact { padding: 64px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.08;
}
.hero .lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.6;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-proof {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-proof .stat {
  font-family: var(--font-mono);
}
.hero-proof .stat .num {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.hero-proof .stat .label {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ---------- Hero visual: animated growth motif ---------- */
.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--bg-alt) 0%, #fff 60%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  min-height: 360px;
}
.hero-visual .card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.hero-visual svg { width: 100%; height: auto; display: block; margin-top: 12px; }
.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawline 1.8s ease forwards 0.3s;
}
.chart-area { opacity: 0; animation: fadein 1s ease forwards 1.4s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.chart-dot {
  fill: var(--accent);
  opacity: 0;
  animation: popdot 0.4s ease forwards;
}
.chart-tag {
  position: absolute;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  opacity: 0;
  animation: tagpop 0.5s ease forwards;
  box-shadow: var(--shadow-sm);
}
@keyframes popdot { to { opacity: 1; } }
@keyframes tagpop { to { opacity: 1; transform: translateY(0); } from { transform: translateY(6px); } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark-bg); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: #d7a888; }
.section-dark .eyebrow::before { background: #d7a888; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.section-dark .section-head p { color: rgba(245, 241, 232, 0.72); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Grids / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-soft); }
.card.no-lift:hover { box-shadow: none; transform: none; border-color: var(--line); }
.card h3 { font-size: 20px; margin-top: 14px; }
.card p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
.card .idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-tint);
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.card:hover .idx { background: var(--accent); color: #fff; }

/* Staggered reveal for grid children */
.grid-3 > .reveal:nth-child(2), .grid-2 > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid-3 > .reveal:nth-child(3), .grid-2 > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid-2 > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
@media (max-width: 940px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}
.step:hover { background: var(--bg-alt); }
.step:hover::before { height: 3px; }
.step:last-child { border-right: none; }
@media (max-width: 940px) { .step { border-right: none; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: none; } }
.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}
.step h4 { font-size: 17px; margin-top: 10px; font-weight: 600; font-family: var(--font-body); }
.step p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Story cards ---------- */
.story {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.story:hover { box-shadow: var(--shadow-md); border-color: var(--line-soft); }
.story:nth-child(even) { background: var(--bg-alt); }
.story:nth-child(even) .story-visual { background: #fff; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; padding: 28px; } }
.story-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
}
.story-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}
.story h3 { font-size: 25px; margin-top: 14px; }
.story .story-desc { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.story-metrics { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.story-metrics .metric { display: flex; flex-direction: column; }
.story-metrics .metric .num { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.story-metrics .metric.positive .num { color: var(--success); }
.story-metrics .metric .lbl { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; max-width: 170px; }
.story-visual {
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--line-soft);
}
.story-visual svg { width: 100%; }

/* ---------- Quote / stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
@media (max-width: 860px) { .stat-band { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.stat-band .num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--cream);
}
.stat-band .lbl { margin-top: 8px; font-size: 14px; color: rgba(245,241,232,0.65); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg);
  background: var(--dark-bg);
  color: var(--cream);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--cream); font-size: clamp(28px, 3.6vw, 38px); }
.cta-band p { margin-top: 14px; color: rgba(245,241,232,0.72); font-size: 17px; }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
label { font-size: 13.5px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field { margin-bottom: 18px; }
textarea { resize: vertical; min-height: 130px; }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 6px 13px;
  border-radius: 20px; background: var(--accent-tint); color: var(--accent-deep);
}
.divider { height: 1px; background: var(--line); margin: 64px 0; border: none; }
.person-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.person-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
@media (max-width: 640px) { .person-card { grid-template-columns: 1fr; text-align: left; } }
.person-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-alt);
  flex: none;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.person-card:hover .person-photo img { transform: scale(1.05); }
.person-card h3 { font-size: 22px; }
.person-role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-deep);
  margin-top: 4px;
  display: block;
}
.person-card p { color: var(--ink-soft); margin-top: 14px; font-size: 15.5px; line-height: 1.65; }

