.flownote-nowrap {
  white-space: nowrap;
}

/* Hero */

.flownote-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flownote-pill {
  padding: 1px 10px;
  border: 1px solid var(--brand-blue-300);
  border-radius: 999px;
  background: var(--brand-blue-200);
  font-size: 13px;
  line-height: 20px;
}

.flownote .landing-trust__logos li:nth-child(1) img {
  height: 56px;
}

.flownote .landing-trust__logos li:nth-child(2) img {
  height: 44px;
}

.flownote .landing-trust__logos li:nth-child(3) img {
  height: 26px;
}

.flownote .landing-trust__logos li:nth-child(4) img,
.flownote .landing-trust__logos li:nth-child(5) img {
  height: 50px;
}

/* Patientenreise */

.flownote-journey-section {
  background: linear-gradient(180deg, var(--brand-blue-200) 0, #fff 240px, #fff 100%);
}

.flownote-journey-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.flownote-heading-center {
  align-items: center;
  max-width: 780px;
  margin-bottom: 0;
}

.flownote-journey {
  --gap: 16px;
  --column: calc((100% - 4 * var(--gap)) / 5);

  position: relative;
  width: 100%;
  padding-top: 40px;
}

.flownote-journey-band {
  position: absolute;
  top: 14px;
  right: calc(var(--column) + var(--gap) / 2);
  bottom: -24px;
  left: calc(var(--column) + var(--gap) / 2);
  border-radius: 20px;
  background: var(--brand-blue-200);
}

.flownote-journey-line {
  position: absolute;
  top: 61px;
}

.flownote-journey-line--dashed {
  right: calc(var(--column) / 2);
  left: calc(var(--column) / 2);
  border-top: 2px dashed #9aa6ff;
}

.flownote-journey-line--solid {
  right: calc(var(--column) * 1.5 + var(--gap));
  left: calc(var(--column) * 1.5 + var(--gap));
  height: 2px;
  background: #9aa6ff;
}

.flownote-journey-places {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 var(--gap);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;

  span {
    justify-self: center;
    padding: 3px 12px;
    border-radius: 999px;
  }

  span:last-child {
    grid-column: 5;
  }
}

.flownote-place-home {
  border: 1px solid var(--brand-blue-300);
  background: #fff;
  color: var(--brand-blue-600);
}

.flownote-place-clinic {
  grid-column: 2 / 5;
  border: 1px solid var(--brand-blue-600);
  background: var(--brand-blue-600);
  color: #fff;
}

.flownote-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 var(--gap);
}

/* Subgrid keeps the label, title, text and chips of all five stages on the same lines */
.flownote-stage {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 0 4px;
}

.flownote-stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue-600);
  color: #fff;
  box-shadow: 0 0 0 6px var(--brand-blue-200);

  svg {
    stroke-width: 1.7;
  }
}

.flownote-stage--home .flownote-stage-icon {
  border: 2px solid var(--brand-blue-600);
  background: #fff;
  color: var(--brand-blue-600);
  box-shadow: 0 0 0 6px #fff;
}

.flownote-stage-label {
  margin-top: 10px;
  color: var(--brand-blue-600);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.flownote-stage-text {
  font-size: 15px;
  line-height: 22px;
}

.flownote-chips {
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;

  li,
  a {
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
  }

  li {
    padding: 3px 10px;
    background: var(--brand-blue-200);
    color: var(--brand-blue-600);
  }

  li:has(a) {
    padding: 0;
  }

  a {
    display: block;
    padding: 3px 10px;
    background: var(--brand-blue-600);
    color: #fff;
    text-decoration: none;

    &:hover {
      background: var(--brand-blue-800);
    }
  }
}

.flownote-stage:not(.flownote-stage--home) .flownote-chips li:not(:has(a)) {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--brand-blue-300);
}

.flownote-cta-row {
  justify-content: center;
}

@media (max-width: 900px) {
  .flownote-journey {
    padding-top: 0;
  }

  .flownote-stages {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .flownote-journey-band,
  .flownote-journey-line,
  .flownote-journey-places {
    display: none;
  }
}

/* Entlassberichte and KI-Assistent: text beside a product mockup */

.flownote-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.flownote-split-text {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 32px;
  min-width: 0;

  .landing-heading {
    margin-bottom: 0;
  }
}

.flownote-discharge {
  padding: 88px 0;
  background:
    radial-gradient(
      ellipse 55% 75% at 108% 50%,
      rgb(192 204 255 / 50%) 0%,
      rgb(192 204 255 / 0%) 70%
    ),
    #fff;
}

.flownote-discharge-figure {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 560px;
}

.flownote-mock-flow {
  display: grid;
  grid-template-columns: 208px 32px minmax(0, 1fr);
  align-items: center;
  color: var(--grey-900);
}

.flownote-mock-sources {
  padding: 12px 10px;
  border: 1px solid #e4e7f7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px 0 rgb(33 0 113 / 10%);
}

.flownote-mock-sources-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--grey-150);
}

