.ask {
  padding-block: 4rem;
}

.ask__layout {
  display: flex;
  flex-direction: column;
}

.ask__em {
  color: var(--accent);
}

.ask__title {
  max-width: 16em;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ask__lead {
  max-width: 68ch;
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.ask__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ask__proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.ask__proof .icon {
  color: var(--accent);
}

.ask__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.ask__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  max-width: 36rem;
  color: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
}

.ask__phone:hover {
  text-decoration-color: currentColor;
}

.ask--split .ask__phone:hover,
.ask--line .ask__phone:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .ask {
    padding-block: 6rem;
  }

  .ask__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .ask--split .ask__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 22rem);
    grid-template-areas:
      "copy actions"
      "proof actions";
    column-gap: 4rem;
    row-gap: 2.5rem;
    align-items: center;
  }

  .ask--split .ask__copy {
    grid-area: copy;
  }

  .ask--split .ask__proof {
    grid-area: proof;
    margin-top: 0;
  }

  .ask--split .ask__actions {
    grid-area: actions;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    margin-top: 0;
  }

  .ask--split .ask__actions .btn {
    width: 100%;
  }

  .ask--split .ask__phone {
    max-width: none;
  }
}

.ask--band {
  background: var(--primary);
  color: var(--primary-foreground);
}

.ask--band ::selection {
  background: var(--primary-foreground);
  color: var(--primary);
}

.ask--band .ask__layout {
  align-items: center;
  text-align: center;
}

.ask--band .ask__title,
.ask--band .ask__lead {
  margin-inline: auto;
}

.ask--band .ask__lead {
  color: color-mix(in oklab, var(--primary-foreground) 86%, transparent);
}

.ask--band .ask__proof {
  justify-content: center;
}

.ask--band .ask__proof .icon {
  color: var(--primary-foreground);
}

.ask--band .ask__actions {
  justify-content: center;
}

.ask--line .ask__proof {
  position: relative;
  margin-top: 3rem;
  padding-top: 1.25rem;
}

.ask--line .ask__proof::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.75rem;
  background:
    linear-gradient(var(--foreground), var(--foreground)) left center / 1px 100% no-repeat,
    linear-gradient(var(--foreground), var(--foreground)) right center / 1px 100% no-repeat,
    linear-gradient(var(--foreground), var(--foreground)) center / 100% 1px no-repeat;
}

@media (min-width: 768px) {
  .ask--line {
    padding-block: 8rem;
  }
}
