/* Reusable content components shared across product and integration pages. */

.mf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.mf-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--mf-red);
  color: var(--mf-white);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease;
}

.mf-button:hover {
  color: var(--mf-white);
  transform: translateY(-2px);
}

.mf-button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.mf-section {
  --mf-section-padding: 104px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 100vw;
  max-width: none !important;
  padding: var(--mf-section-padding) 0;
  margin-left: calc(50% - 50vw);
}

.mf-section > .mf-shell {
  position: relative;
  z-index: 1;
}

.mf-section--compact {
  --mf-section-padding: 88px;
}

.mf-wave-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mf-wave-brush {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100%;
  height: 54px;
  pointer-events: none;
}

.mf-wave-brush-top {
  top: 0;
  transform: translateY(-99%);
}

.mf-wave-brush svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Cover the SVG's straight edge without moving the surrounding sections. */
.mf-wave-separator--top > svg {
  position: relative;
  top: -1px;
}

.mf-wave-separator--bottom > svg {
  position: relative;
  top: 1px;
}

.mf-section[id] {
  scroll-margin-top: 150px;
}

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

.mf-section-dark {
  background: var(--mf-green);
  color: var(--mf-white);
}

.mf-section-head {
  max-width: 820px;
  margin-bottom: 48px;
}

.mf-eyebrow {
  margin: 0 0 16px;
  color: var(--mf-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.mf-section h2 {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--mf-ink);
  font-size: 46px;
  line-height: 1.09;
  letter-spacing: 0;
}

.mf-section h3 {
  margin: 0 0 12px;
  color: var(--mf-ink);
  font-size: 22px;
  letter-spacing: 0;
}

.mf-section-lead {
  max-width: 760px;
  margin: 0;
  color: var(--mf-muted);
  font-size: 19px;
  line-height: 1.6;
}

.mf-section-dark h2,
.mf-section-dark h3 {
  color: var(--mf-white);
}

.mf-section-dark .mf-section-lead {
  color: #c9dbd7;
}

.mf-grid-2,
.mf-grid-3,
.mf-grid-4 {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

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

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

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

.mf-grid-2 > .mf-card,
.mf-grid-3 > .mf-card,
.mf-grid-4 > .mf-card {
  margin-block: 0;
}

.mf-card {
  display: flex;
  height: 100%;
  min-height: 210px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  background: var(--mf-white);
  box-shadow: 0 7px 22px rgba(20, 36, 44, 0.04);
}

.mf-card-emphasis {
  border-color: #9fc5bb;
  box-shadow: inset 0 4px 0 var(--mf-blue), 0 7px 22px rgba(20, 36, 44, 0.04);
}

.mf-card p {
  margin: 0;
  color: var(--mf-muted);
}

.mf-card-mark {
  display: block;
  margin-bottom: 24px;
  color: var(--mf-red);
  font-size: 13px;
  font-weight: 800;
}

.mf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.mf-split > * {
  min-width: 0;
}

/* Alternating screenshot-and-copy sections used across product and CRM pages. */
.mf-content-story {
  align-items: center;
  gap: 58px;
}

.mf-content-story > .wp-block-column {
  min-width: 0;
}

.mf-content-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mf-content-shot-border, #d7e1e5);
  border-radius: 8px;
  background: var(--mf-white);
  box-shadow: var(--mf-content-shot-shadow, 0 20px 48px rgba(20, 36, 44, 0.11));
}

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

.mf-content-shot--wide {
  max-width: 1120px;
  margin-inline: auto;
}

.mf-content-shot--subtle {
  --mf-content-shot-border: #d7e2df;
}

.mf-proof-line {
  margin: 24px auto 0;
  color: var(--mf-muted);
  font-size: 16px;
}

.mf-proof-line strong {
  color: var(--mf-ink);
}

.mf-visual--narrow {
  max-width: 620px;
  margin-inline: auto;
}

/* Reusable icon-and-benefit row for concise product advantages. */
.mf-icon-benefits {
  gap: 34px;
  margin-top: 54px;
}

.mf-icon-benefits > .wp-block-column {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  column-gap: 18px;
}

.mf-icon-box,
.mf-icon-tile {
  display: grid;
  border-radius: 8px;
  place-items: center;
}

.mf-icon-box {
  width: 48px;
  height: 48px;
  grid-row: 1 / span 2;
  margin: 0;
  background: #e5f3fb;
  color: var(--mf-blue);
  font-size: 21px;
}

.mf-icon-benefits h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.mf-icon-benefits p:not(.mf-icon-box) {
  margin: 0;
  color: var(--mf-muted);
  line-height: 1.65;
}

/* Two screenshots presented as one reusable visual composition. */
.mf-shot-stack {
  position: relative;
  min-height: 500px;
  padding: 0 44px 52px 0;
}

.mf-shot-stack > .mf-content-shot:first-child {
  width: 88%;
}

.mf-shot-stack__secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
}

