/* The MaalFlow page (saas.html). Everything here sits under .mf, so no other page of
   the site is touched. */
.mf {
  --navy: #0a1a33;
  --navy-2: #0f2649;
  --ink: #0f172a;
  --muted: #566076;
  --line: #e4e9f1;
  --soft: #f5f7fb;
  --green: #00cc66;
  --green-deep: #008a47;
  --blue: #2f6fed;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}

/* (not the icons: they are letters of a font of their own) */
.mf,
.mf *:not(i) {
  font-family: "Inter", "Segoe UI", "Nirmala UI", system-ui, -apple-system, sans-serif;
}

/* the site gives every icon a size, a colour and a margin; here an icon takes its place's */
.mf i {
  font-size: inherit;
  color: inherit;
  margin: 0;
}

.mf img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mf-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- buttons ---- */
.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.mf-btn:hover {
  transform: translateY(-2px);
}

.mf-btn:focus-visible {
  outline: 3px solid #9ec5ff;
  outline-offset: 3px;
}

.mf-btn--go {
  background: var(--green);
  color: #052814;
  box-shadow: 0 10px 28px rgba(0, 204, 102, 0.35);
}

.mf-btn--go:hover {
  background: #1fe07f;
  box-shadow: 0 14px 34px rgba(0, 204, 102, 0.45);
}

.mf-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.mf-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mf-btn--line {
  color: var(--navy);
  border-color: #c5cfdd;
  background: #fff;
}

.mf-btn--line:hover {
  border-color: var(--navy);
}

/* ---- the top: what it is, and the app itself ---- */
.mf-hero {
  position: relative;
  padding: 136px 0 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(900px 460px at 88% -6%, rgba(47, 111, 237, 0.42), transparent 62%),
    radial-gradient(760px 420px at 4% 34%, rgba(0, 204, 102, 0.2), transparent 62%),
    linear-gradient(170deg, #091730 0%, #0f2649 58%, #0a1a33 100%);
}

.mf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.mf-hero .mf-wrap {
  position: relative;
  display: flow-root; /* so the window's pull below really ends the dark ground early */
}

.mf-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  font-weight: 600;
  color: #dbe6f7;
}

.mf-chip img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.mf-chip b {
  color: #fff;
}

.mf-hero h1 {
  margin: 22px auto 0;
  max-width: 880px;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.mf-hero h1 span {
  color: var(--green);
}

.mf-lead {
  margin: 22px auto 0;
  max-width: 700px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: #c7d3e6;
}

.mf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.mf-small {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #9fb0c9;
}

.mf-ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: #dbe6f7;
}

.mf-ticks i {
  color: var(--green);
  margin-right: 8px;
}

/* the app in a window, half over the edge of the dark top */
.mf-window {
  position: relative;
  max-width: 1040px;
  margin: 58px auto -150px;
  border-radius: 14px;
  overflow: hidden;
  background: #17274a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 90px rgba(3, 10, 26, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.mf-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #16254a;
  font-size: 0.8rem;
  color: #a9b8d2;
  text-align: left;
}

.mf-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3b4d74;
}

.mf-bar em {
  margin-left: 10px;
  font-style: normal;
}

/* ---- four plain facts ---- */
.mf-facts {
  padding: 206px 0 28px;
}

.mf-facts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-facts li {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.mf-facts strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.mf-facts span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- sections ---- */
.mf-section {
  padding: 84px 0;
}

.mf-section--soft {
  background: var(--soft);
}

.mf-head {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.mf-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.mf-head h2,
.mf-row h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

.mf-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.mf-head p {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--muted);
}

/* ---- how it works ---- */
.mf-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mf-step;
}

.mf-steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 16.6%;
  right: 16.6%;
  border-top: 2px dashed #c9d3e2;
}

.mf-steps li {
  position: relative;
  text-align: center;
  padding: 0 10px;
  counter-increment: mf-step;
}

.mf-steps .mf-dot {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 14px 30px rgba(10, 26, 51, 0.22);
}

.mf-steps .mf-dot::after {
  content: counter(mf-step);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #052814;
  font-size: 0.82rem;
  font-weight: 800;
  border: 3px solid #fff;
}

.mf-steps h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.mf-steps p {
  margin-top: 8px;
  color: var(--muted);
}

