/* Accessibility and SEO-content layout enhancements. */
[id] {
  scroll-margin-top: 104px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px #fff;
}

footer :focus-visible,
.testimonials :focus-visible {
  outline-color: var(--aqua);
  box-shadow: 0 0 0 6px #111a34;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 24px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.menu-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.hero > *,
.marketing > *,
.contact > *,
.footer-top > * {
  min-width: 0;
}

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

.testimonial-grid h3 {
  margin: 0 0 14px;
  font: 600 23px/1.25 "Space Grotesk", sans-serif;
  letter-spacing: -.7px;
}

.testimonial-grid article > p {
  margin: 0;
  color: #dce5f7;
  font-size: 16px;
  line-height: 1.65;
}

.testimonial-grid .metric {
  justify-content: flex-start;
}

.testimonial-grid .metric > p {
  color: #fff;
  opacity: 1;
}

.stats strong {
  color: var(--blue);
}

.faq {
  padding-top: 0;
}

.faq-list {
  max-width: 950px;
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.faq-list summary {
  padding: 21px 24px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.faq-list summary::marker {
  color: var(--blue);
}

.faq-list details[open] summary {
  color: var(--blue);
}

.faq-list details > p {
  margin: 0;
  padding: 0 24px 23px;
  color: var(--muted);
  line-height: 1.7;
}

.form-note {
  margin: 0 0 4px;
  padding: 15px 18px;
  background: #e4edff;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #344568;
}

.form-note a,
.contact > div > p a,
#newsletter-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note a,
.contact > div > p a {
  color: #214cdb;
}

input:disabled,
textarea:disabled {
  background: #f5f7fb;
  color: #64708a;
  -webkit-text-fill-color: #64708a;
  opacity: 1;
  cursor: not-allowed;
}

button:disabled,
button:disabled:hover {
  background: #526585;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#newsletter button:disabled {
  background: #526585;
  min-height: 44px;
  min-width: 44px;
}

#newsletter-note {
  margin-top: 4px;
  font-size: 13px;
}

@media (max-width: 850px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid article {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  [id] {
    scroll-margin-top: 88px;
  }

  .marketing-art {
    width: 100%;
    max-width: 430px;
    height: 345px;
    margin: 0 auto;
    transform: none;
  }

  .marketing-art .halo {
    width: min(100%, 330px);
    height: auto;
    aspect-ratio: 1;
    left: 0;
    top: 0;
  }

  .marketing-art .dashboard {
    width: 100%;
    left: 0;
    top: 28px;
    padding: 20px;
  }

  .dash-bars {
    gap: 12px;
  }

  .dash-numbers {
    gap: 16px;
  }

  .dash-numbers small {
    font-size: 11px;
  }

  .faq {
    padding-top: 0;
  }

  .faq-list summary {
    padding: 18px;
  }

  .faq-list details > p {
    padding: 0 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
