:root {
  --maintrio-blue: #5269c7;
  --maintrio-blue-dark: #263d9f;
  --maintrio-green: #2f7d32;
  --maintrio-yellow: #c99700;
  --maintrio-red: #a32020;
  --ink: #111111;
  --muted: #555555;
  --line: #d7d7d7;
  --panel: #ffffff;
  --page: #f2f2f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(247, 247, 247, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  display: block;
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #222222;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--maintrio-blue-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 104px clamp(18px, 5vw, 72px) 56px;
  background-image: url("/assets/maintrio-operations-hero.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 247, 247, 0.64);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--maintrio-blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
}

.hero-text {
  max-width: 600px;
  margin: 22px 0 0;
  color: #222222;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 2px solid transparent;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--maintrio-green);
}

.button.secondary {
  background: #ffffff;
  border-color: var(--maintrio-blue);
  color: var(--maintrio-blue-dark);
}

.button.dark {
  background: #222222;
}

.button:hover,
.button:focus {
  filter: brightness(0.94);
}

.section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.fit-section {
  background: #ffffff;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2,
.proof-panel h2,
.cta-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.cta-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fit-card {
  min-height: 260px;
  padding: 28px;
  border-top: 4px solid var(--maintrio-blue);
  background: #f7f7f7;
}

.fit-card h3,
.workflow-step h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.fit-card p,
.workflow-step p,
.proof-list {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.fit-mark {
  display: block;
  width: 42px;
  height: 8px;
  background: var(--maintrio-green);
}

.fit-mark.one-time {
  background: var(--maintrio-yellow);
}

.fit-mark.team {
  background: var(--maintrio-blue);
}

.workflow-section {
  background: #f2f2f2;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 4px solid var(--maintrio-blue);
  background: #ffffff;
}

.workflow-step {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--maintrio-blue);
  color: #ffffff;
  font-weight: 800;
}

.proof-section {
  background: #ffffff;
}

.proof-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 40px;
  padding: 40px;
  border-top: 4px solid var(--maintrio-green);
  background: #f7f7f7;
}

.proof-list {
  margin: 0;
  padding-left: 20px;
}

.proof-list li + li {
  margin-top: 10px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.cta-copy {
  max-width: 760px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #222222;
  color: #ffffff;
}

.site-footer span {
  display: block;
  margin-top: 4px;
  color: #d7d7d7;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: #f7f7f7;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 82vh;
    align-items: flex-end;
  }

  .fit-grid,
  .workflow,
  .proof-panel {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-step:last-child {
    border-bottom: 0;
  }

  .cta-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 22px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .fit-card,
  .workflow-step,
  .proof-panel {
    padding: 22px;
  }
}
