/* Figma "Frame 7": the dark product block. Its grey gradient shows only as
   the 4px strip above the sky. */
.product {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 445fr 627fr;
  margin-top: 32px;
  background: linear-gradient(#747474, #696969);
}

/* Figma "Frame 9". The whole panel, text included, runs through the
   3-level threshold, which is why #303030 renders black and 70% white grey. */
.intro-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--stack);
  min-width: 0;
  padding: 32px 24px 63px 58px;
  overflow: hidden;
  background: var(--panel);
  color: var(--white);
  filter: url(#sro-threshold);
}

.intro-panel > :not(.intro-panel__bg) {
  position: relative;
  max-width: 330px;
}

.intro-panel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro {
  font-size: 20px;
}

/* Takes the place of the Figma "Group 4" monitor: one real decision, in the
   shape the API sends it. Pure black and white survive the threshold filter. */
.decision {
  width: 323px;
  max-width: 100%;
  margin-left: 3px;
}

.decision__body {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--white);
  background: var(--ink);
  color: var(--white);
  font: 14px / 1.5 var(--mono);
}

/* On black, so the threshold filter leaves it readable over the forest. */
.decision__caption {
  padding: 8px 16px 10px;
  border: 1px solid var(--white);
  border-top: 0;
  background: var(--ink);
  font: 13px / var(--lh-mono) var(--mono);
}

.decision__cta {
  justify-content: center;
  width: 100%;
  height: 32px;
  margin-top: 16px;
  font-family: var(--button-face);
  line-height: 24px;
}

/* "Frame 16" */
.stats {
  display: flex;
  justify-content: space-between;
  width: 331px;
  margin-left: -1px;
}

.stat {
  display: flex;
  flex-direction: column;
  width: 81px;
  text-align: center;
}

.stat__value {
  font-size: 32px;
  font-weight: 600;
}

.stat__label {
  font-size: 13px;
  opacity: 0.7;
}

.feature h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.feature--tight h2 { line-height: 1; }

/* The design separates heading and body with an empty 12px line. */
.feature p {
  margin-top: calc(12px * var(--lh-sans));
  font-size: 20px;
}

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .intro-panel { padding: 32px var(--gutter) 48px; }
  .intro-panel > :not(.intro-panel__bg) { max-width: 420px; }
}

@media (max-width: 600px) {
  .stats { width: 100%; margin-left: 0; }
  .feature h2 { font-size: 28px; }
}