/* ---- a screen of the app beside what it does ---- */
.mf-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.mf-row + .mf-row {
  margin-top: 92px;
}

.mf-row--flip .mf-copy {
  order: 2;
}

.mf-row h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.mf-copy > p {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--muted);
}

.mf-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.mf-list li {
  position: relative;
  padding-left: 32px;
  margin-top: 12px;
  color: #26324a;
}

.mf-list i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--green-deep);
}

.mf-screen {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 60px rgba(15, 38, 73, 0.16), 0 4px 12px rgba(15, 38, 73, 0.06);
}

/* ---- what else it does ---- */
.mf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mf-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mf-card:hover {
  transform: translateY(-4px);
  border-color: #cfd8e6;
  box-shadow: 0 18px 40px rgba(15, 38, 73, 0.1);
}

.mf-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e3f9ee;
  color: var(--green-deep);
  font-size: 1.15rem;
}

.mf-card h3 {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.mf-card p {
  margin-top: 8px;
  font-size: 0.97rem;
  color: var(--muted);
}

/* ---- what you need ---- */
.mf-kit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mf-kit > div {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.mf-kit .mf-icon {
  flex: none;
  background: #e8efff;
  color: var(--blue);
}

.mf-kit h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.mf-kit p {
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- start: three steps and the two buttons ---- */
.mf-start {
  position: relative;
  overflow: hidden;
  padding: 54px 52px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(520px 300px at 100% 0%, rgba(0, 204, 102, 0.28), transparent 65%),
    linear-gradient(150deg, #0a1a33, #12305c);
}

.mf-start h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mf-start > p {
  margin-top: 10px;
  max-width: 620px;
  color: #c7d3e6;
}

.mf-start ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mf-go;
}

.mf-start li {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  counter-increment: mf-go;
}

.mf-start li::before {
  content: counter(mf-go);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: #052814;
  font-weight: 800;
  font-size: 0.9rem;
}

.mf-start li strong {
  display: block;
  font-size: 1.05rem;
}

.mf-start li span {
  display: block;
  margin-top: 6px;
  font-size: 0.94rem;
  color: #c7d3e6;
}

.mf-start .mf-actions {
  justify-content: flex-start;
}

.mf-start .mf-small a {
  color: #fff;
}

/* ---- questions ---- */
.mf-faq {
  max-width: 820px;
  margin: 0 auto;
}

.mf-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 22px;
}

.mf-faq details + details {
  margin-top: 12px;
}

.mf-faq summary {
  position: relative;
  padding: 18px 34px 18px 0;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.mf-faq summary::-webkit-details-marker {
  display: none;
}

.mf-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-deep);
}

.mf-faq details[open] summary::after {
  content: "\2212";
}

.mf-faq details p {
  padding: 0 0 20px;
  color: var(--muted);
}

.mf-faq a {
  color: var(--green-deep);
  font-weight: 600;
}

/* ---- narrower screens ---- */
@media (max-width: 960px) {
  .mf-row,
  .mf-row--flip {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mf-row--flip .mf-copy {
    order: 0;
  }

  .mf-row + .mf-row {
    margin-top: 64px;
  }

  .mf-cards,
  .mf-kit {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-facts ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .mf-wrap {
    padding: 0 18px;
  }

  .mf-hero {
    padding-top: 108px;
  }

  .mf-actions .mf-btn {
    width: 100%;
  }

  .mf-window {
    margin: 40px auto -70px;
    border-radius: 10px;
  }

  .mf-bar {
    padding: 8px 10px;
  }

  .mf-bar span {
    width: 8px;
    height: 8px;
  }

  .mf-facts {
    padding-top: 104px;
  }

  .mf-facts strong {
    font-size: 1.7rem;
  }

  .mf-section {
    padding: 60px 0;
  }

  .mf-steps,
  .mf-cards,
  .mf-kit,
  .mf-start ol {
    grid-template-columns: 1fr;
  }

  .mf-steps::before {
    display: none;
  }

  .mf-steps li + li {
    margin-top: 12px;
  }

  .mf-start {
    padding: 36px 22px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-btn,
  .mf-card {
    transition: none;
  }

  .mf-btn:hover,
  .mf-card:hover {
    transform: none;
  }
}
