/* Ported from the 2.1 rokr-dinosaur-lab-hero. The 2.1 stylesheet painted the whole page black;
   in 3.0 that is the section's dark color scheme, so the colors here read from the scheme. */

.product-launch-hero {
  background-color: rgb(var(--color-background));
}

.product-launch-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

@media screen and (min-width: 960px) {
  .product-launch-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.product-launch-hero__media {
  overflow: hidden;
  border-radius: 13px;
}

.product-launch-hero__title {
  margin: 0;
  color: rgb(var(--color-text));
}

.product-launch-hero__summary {
  margin-top: 1rem;
  color: rgba(var(--color-text), 0.78);
}

.product-launch-hero__summary > :first-child { margin-top: 0; }
.product-launch-hero__summary > :last-child { margin-bottom: 0; }

.product-launch-hero__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

.product-launch-hero__spec {
  min-width: 0;
  padding: 1.5rem 1rem;
  background: rgba(var(--color-text), 0.1);
}

.product-launch-hero__spec dt,
.product-launch-hero__spec dd {
  margin: 0;
}

.product-launch-hero__spec dt {
  color: rgba(var(--color-text), 0.7);
  font-size: 14px;
  line-height: 1.4;
}

.product-launch-hero__spec dd {
  margin-top: 0.25rem;
  color: rgb(var(--color-text));
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.product-launch-hero__notify-main,
.product-launch-hero__notify-main > summary {
  display: block;
  width: 100%;
}

.product-launch-hero__notify-main > summary {
  list-style: none;
  cursor: pointer;
}

.product-launch-hero__notify-main > summary::-webkit-details-marker {
  display: none;
}

.product-launch-hero__notify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(var(--color-text), 0.16);
  border-radius: 14px;
  background: rgba(var(--color-text), 0.07);
}

.product-launch-hero__notify-content {
  max-width: 720px;
}

.product-launch-hero__notify-eyebrow {
  margin: 0 0 0.5rem;
  color: rgba(var(--color-text), 0.65);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-launch-hero__notify-title {
  margin: 0;
  color: rgb(var(--color-text));
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.product-launch-hero__notify-text {
  margin: 0.65rem 0 0;
  color: rgba(var(--color-text), 0.72);
  font-size: 15px;
  line-height: 1.5;
}

.product-launch-hero__notify-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 150px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.product-launch-hero__dialog {
  /* The modal layer sets inset/margin to centre the panel, but the global reset's margin: 0
     wins over layered styles, so the centring is repeated here. */
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(calc(100vw - var(--page-padding) * 2), 440px);
  max-height: calc(100vh - 80px);
  overflow: auto;
}

.product-launch-hero__dialog-content {
  display: grid;
  gap: 16px;
  padding: 32px 24px 24px;
}

.product-launch-hero__dialog-title {
  margin: 0 40px 0 0;
}

.product-launch-hero__dialog-copy,
.product-launch-hero__dialog-privacy {
  color: rgba(var(--color-text), 0.7);
}

@media screen and (max-width: 749px) {
  .product-launch-hero__notify {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .product-launch-hero__notify-button {
    width: 100%;
  }

  .product-launch-hero__specs {
    gap: 0.5rem;
  }

  .product-launch-hero__spec {
    padding: 1rem 0.75rem;
  }

  .product-launch-hero__dialog-content {
    padding: 28px 18px 20px;
  }
}
