/* Shared text layout for the site's static pages. */
html {
  scroll-padding-top: calc(6rem + env(safe-area-inset-top, 0px));
}

h1, h2, h3, h4, summary {
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  line-height: 1.16;
}

p, li {
  overflow-wrap: break-word;
}

.btn {
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.ans p + p {
  margin-block-start: .85em;
}

.sprint-fees {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.sprint-fees .price {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.sprint-fees .price-in {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 2.75rem);
}

.sprint-fees .price h2,
.sprint-fees .price h3,
.sprint-fees .price p {
  color: var(--on-dark);
  max-width: none;
}

.sprint-fees .price h2,
.sprint-fees .price h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  text-wrap: wrap;
}

.sprint-fees .price .pv {
  margin-block: .45rem .75rem;
  line-height: 1.2;
}

.fee-details p {
  margin-block-start: .4rem;
}

.fee-details p + h3 {
  margin-block-start: 1rem;
}

.sprint-fees .price .indep {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.step h3 {
  margin-block-end: .35rem;
}

.prose h2 .n {
  display: inline-block;
}

.prose a,
.narrow a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

#sample-deliverable p,
#renewal-checklist p,
.sample-plan {
  max-inline-size: 66ch;
  line-height: 1.65;
}

#sample-deliverable h3 {
  margin-block: 1.65em .5em;
}

#sample-deliverable p + p,
#renewal-checklist h2 + p {
  margin-block-start: .75em;
}

.sample-plan {
  padding-inline-start: 1.5em;
}

.sample-calculator label,
.sample-calculator output,
form.sub-form input[type="email"] {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.margin-result-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem .75rem;
  padding-block: .5rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

@media (max-width: 760px) {
  .hero-cta > *,
  .cta-row > * {
    min-width: 0;
  }

  .faq .ans {
    padding-inline-end: 1rem;
  }
}

@media (max-width: 600px) {
  .wrap, .narrow, .article, .prose, .nav-in {
    padding-inline: 20px;
  }

  #sample-deliverable .sample-table {
    font-size: .9rem;
    table-layout: fixed;
  }

  #sample-deliverable .sample-table th,
  #sample-deliverable .sample-table td {
    padding-inline: .3rem;
    overflow-wrap: anywhere;
  }

  .progress .btn {
    white-space: normal;
  }

  .sprint-fees .price-in {
    grid-template-columns: 1fr;
  }

  .margin-result-line {
    grid-template-columns: 1fr;
  }

  #renewal-checklist li > strong {
    display: block;
    margin-block-end: .1rem;
  }
}
