/*
 * Three promises.
 *
 * This section uses its own class vocabulary so none of the original
 * guarantee-list experiments can affect its layout. On desktop, the header
 * follows the page's editorial grid and the promises share the full width.
 * On smaller screens, each promise becomes a generous horizontal row.
 */

.guarantees {
  padding: clamp(6rem, 9vw, 9rem) 0;
}

.contract-header {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.contract-header .section-kicker {
  margin: 0;
  padding-top: 0.5rem;
}

.contract-header h2 {
  margin: 0;
  max-width: 700px;
  color: #171713;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 580;
  line-height: 1;
  letter-spacing: -0.055em;
}

.promise-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 23, 19, 0.22);
  border-bottom: 1px solid rgba(23, 23, 19, 0.22);
}

.promise {
  min-width: 0;
  padding: clamp(2rem, 3.3vw, 3.25rem);
  border-right: 1px solid rgba(23, 23, 19, 0.18);
}

.promise:first-child {
  padding-left: 0;
}

.promise:last-child {
  padding-right: 0;
  border-right: 0;
}

.promise-index {
  margin: 0 0 2.4rem;
  color: #ff5c35;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.promise-title {
  margin: 0 0 1.25rem;
  color: #171713;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.promise-lt {
  color: #ff5c35;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
}

.promise-body {
  margin: 0;
  color: #4a4a42;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.65;
}

.promise-body code {
  padding: 0.12em 0.35em;
  background: rgba(255, 92, 53, 0.08);
  border-radius: 4px;
  font-size: 0.95em;
}

@media (max-width: 980px) {
  .contract-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contract-header .section-kicker {
    padding-top: 0;
  }

  .promise-stack {
    grid-template-columns: 1fr;
  }

  .promise,
  .promise:first-child,
  .promise:last-child {
    display: grid;
    grid-template-columns: 3rem minmax(180px, 0.7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 23, 19, 0.18);
  }

  .promise:last-child {
    border-bottom: 0;
  }

  .promise-index,
  .promise-title {
    margin: 0;
  }
}

@media (max-width: 680px) {
  .contract-header h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .promise,
  .promise:first-child,
  .promise:last-child {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.75rem 1rem;
  }

  .promise-title {
    font-size: 1.75rem;
  }

  .promise-body {
    grid-column: 2;
    font-size: 1.0625rem;
  }
}
