/* Spec 136 — grids, header, anchors, CTAs (marketing homepage) */

.op-section.dark > .intro,
.op-section.academy > .intro {
  max-width: 52rem;
}

.op-section.dark > :is(.opportunity-split, .personal-page, .technology-split, .platform-showcase),
.op-section.surface > .science-band,
.op-section > .platform-showcase,
.op-section > .organization {
  width: 100%;
  max-width: min(1440px, 100%);
  margin-inline: auto;
}

#home-opportunity .opportunity-split {
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

#home-opportunity .tools-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#home-opportunity .opportunity-statement {
  align-content: start;
  min-height: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

#home-opportunity .opportunity-statement strong {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.personal-page {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  width: 100%;
}

.personal-page .storefront-demo .button {
  width: auto;
  max-width: 100%;
  white-space: normal;
}

#home-technology .technology-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

#home-products .categories {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  gap: 0.75rem;
  align-items: stretch;
}

#home-products .categories > a {
  flex: 1 1 11rem;
  min-width: min(100%, 10.5rem);
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1rem;
  line-height: 1.35;
}

#home-technology .technology-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#home-technology .technology-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

#home-technology .technology-cta .button {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  padding: 0.8rem 1.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  white-space: normal;
  border-right: none;
  border-bottom: none;
}

#home-cta .final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

#home-cta .final-cta__actions .button {
  flex: 1 1 12rem;
  min-width: min(100%, 11rem);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
}

#home-cta .final-cta__actions .button.outline {
  background: transparent;
  border: 1px solid var(--vr-sand);
  color: var(--vr-white);
}

#home-cta .final-cta__actions .button.outline:hover,
#home-cta .final-cta__actions .button.outline:focus-visible {
  background: color-mix(in srgb, var(--vr-sand) 18%, transparent);
  color: var(--vr-white);
}

.platform-showcase {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.op-hero-copy .actions,
.final-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 577px) {
  .op-hero-copy .actions .button,
  .final-cta .actions .button,
  .path-grid article .button.sand,
  .path-grid article .button.secondary {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }
}

.final-cta {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
}

#main [id^="home-"],
#main #faq-home {
  scroll-margin-top: clamp(7rem, 11vw, 9.5rem);
}

html {
  scroll-padding-top: clamp(7rem, 11vw, 9.5rem);
}

@media (min-width: 1200px) {
  #home-opportunity .tools-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  #home-opportunity .opportunity-split {
    grid-template-columns: 1fr;
  }

  #home-opportunity .tools-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  #home-opportunity .tools-list {
    grid-template-columns: 1fr;
  }

  .op-hero-copy .actions .button,
  .final-cta .actions .button {
    width: 100%;
    white-space: normal;
  }

  #home-products .categories > a {
    flex: 1 1 100%;
    min-width: 100%;
  }

  #home-cta .final-cta__actions .button {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
