@media (max-width: 980px) {
  .topbar,
  .hero-grid {
    width: min(100% - 36px, 720px);
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
  }

  .brand {
    justify-self: center;
  }

  .brand img {
    width: 178px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 92px;
  }

  .hero-grid,
  .tool-panel,
  .faq-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
    margin-top: 58px;
  }

  .lead-card {
    max-width: 430px;
    margin: 0 auto;
  }

  .hero-shape-blue {
    right: -230px;
    bottom: -220px;
  }

  .hero-shape-navy {
    right: 80px;
  }

  .tools-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .tabs button {
    text-align: left;
  }

  .tool-panel {
    gap: 38px;
    max-width: 720px;
  }

  .faq-section {
    gap: 28px;
    min-height: auto;
    padding: 72px 24px 86px;
  }

  .faq-copy {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }

  .topbar,
  .hero-grid {
    max-width: 300px;
  }

  .social-links {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .brand img {
    width: 152px;
  }

  .top-cta {
    display: none;
  }

  .hero-grid {
    margin-top: 46px;
  }

  .hero-copy {
    max-width: 280px;
  }

  .hero-copy h1 {
    max-width: 280px;
    font-size: 32px;
  }

  .hero-copy p {
    max-width: 280px;
    margin-top: 28px;
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .lead-card {
    width: 100%;
    max-width: 280px;
    padding: 30px 20px 18px;
  }

  .lead-card h2 {
    font-size: 17px;
  }

  .tools-section {
    padding-top: 68px;
    padding-bottom: 72px;
  }

  .section-heading {
    margin-bottom: 40px;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .tool-copy {
    min-height: 0;
  }

  .tool-copy p {
    font-size: 18px;
  }

  .screen-card img {
    aspect-ratio: 1.2;
  }

  .faq-copy img {
    width: 180px;
  }

  .question {
    min-height: 92px;
    font-size: 18px;
  }

  .footer {
    padding: 58px 24px;
  }

  .footer p {
    font-size: 17px;
  }
}
