:root {
  --main-bg: #f7f8fa;
  --accent: #7ec6a1;
  --text: #242a32;
  --highlight: #46639f;
  --card-bg: #fff;
  --border-radius: 18px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: var(--main-bg);
  color: var(--text);
}

header.main-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 48px 18px 32px 18px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 32px auto 16px auto;
  max-width: 1000px;
  gap: 32px;
}

img.hero-img {
  max-width: 260px;
  border-radius: var(--border-radius);
  object-fit: contain;
  margin-bottom: 0;
}

.hero-content {
  flex: 1 1 360px;
}

h1 {
  font-size: 2.2rem;
  margin: 0 0 16px;
  color: var(--highlight);
}
h2 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 8px;
}

ul, ol {
  margin-left: 16px;
}

span.highlight {
  color: var(--highlight);
  font-weight: 500;
}

.flex-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 24px auto;
  flex-wrap: wrap;
  max-width: 1100px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 18px;
  min-width: 260px;
  max-width: 420px;
  flex: 1 1 260px;
}

.diagram-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px 0;
  justify-content: center;
}

.diagram-step {
  background: var(--accent);
  color: #fff;
  padding: 8px 26px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.arrow {
  color: #7ec6a1;
  font-size: 1.25rem;
  font-weight: bold;
}

section {
  margin-bottom: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6e8ec;
}

/* Animate on scroll: fade and up */
.fade {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s cubic-bezier(.46,.03,.52,.96), transform 1.1s cubic-bezier(.42,.78,.43,.96);
  will-change: opacity, transform;
}

.fade.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px) {
  header.main-flex, .flex-row {
    flex-direction: column;
    gap: 18px;
    padding: 20px;
  }
  img.hero-img {
    margin: 0 auto 10px auto;
    max-width: 80vw;
  }
  .card {
    max-width: none;
    min-width: 160px;
  }
}
