/* Pixel-fidelity corrections verified against the live site. */
img { height: auto; }

.story-grid { padding-bottom: 85px; }
.contact { padding-bottom: 141.4px; }

.site-header.is-scrolled {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.button > span {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  font-size: 0;
  line-height: 0;
  transform: rotate(45deg);
}

.button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

/* M&A page: match the original WPBakery geometry without its runtime. */
.hero-exit {
  padding-bottom: 275px;
}

.hero-exit-copy {
  max-width: 800px;
}

.hero-exit h1 {
  margin-bottom: 35px;
}

.hero-exit p {
  max-width: none;
  margin: 15px 0 0;
  font-size: 30px;
  line-height: 45px;
}

.exit-promises {
  padding: 30px 0;
}

.exit-promises article {
  padding: 30px 40px;
}

.exit-promises h2 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 48px;
}

.exit-promises p {
  margin: 0;
  font-size: 18px;
  line-height: 23.4px;
}

.comparison-card {
  margin-top: 10px;
  padding: 40px 30px;
}

.comparison-card > h2 {
  margin: 0 0 35px;
  font-size: 38px;
  line-height: 38px;
}

.comparison {
  grid-template-columns: 1fr 85px 1fr;
}

.comparison section {
  padding-bottom: 15px;
}

.comparison h3 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 45px;
}

.comparison li {
  margin: 15px 0 0;
  font-size: 18px;
  line-height: 21.6px;
}

.comparison ul {
  padding-top: 0;
}

.criteria-card {
  min-height: 319px;
  margin: 30px auto 0;
  padding: 40px 257.5px 0;
}

.criteria-card h2 {
  margin: 0 0 35px;
  font-size: 38px;
  line-height: 38px;
}

.criteria-card ul {
  margin: 0 0 80px;
  padding-left: 20px;
}

.criteria-card li {
  margin: 0;
  padding-top: 10px;
  font-size: 18px;
  line-height: 21.6px;
}

@media (max-width: 767px) {
  .site-header { padding: 30px 0; }
  .brand { width: 200px; }
  .hero {
    padding-top: calc(150px + (50 * ((100vw - 575px) / 625)));
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .1);
  }
  .hero > .shell { position: relative; z-index: 1; }
  .hero-home {
    min-height: 0;
    padding-bottom: calc(150px + (30 * ((100vw - 575px) / 625)));
  }
  .hero h1 { font-size: 45px; line-height: 45px; }
  .hero p { font-size: 20px; line-height: 30px; }
  .feature-grid { padding: 0; }
  .feature-grid article { padding: 40px; }
  .story-grid { padding: 80px 15px; }
  .story-grid > div { padding-right: 0; }
  .story-grid figure { max-width: 300px; margin: 40px auto 0; padding-left: 0; }
  .story-grid figure img,
  .story-grid figcaption { width: 100%; }
  .contact { padding: 80px 0 140px; }
  .site-footer { padding: 30px 0; }
  .hero-exit { padding-bottom: calc(225px + (25 * ((100vw - 575px) / 625))); }
  .hero-exit-copy { max-width: 100%; }
  .hero-exit p { font-size: 26px; line-height: 39px; }
  .exit-promises { padding: 0; }
  .exit-promises article { padding: 30px 40px; }
  .comparison-card { padding: 40px 15px; }
  .comparison { grid-template-columns: 1fr; }
  .criteria-card { min-height: 0; padding: 40px 30px 65px; }
}

@media (max-width: 575px) {
  .button-light { font-size: 20px; }
}

/* Responsive hardening for small phones and touch navigation. */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

.button,
.brand,
.menu-toggle,
.nav a,
.site-footer nav a {
  min-height: 44px;
}

.brand,
.feature-grid a {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 767px) {
  .shell {
    padding-inline: 20px;
  }

  .header-inner {
    min-width: 0;
  }

  .brand {
    width: min(200px, calc(100vw - 105px));
  }

  .menu-toggle {
    width: 44px;
    padding: 5px 0;
  }

  .menu-toggle span {
    margin: 5px auto;
  }

  .nav {
    max-height: 100vh;
    overflow-y: auto;
  }

  .nav a,
  .site-footer nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding-inline: 4px;
  }

  .feature-grid a {
    min-height: 44px;
  }

  .hero-copy,
  .hero-exit-copy {
    width: 100%;
  }

  .feature-grid article {
    padding: 34px 30px;
  }

  .story-grid {
    padding-inline: 20px;
  }

  .contact input,
  .contact textarea {
    font-size: 18px;
  }

  .contact textarea {
    min-height: 160px;
  }

  .comparison-card,
  .criteria-card {
    width: 100%;
  }

  .comparison li,
  .criteria-card li {
    overflow-wrap: anywhere;
  }

  .criteria-card .button {
    max-width: 350px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .shell {
    padding-inline: 16px;
  }

  .brand {
    width: 170px;
  }

  .feature-grid article {
    padding: 30px 24px;
  }

  .story-grid {
    padding-inline: 16px;
  }

  .comparison-card {
    padding-inline: 18px;
  }

  .criteria-card {
    padding-inline: 20px;
  }

  .contact .button-blue {
    width: min(205px, 100%);
  }
}
