.teams-hero--with-demo {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 36px;
}

.teams-hero--with-demo .page-hero .teams-demo-price {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 15px;
}

.teams-demo {
  margin: 0;
  min-width: 0;
}

.teams-demo h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  margin: 0 0 6px;
}

.teams-demo p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.teams-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #141b2b;
}

.teams-demo video:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.teams-hero--with-demo .teams-plan {
  grid-column: 1 / -1;
  justify-self: stretch;
  max-width: none;
}

@media (min-width: 900px) {
  .teams-hero--with-demo .teams-plan {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.15fr) minmax(180px, 1.15fr);
    grid-template-rows: repeat(3, auto);
    column-gap: clamp(20px, 3vw, 44px);
    align-items: center;
  }

  .teams-hero--with-demo .teams-plan h2,
  .teams-hero--with-demo .teams-plan .price,
  .teams-hero--with-demo .teams-plan .plan-intro {
    grid-column: 1;
  }

  .teams-hero--with-demo .teams-plan ul {
    grid-area: 1 / 2 / span 3;
    margin: 0;
  }

  .teams-hero--with-demo .teams-plan .button {
    grid-area: 2 / 3;
    justify-self: start;
    text-align: center;
  }

  .teams-hero--with-demo .teams-plan .small-note {
    grid-area: 3 / 3;
    margin-top: 8px;
    align-self: start;
  }
}

@media (max-width: 760px) {
  .teams-hero--with-demo {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
}

.teams-demo-transcript {
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.teams-demo-transcript summary {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.teams-demo .teams-demo-transcript p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0 0;
}
.teams-demo-transcript summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* Keep the Icelandic headline's existing long word inside narrow phone screens. */
@media (max-width: 360px) {
  html[lang="is"] .teams-hero .page-hero h1 {
    font-size: clamp(40px, 13vw, 48px);
  }
}