.mf-shot-stack__secondary--narrow {
  width: 55%;
}

.mf-section--blue-soft {
  background: #eaf6fc;
}

.mf-section--blue-soft .mf-content-shot {
  --mf-content-shot-border: #bad8e7;
  --mf-content-shot-shadow: 0 22px 54px rgba(24, 94, 145, 0.14);
}

/* Equal feature cards with a stable icon treatment. */
.mf-feature-grid {
  gap: 18px;
}

.mf-feature-grid .mf-card {
  min-height: 245px;
}

.mf-icon-tile {
  width: 52px;
  height: 52px;
  margin: 0 0 22px;
  background: #e6f3ef;
  color: #145c55;
  font-size: 22px;
}

.mf-feature-grid .mf-card:nth-child(3n + 2) .mf-icon-tile {
  background: #e5f3fb;
  color: var(--mf-blue);
}

.mf-feature-grid .mf-card:nth-child(3n) .mf-icon-tile {
  background: #fff0ed;
  color: var(--mf-red);
}

.mf-feature-grid .mf-card p:not(.mf-icon-tile) {
  line-height: 1.65;
}

/* Compact text rows and linked rows without card chrome. */
.mf-divided-list,
.mf-link-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--mf-line);
}

.mf-divided-list > .wp-block-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--mf-line);
}

.mf-divided-list h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.mf-divided-list p {
  margin: 0;
  color: var(--mf-muted);
  line-height: 1.6;
}

.mf-building-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 48px 0 0 !important;
  padding: 32px 0 0;
  border-top: 1px solid var(--mf-line);
}

.mf-building-benefits > .wp-block-group {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.mf-building-benefits h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.mf-building-benefits p {
  margin: 0;
  color: var(--mf-muted);
  line-height: 1.65;
}

.mf-link-list p {
  margin: 0;
  border-bottom: 1px solid var(--mf-line);
}

.mf-link-list a {
  position: relative;
  display: block;
  padding: 20px 42px 20px 0;
  color: var(--mf-ink);
  text-decoration: none;
}

.mf-link-list a::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--mf-red);
  font-size: 24px;
  content: "→";
  transform: translateY(-50%);
}

.mf-link-list a:hover strong {
  color: var(--mf-red);
}

.mf-link-list span {
  display: inline-block;
  margin-top: 5px;
  color: var(--mf-muted);
  line-height: 1.55;
}

.mf-section--narrow .mf-section-head,
.mf-section--narrow .mf-faq {
  max-width: 940px;
  margin-inline: auto;
}

.mf-equal-cards > .mf-card {
  display: flex;
  height: 100%;
  margin-block: 0;
  flex-direction: column;
}

.mf-integration-help {
  margin-top: 24px;
}

.mf-integration-help a {
  font-weight: 700;
}

.mf-cta-note {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
}

.mf-visual {
  margin: 0;
}

.mf-visual img {
  display: block;
  width: 100%;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  background: var(--mf-white);
  box-shadow: var(--mf-shadow);
}

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

.mf-checks li {
  position: relative;
  margin: 12px 0;
  padding-left: 28px;
  color: var(--mf-ink);
}

.mf-checks li::before {
  position: absolute;
  left: 0;
  color: var(--mf-green);
  font-weight: 900;
  content: "✓";
}

.mf-section-dark .mf-checks li {
  color: #e6f0ed;
}

.mf-compare {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--mf-white);
}

.mf-compare th,
.mf-compare td {
  padding: 20px;
  border-right: 1px solid var(--mf-line);
  border-bottom: 1px solid var(--mf-line);
  text-align: left;
  vertical-align: top;
}

.mf-compare th {
  background: var(--mf-soft);
  color: var(--mf-ink);
}

.mf-compare tr:last-child td,
.mf-compare tr:last-child th {
  border-bottom: 0;
}

.mf-compare th:last-child,
.mf-compare td:last-child {
  border-right: 0;
}

