/* Use cases page. Chrome, grid, and tiles come from home.css. */

html {
  scroll-behavior: smooth;
}

.nav a[aria-current="page"] {
  color: #B8441A;
}

.uc-hero,
.uc-count,
.uc-jump,
.uc-case,
.uc-label {
  scroll-margin-top: 16px;
}

.uc-hero {
  border-radius: 24px;
  background: #161616;
  color: #F4F1EA;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
}

.uc-hero h1 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -1.5px;
}

.uc-hero h1 .dot {
  color: #EE6A33;
}

.uc-hero .lede {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 540px;
  color: #E6E1D6;
}

.uc-count {
  border-radius: 24px;
  background: #C9501F;
  color: #FFFFFF;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.uc-stat {
  margin: 0 0 auto;
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 10vw, 120px);
  line-height: 0.9;
}

.uc-count h2 {
  margin: 16px 0 0;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
}

.uc-count p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #F4E4D8;
}

.uc-jump {
  border-radius: 24px;
  background: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.uc-jump a {
  color: #161616;
  text-decoration: none;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: #F4F1EA;
  padding: 10px 14px;
  border-radius: 999px;
}

.uc-jump a:hover {
  color: #FFFFFF;
  background: #C9501F;
}

.uc-label {
  margin: 8px 4px 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B8441A;
}

.uc-case {
  border-radius: 24px;
  background: #FFFFFF;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-num {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  color: #B8441A;
}

.uc-who {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8A857C;
}

.uc-case h3 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
}

.uc-case p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #3C3A36;
}

.uc-case.dark {
  background: #161616;
  color: #F4F1EA;
}

.uc-case.dark .uc-num {
  color: #EE6A33;
}

.uc-case.dark .uc-who {
  color: #CFC9BC;
}

.uc-case.dark h3 {
  color: #EE6A33;
}

.uc-case.dark p:last-child {
  color: #E6E1D6;
}

.uc-case.coral {
  background: #C9501F;
  color: #FFFFFF;
}

.uc-case.coral .uc-num,
.uc-case.coral .uc-who,
.uc-case.coral p:last-child {
  color: #F4E4D8;
}

@media (min-width: 901px) {
  .uc-case.wide {
    display: grid;
    grid-template-columns: minmax(16em, 0.85fr) minmax(0, 1.15fr);
    column-gap: 40px;
    align-items: center;
  }

  .uc-case.wide .uc-num,
  .uc-case.wide .uc-who,
  .uc-case.wide h3 {
    grid-column: 1;
  }

  .uc-case.wide p:last-child {
    grid-column: 2;
    grid-row: 1 / span 4;
  }
}

@media (max-width: 900px) {
  .uc-hero {
    min-height: 0;
    padding: 36px 28px;
  }
}

@media (max-width: 600px) {
  .uc-hero,
  .uc-count,
  .uc-case {
    padding: 28px 22px;
  }

  .uc-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
    letter-spacing: -1px;
  }

  .uc-stat {
    font-size: 80px;
  }

  .uc-case h3 {
    font-size: 22px;
  }
}

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