#top h1, #top h2 {
  color: #fff;
}

h3 {
  margin-top: 3rem;
}

#top {
  align-items: center;
  background-size: cover;
  background-position: center, calc(100% + 300px) center;
  background-repeat: no-repeat;
  display: flex;
  min-height: 500px;
}

#top h2 {
  font-size: 1.5rem;
}

@media only screen and (min-width: 768px) {
  #top {
    background-position: center right;
  }
}

/* Footprints */

#help {
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 6rem);
  position: relative;
}

/* Alternating steps */

#help .help-steps {
  display: grid;
  gap: clamp(7rem, 18vw, 13rem);
  list-style: none;
  margin: clamp(7rem, 12vw, 9rem) 0 0;
  padding: 0;
}

#help .help-step {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

#help .help-step:nth-child(even) {
  justify-content: flex-end;
}

/* Individual cards */

#help .help-card {
  background: #fff;
  border: 1px solid rgba(15, 50, 71, 0.12);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(15, 50, 71, 0.07);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  width: 90%;
}

#help .help-card h3 {
  margin: 0 0 1rem;
}

#help .help-card p {
  margin: 0;
}

/* Footprint overlay */

#help .help-trail {
  color: #477a95;
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

#help .help-trail-intro,
#help .help-trail-prints {
  fill: currentColor;
}

#help .help-intro-footprint {
  opacity: 0.45;
}

#help .help-footprint {
  opacity: 0;
  transition: opacity 180ms ease-out;
}

/* Slide-in effect */

@media (prefers-reduced-motion: no-preference) {

  #help.has-motion .help-card {
    opacity: 0;
    transform: translateX(-45px);
    transition:
      opacity 700ms ease,
      transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  #help.has-motion .help-step:nth-child(even) .help-card {
    transform: translateX(45px);
  }

  #help.has-motion .help-step.is-visible .help-card {
    opacity: 1;
    transform: translateX(0);
  }

}

@media (prefers-reduced-motion: reduce) {
  #help .help-footprint {
    transition: none;
  }
}

/* Wider screens */

@media only screen and (min-width: 768px) {

  #help .help-card {
    width: 60%;
  }
}


/* Why Testerly */

#why-testerly {
  background: #0f3247;
  color: #fff;
}

#why-testerly .why-inner {
  max-width: 1100px;
}

/* Header */

#why-testerly .why-header {
  margin-inline: auto;
  margin-bottom: 3rem;
  max-width: 780px;
  text-align: center;
}

#why-testerly .why-header h2 {
  color: #fff;
  margin-bottom: 1rem;
}

#why-testerly .why-subheading {
  color: #ecae49;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

#why-testerly .why-credentials {
  padding-bottom: 3rem;
}

#why-testerly .so-what {
  color: #ecae49;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 3rem;
  text-align: center;
}


/* Credentials strip */

#why-testerly .why-stats {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  max-width: 850px;
}

#why-testerly .why-stat {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  text-align: center;
}

#why-testerly .why-stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

#why-testerly .why-stat strong {
  color: #ecae49;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
}

#why-testerly .why-stat span {
  color: #d2e3ec;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  line-height: 1.4;
}

/* Transition */

#why-testerly .why-transition {
  color: #e0eaf0;
  margin: 0 auto 2.5rem;
  max-width: 720px;
  text-align: center;
}

/* Differentiator cards */

#why-testerly .why-features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

#why-testerly .why-feature {
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

#why-testerly .why-feature-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

#why-testerly .why-feature-heading svg {
  flex: 0 0 36px;
  height: 36px;
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

#why-testerly .why-feature h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0;
}

#why-testerly .why-feature p {
  line-height: 1.7;
}

#why-testerly .why-feature p:last-child {
  margin-bottom: 0;
}

/* Featured item-pool card */

#why-testerly .why-featured {
  background: #f0f6f9;
  border: 1px solid #d8e6ed;
  color: #0f3247;
  display: grid;
  gap: 2rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
}

#why-testerly .why-featured h3 {
  color: #0f3247;
}

#why-testerly .why-featured .why-feature-heading svg {
  color: #0f6489;
}

#why-testerly .why-featured a {
  color: #075d84;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#why-testerly .why-featured a:hover {
  color: #0f3247;
}

/* Item-pool comparison */

#why-testerly .why-comparison {
  align-self: center;
  background: #fff;
  border: 1px solid #dce8ee;
  border-radius: 0.75rem;
  box-shadow: 0 5px 20px rgba(15, 50, 71, 0.05);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

#why-testerly .why-comparison-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

#why-testerly .why-comparison-heading strong {
  color: #0f3247;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.1;
}

#why-testerly .why-comparison-heading span {
  color: #527286;
  font-size: 0.95rem;
}

#why-testerly .why-bar-group {
  margin-bottom: 1.4rem;
}

#why-testerly .why-bar-label {
  display: flex;
  font-size: 0.85rem;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

#why-testerly .why-bar-label span {
  flex: 1;
}

#why-testerly .why-bar-label strong {
  white-space: nowrap;
}

#why-testerly .why-bar-track {
  background: #e2ebf0;
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
  width: 100%;
}

#why-testerly .why-bar-fill {
  border-radius: inherit;
  height: 100%;
}

#why-testerly .testerly-bar {
  background: #0f6489;
  width: 100%;
}

#why-testerly .ipip-bar {
  background: #92b7c9;
  width: 45.5%;
}

#why-testerly .why-comparison-note {
  color: #527286;
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

/* Supporting feature cards */

#why-testerly .why-supporting {
  background: #19445b;
  border: 1px solid #365d72;
  color: #e0eaf0;
}

#why-testerly .why-supporting h3 {
  color: #fff;
}

#why-testerly .why-supporting .why-feature-heading svg {
  color: #ecae49;
}

/* Call to action */

#why-testerly .why-cta {
  text-align: center;
}

#why-testerly .why-cta h3 {
  color: #fff;
  margin: 5rem 0 2.5rem;
}

#why-testerly .why-cta p {
  color: #d2e3ec;
  margin-bottom: 1.5rem;
}

#why-testerly .why-cta .btn {
  background-color: #ecae49;
  border-color: #ecae49;
  color: #0f3247;
  font-weight: 600;
}

#why-testerly .why-cta .btn:hover {
  background-color: #f5c575;
  border-color: #f5c575;
}

/* Tablet and desktop */

@media only screen and (min-width: 768px) {

  #why-testerly .why-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #why-testerly .why-featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }
}