.mf-faq {
  display: grid;
  gap: 10px;
}

.mf-faq details {
  margin: 0;
  padding: 18px 24px;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  background: var(--mf-white);
}

.mf-faq summary {
  margin: 0;
  color: var(--mf-ink);
  font-weight: 750;
  cursor: pointer;
}

.mf-faq p {
  margin: 14px 0 0;
  color: var(--mf-muted);
}

/* Compact conversion step within the FAQ section. */
.mf-pre-faq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-sizing: border-box;
  padding: 40px;
  margin: -24px 0 66px !important;
  border: 1px solid #17344c;
  border-radius: 12px;
  background: #17344c;
}

.mf-pre-faq-cta .wp-block-heading {
  flex: 1 1 300px;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
}

.mf-pre-faq-cta .wp-block-buttons {
  flex: 0 0 auto;
  margin: 0;
}

.mf-pre-faq-cta .wp-block-button__link {
  min-height: 52px;
  padding: 16px 26px;
  border: 2px solid #ef8174;
  border-radius: 8px;
  background: #ef8174;
  color: #14242c;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.mf-pre-faq-cta .wp-block-button__link:hover {
  border-color: #ffa99e;
  background: #ffa99e;
  color: #14242c;
}

.mf-pre-faq-cta .wp-block-button__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .mf-pre-faq-cta {
    display: block;
    padding: 28px 24px;
    margin: -12px 0 44px !important;
  }

  .mf-pre-faq-cta .wp-block-buttons {
    margin-top: 24px;
  }
}

/* Reusable comparison of a desktop and mobile product view. */
.mf-device-comparison {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  padding: 28px 14px 62px;
}

.mf-device-comparison__desktop {
  position: relative;
  z-index: 1;
  width: min(80%, 610px);
  margin: 0 -20px 0 0 !important;
  padding: 10px 10px 24px;
  border: 1px solid rgba(20, 36, 44, 0.22);
  border-radius: 8px;
  background: #172b38;
  box-shadow: 0 22px 45px rgba(17, 51, 79, 0.18);
}

.mf-device-comparison__desktop::before {
  position: absolute;
  bottom: -34px;
  left: 50%;
  width: 54px;
  height: 34px;
  background: #cbd4d8;
  content: "";
  transform: translateX(-50%);
}

.mf-device-comparison__desktop::after {
  position: absolute;
  bottom: -43px;
  left: 50%;
  width: 152px;
  height: 12px;
  border-radius: 8px 8px 4px 4px;
  background: #9eabb1;
  box-shadow: 0 6px 12px rgba(17, 51, 79, 0.12);
  content: "";
  transform: translateX(-50%);
}

.mf-device-comparison__desktop img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  background: #fff;
  object-fit: cover;
  object-position: top center;
}

.mf-device-comparison__phone {
  position: relative;
  z-index: 2;
  width: clamp(124px, 25%, 158px);
  margin: 88px 0 0 !important;
  padding: 17px 6px 9px;
  overflow: hidden;
  border: 3px solid #172b38;
  border-radius: 28px;
  background: #172b38;
  box-shadow: 0 20px 38px rgba(17, 51, 79, 0.24);
}

.mf-device-comparison__phone::before {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 50%;
  width: 42%;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: #172b38;
  content: "";
  transform: translateX(-50%);
}

.mf-device-comparison__phone img {
  display: block;
  width: 100%;
  aspect-ratio: 398 / 745;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  object-position: top center;
}