.flownote-mock-sources-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.flownote-mock-sources-count {
  color: var(--brand-blue-600);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.flownote-mock-sources-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 16px;

  li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    white-space: nowrap;

    &::before {
      content: '';
      flex: 0 0 14px;
      height: 14px;
      background: url('../images/flownote-check.svg') no-repeat center / contain;
    }
  }
}

.flownote-mock-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;

  &::before {
    content: '';
    position: absolute;
    top: 13px;
    right: 0;
    left: 0;
    border-top: 2px dashed #9aa6ff;
  }
}

.flownote-mock-spark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-blue-600);
  color: #fff;
  box-shadow: 0 0 0 4px #fff;
}

.flownote-mock-report {
  overflow: hidden;
  border: 1px solid #e4e7f7;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 20px 50px 0 rgb(33 0 113 / 14%),
    0 2px 6px 0 rgb(0 0 0 / 4%);
}

.flownote-mock-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--grey-150);
}

.flownote-mock-report-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.flownote-mock-report-meta {
  display: block;
  margin-top: 2px;
  color: var(--grey-500);
  font-size: 11px;
  line-height: 16px;
}

.flownote-mock-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-blue-200);
  color: var(--brand-blue-600);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.flownote-mock-report-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 16px;
  color: #3d3c4f;
  font-size: 11.5px;
  line-height: 18px;
}

.flownote-mock-report-h {
  color: var(--grey-900);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.flownote-mock-cite {
  padding: 0 5px;
  border-radius: 4px;
  background: var(--brand-blue-200);
  color: var(--brand-blue-600);
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.flownote-mock-report-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--grey-150);
  background: #fafbfe;
}

.flownote-mock-report-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grey-500);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;

  svg {
    color: var(--brand-blue-600);
    stroke-width: 1.6;
  }
}

.flownote-mock-button {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--brand-blue-600);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .flownote-mock-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .flownote-mock-link {
    justify-self: center;
    width: 28px;
    height: 32px;

    &::before {
      inset: 0 auto 0 13px;
      border-top: 0;
      border-left: 2px dashed #9aa6ff;
    }
  }
}

/* KI-Assistent */

.flownote-assistant-figure {
  flex: 1 1 400px;
  min-width: 0;
  max-width: 480px;
}

.flownote-mock-stack {
  position: relative;
  padding: 0 0 92px 28px;
  color: var(--grey-900);
}

.flownote-mock-doc {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 30px 80px 0 rgb(0 0 0 / 35%),
    0 0 0 1px rgb(255 255 255 / 10%);

  &::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 48px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, #fff 90%);
  }
}

.flownote-mock-doc-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.flownote-mock-doc-meta {
  margin-top: 2px;
  color: var(--grey-500);
  font-size: 12px;
  line-height: 18px;
}

.flownote-mock-doc-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 18px;
}

.flownote-mock-doc-h {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}

.flownote-mock-doc-p {
  color: #3d3c4f;
}

.flownote-mock-doc-highlight {
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--brand-blue-200);
  box-shadow: inset 0 0 0 1px var(--brand-blue-300);
  color: var(--brand-blue-800);

  ul {
    margin-top: 2px;
    padding-left: 16px;
    list-style: disc;
  }
}

.flownote-mock-ai {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 270px;
  max-width: 80%;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  line-height: 19px;
  box-shadow:
    0 20px 50px 0 rgb(12 12 33 / 35%),
    0 0 0 1px #e4e7f7;
}

.flownote-mock-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue-800);
  font-family: var(--font-heading);
  font-weight: 600;

  svg {
    stroke-width: 1.7;
  }
}

.flownote-mock-ai-prompt {
  align-self: flex-end;
  max-width: 88%;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--brand-blue-200);
  color: var(--brand-blue-800);
}

.flownote-mock-ai-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;

  .flownote-mock-button {
    font-size: 12px;
    line-height: 18px;
  }
}

.flownote-mock-ai-discard {
  color: var(--brand-blue-600);
}
