/* Hero section, dashboard artwork, and interactive provider strip. */
.hero-shell {
  overflow: clip;
  padding-block-start: var(--header-height);
}

.hero {
  display: grid;
  grid-template-columns: 43% minmax(0, 57%);
  align-items: center;
  min-height: clamp(26rem, 41.5vw, 37.5rem);
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: start;
  padding-block: clamp(3rem, 4.7vw, 4.25rem) 0;
}

h1 {
  font-size: clamp(2.5rem, 4.1vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 800;
}

h1 span {
  color: var(--color-blue);
  font-size: .95em;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.hero-description {
  max-width: 29rem;
  margin-block-start: 1.5rem;
  font-size: clamp(1rem, 1.32vw, 1.1875rem);
  line-height: 1.5;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  gap: 1.375rem;
  align-items: center;
  margin-block-start: 2rem;
}

.hero-actions .button {
  flex-shrink: 0;
}

.hero-artwork {
  width: 116%;
  margin-inline-start: -2%;
  position: relative;
  pointer-events: none;
  transform-style: preserve-3d;
}

.dashboard-image {
  width: 100%;
  height: auto;
  transform-origin: center center;
}

.providers {
  display: flex;
  align-items: center;
  min-height: clamp(3.625rem, 5.6vw, 5rem);
  padding: clamp(.875rem, 1.25vw, 1.125rem) 2.25rem;
  border: 1px solid #fffffff0;
  border-radius: var(--radius-panel);
  background: linear-gradient(115deg, #ffffff9c, #ffffff45);
  box-shadow: 0 12px 28px #335cbb0d, inset 0 1px 0 #ffffffc7;
}

.providers > p {
  flex: 1.5;
  padding-inline-end: 1.75rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

.provider-list {
  display: flex;
  align-items: center;
  flex: 3;
  list-style: none;
  padding: 0;
  margin: 0;
}

.provider-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding-inline: .75rem;
  border-inline-start: 1px solid #b8c7e4;
  font-size: 1rem;
  white-space: nowrap;
}

.provider-trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .5rem .75rem;
  border: 0;
  border-radius: 16px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

.provider-list img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (hover: hover) {
  .provider-trigger:hover {
    color: var(--color-blue);
    background: rgba(255, 255, 255, .55);
  }
}

@media (max-width: 1150px) and (min-width: 861px) {
  .hero-description {
    font-size: .875rem;
    margin-block-start: .75rem;
  }

  .hero-actions {
    gap: 1rem;
    margin-block-start: 1.5rem;
  }

  .hero-actions .button {
    min-height: 2.625rem;
    padding: .6875rem 1.25rem;
    font-size: .8125rem;
    border-radius: 16px;
    gap: .75rem;
  }

  .hero-actions svg {
    width: 16px;
  }

  .providers {
    padding-inline: 1rem;
  }

  .providers > p,
  .provider-list li {
    font-size: .875rem;
  }

  .provider-list li {
    padding-inline: .5rem;
  }

  .provider-trigger {
    gap: .75rem;
    padding-inline: .5rem;
  }

  .provider-list img {
    width: 1.875rem;
    height: 1.875rem;
  }
}

/* Stack headline and artwork when they can no longer share a readable row. */
@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    text-align: center;
    padding-block: 3rem 1rem;
  }

  .eyebrow {
    margin-block-end: 1.5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 6.6vw, 3.75rem);
  }

  .hero-description {
    margin-inline: auto;
    max-width: 31rem;
    font-size: 1.0625rem;
  }

  .hero-actions {
    justify-content: center;
    margin-block-start: 1.75rem;
  }

  .hero-artwork {
    width: min(112%, 46rem);
    margin: 0;
  }

  .providers {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
    border-radius: 24px;
  }

  .providers > p {
    padding: 0;
  }

  .provider-list {
    width: 100%;
  }

  .provider-list li {
    padding-inline: .375rem;
    font-size: .875rem;
  }

  .provider-trigger {
    flex-direction: column;
    gap: .625rem;
    padding-inline: .375rem;
  }

  .provider-list li:first-child {
    border: 0;
  }
}

@media (max-width: 430px) {
  .hero-copy {
    padding-block-start: 2rem;
  }

  h1 {
    font-size: clamp(1.875rem, 7.8vw, 2.125rem);
  }

  .eyebrow {
    font-size: .6875rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    gap: .75rem;
  }

  .hero-actions .button {
    min-height: 3.25rem;
    padding: .875rem 1rem;
    font-size: .875rem;
    border-radius: 16px;
    gap: .5rem;
  }

  .hero-actions svg {
    width: 16px;
  }

  .providers > p {
    max-width: 15rem;
    font-size: .9375rem;
  }

  .provider-list li {
    font-size: .75rem;
    padding-inline: .375rem;
  }

  .provider-list img {
    width: 1.875rem;
    height: 1.875rem;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .providers {
    border: 1px solid ButtonText;
  }
}