/* Shared final conversion panel for the homepage and every integration page. */
.mf-final-cta-band {
  --mf-final-cta-start: #fff;
  padding: 34px 0 0 !important;
  background: linear-gradient(180deg, var(--mf-final-cta-start) 0%, #102136 72%);
}

.mf-final-cta-band--from-soft {
  --mf-final-cta-start: var(--mf-soft);
}

.mf-final-cta-panel {
  width: min(calc(100% - 48px), 1500px);
  margin: 0 auto !important;
  overflow: hidden;
  border-radius: 10px;
}

.mf-final-cta-panel .wp-block-cover__inner-container {
  box-sizing: border-box;
  width: 100%;
  padding: 92px 48px;
}

.mf-final-cta-copy {
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
}

.mf-final-cta-copy .mf-section-title {
  max-width: 900px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: 44px;
  line-height: 1.12;
}

.mf-final-cta-copy .mf-lead {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.mf-final-cta-copy .mf-actions {
  justify-content: center;
  margin-top: 36px;
}

.mf-final {
  text-align: center;
}

.mf-final .mf-section-head,
.mf-final .mf-section-head h2,
.mf-final .mf-section-lead {
  margin-right: auto;
  margin-left: auto;
}

.mf-final .mf-actions {
  justify-content: center;
}

.mf-text-link {
  color: var(--mf-blue-dark);
  font-weight: 750;
  text-decoration: none;
}

.mf-footer h3 {
  margin: 0 0 14px;
  color: var(--mf-white);
  font-size: 15px;
}

.mf-footer p,
.mf-footer a {
  color: #b8c5ca;
  font-size: 14px;
  text-decoration: none;
}

.mf-footer a {
  display: block;
  margin: 8px 0;
}

.mf-final .mf-button-secondary {
  border-color: var(--mf-blue-dark);
  color: var(--mf-blue-dark);
}

@media (max-width: 999px) {
  .mf-icon-benefits {
    flex-wrap: wrap !important;
  }

  .mf-icon-benefits > .wp-block-column {
    flex-basis: calc(50% - 18px) !important;
  }

  .mf-shot-stack {
    min-height: 420px;
  }
}

@media (max-width: 781px) {
  .mf-building-benefits {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px !important;
  }

  .mf-content-story {
    gap: 32px;
  }

  .mf-content-story .wp-block-column {
    flex-basis: 100% !important;
  }

  .mf-shot-stack {
    width: min(100%, 680px);
    min-height: 520px;
    margin-inline: auto;
  }

  .mf-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-device-comparison {
    min-height: 390px;
    padding-inline: 0;
  }
}

@media (max-width: 689px) {
  .mf-final-cta-band {
    padding-top: 24px !important;
  }

  .mf-final-cta-panel {
    width: calc(100% - 32px);
    min-height: 400px !important;
  }

  .mf-final-cta-panel .wp-block-cover__inner-container {
    padding: 58px 24px;
  }

  .mf-final-cta-copy .mf-section-title {
    font-size: 30px;
  }

  .mf-final-cta-copy .mf-lead {
    font-size: 18px;
  }

  .mf-content-story {
    gap: 26px;
  }

  .mf-mobile-focus-shot {
    aspect-ratio: 4 / 3;
  }

  .mf-mobile-focus-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
  }

  .mf-mobile-focus-shot--templates img {
    object-position: 62% 35%;
  }

  .mf-mobile-focus-shot--quality img {
    object-position: 50% 25%;
  }

  .mf-content-story__copy {
    order: 1;
  }

  .mf-content-story__visual {
    order: 2;
  }

  .mf-equal-cards > .mf-card {
    height: auto;
  }

  .mf-icon-benefits {
    gap: 30px;
    margin-top: 40px;
  }

  .mf-icon-benefits > .wp-block-column {
    display: block;
    flex-basis: 100% !important;
    text-align: center;
  }

  .mf-icon-box {
    margin-inline: auto;
  }

  .mf-icon-benefits h3 {
    margin-top: 18px;
  }

  .mf-shot-stack {
    min-height: 0;
    padding: 0;
  }

  .mf-shot-stack > .mf-content-shot:first-child,
  .mf-shot-stack__secondary {
    position: static;
    width: 100%;
  }

  .mf-shot-stack__secondary {
    margin-top: 18px;
  }

  .mf-feature-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mf-feature-grid .mf-card {
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: center;
    text-align: center;
  }

  .mf-icon-tile {
    margin-bottom: 20px;
  }

  .mf-divided-list h3,
  .mf-divided-list p {
    text-align: left;
  }

  .mf-device-comparison {
    min-height: 300px;
    padding: 8px 0 52px;
  }

  .mf-device-comparison__desktop {
    width: 80%;
    margin-right: -18px !important;
    padding: 6px 6px 16px;
  }

  .mf-device-comparison__desktop::before {
    bottom: -25px;
    width: 38px;
    height: 25px;
  }

  .mf-device-comparison__desktop::after {
    bottom: -32px;
    width: 108px;
    height: 9px;
  }

  .mf-device-comparison__phone {
    width: 27%;
    margin-top: 48px !important;
    padding: 12px 4px 6px;
    border-width: 2px;
    border-radius: 20px;
  }

  .mf-device-comparison__phone img {
    border-radius: 13px;
  }
}
