.irena {
  --rehacom-green: #98d161;
  --rehacom-green-light: #ecf4e3;
  --rehacom-green-dark: #1c3800;
}

.irena-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.irena-section {
  padding: 80px 0;
}

.irena-section-tinted {
  background: var(--brand-blue-200);
}

.irena-section-fade {
  background: linear-gradient(180deg, #fff 0%, #fff 70%, var(--brand-blue-200) 100%);
}

.irena-section-rise {
  background: linear-gradient(180deg, #fff 0%, var(--brand-blue-200) 35%);
}

.irena-section-navy {
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgb(35 66 204 / 70%), transparent),
    var(--brand-blue-800);
  color: #fff;

  h2,
  h3 {
    color: #fff;
  }

  .landing__eyebrow,
  .irena-intro,
  .irena-features p {
    color: var(--brand-blue-300);
  }

  .irena-features strong {
    color: #fff;
  }

  a:focus-visible {
    outline-color: #fff;
  }
}

.irena .landing__eyebrow {
  margin-bottom: 16px;
}

.irena-h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
  text-wrap: balance;
}

.irena-h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  text-wrap: balance;
}

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

.irena-lead {
  max-width: 660px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 28px;
}

.irena-intro {
  max-width: 760px;
  margin-bottom: 40px;
  font-size: 18px;
  line-height: 28px;
}

.irena .irena-link-light {
  color: #fff;
  font-family: stratos, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.irena-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--flow-shadow-100);
}

.irena-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-blue-600);

  svg {
    width: 24px;
    height: 24px;
  }
}

.irena-section-navy .irena-icon {
  background: var(--brand-blue-600);
  color: #fff;
}

.irena .irena-icon-plain {
  width: 24px;
  height: 24px;
  background: none;
  color: var(--brand-blue-600);
}

.irena-checklist li {
  position: relative;
  padding-left: 26px;
}

.irena-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: url('../images/irena-check.svg') no-repeat center / contain;
}

.irena-tag,
.irena-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue-600);
  font-family: stratos, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.irena-tag {
  padding: 4px 10px;
  font-size: 13px;
  line-height: 20px;
}

.irena-pill {
  background: var(--brand-blue-200);
}

.irena .irena-pill-ok {
  background: var(--green-200);
  color: var(--green-500);
}

.irena-pill-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  svg {
    stroke-width: 3;
  }
}

.irena .irena-pill-warn {
  background: var(--yellow-200);
  color: var(--ext-orange-550);
}

.irena-progress {
  display: block;
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(
      to right,
      var(--brand-blue-600) var(--irena-progress),
      transparent var(--irena-progress)
    ),
    var(--brand-blue-200);
}

.irena-progress-3 {
  --irena-progress: 13%;
}

.irena-progress-7 {
  --irena-progress: 29%;
}

.irena-progress-14 {
  --irena-progress: 58%;
}

.irena-progress-21 {
  --irena-progress: 88%;
}

/* Hero */

.irena-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 72px;
  background: linear-gradient(180deg, #fff 0%, #fff 45%, var(--brand-blue-200) 85%, #fff 100%);

  &::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -240px;
    width: 760px;
    height: 620px;
    border-radius: 50%;
    background: var(--brand-blue-300);
    filter: blur(120px);
    opacity: 0.9;
    pointer-events: none;
  }

  .irena-wrap {
    position: relative;
  }

  .landing__eyebrow {
    margin-bottom: 24px;
  }
}

.irena-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: center;
  padding-bottom: 48px;
}

.irena-phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  margin: 0;
  justify-self: end;

  img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.irena-phone {
  min-width: 0;
  box-sizing: border-box;
  background: var(--grey-900);
}

.irena-phone-back {
  flex: 0 0 47%;
  padding: 6px;
  border-radius: 30px;
  box-shadow: var(--flow-shadow-300);

  img {
    border-radius: 24px;
  }
}

.irena-phone-front {
  position: relative;
  flex: 0 0 55%;
  margin: 72px 0 0 -2%;
  padding: 7px;
  border-radius: 34px;
  box-shadow: var(--flow-shadow-500);

  img {
    border-radius: 27px;
  }
}

.irena-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  width: fit-content;
  max-width: 560px;
  box-sizing: border-box;
  margin-top: 24px;
  font-size: 14px;
  line-height: 24px;

  .irena-checklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

.irena .irena-badges-title {
  margin-bottom: 6px;
  color: var(--grey-500);
  font-family: stratos, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.irena .landing-trust__logos {
  li:nth-child(1) img {
    width: 110px;
  }

  li:nth-child(2) img {
    width: 172px;
  }

  li:nth-child(3) img {
    width: 192px;
  }

  li:nth-child(4) img {
    width: 140px;
  }

  li:nth-child(5) img {
    width: 124px;
  }
}

.irena-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  margin: 48px auto 0;
  text-align: center;

  blockquote {
    border: 0;
    color: var(--brand-blue-800);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
  }

  figcaption {
    display: flex;
    flex-direction: column;
    color: var(--grey-500);
    font-size: 14px;
    line-height: 20px;
  }

  strong {
    color: var(--grey-900);
    font-size: 16px;
    line-height: 24px;
  }
}

.irena-quote-mark {
  color: var(--brand-blue-600);
}

/* IRENA overview */

.irena-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.irena-fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.irena-fact-title {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  line-height: 26px;
}

.irena-fact-title .irena-icon {
  background: var(--brand-blue-200);
}

.irena-units {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-300);
  font-size: 14px;
  line-height: 20px;
}

.irena-units-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--brand-blue-800);
  font-size: 15px;
  line-height: 24px;
}

.irena-units-total strong {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-blue-200);
}

.irena-units-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px 24px;
}

.irena-units-phase {
  display: flex;
  flex: 0 0 150px;
  flex-direction: column;
  gap: 2px;

  strong {
    color: var(--brand-blue-600);
  }
}

.irena-units-meta {
  color: var(--grey-500);
  font-size: 13px;
}

.irena-units-timeline {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.irena-units-bars {
  --irena-unit-gap: 4px;

  height: 16px;
  background: linear-gradient(90deg, var(--brand-blue-300), var(--brand-blue-600));
  mask: repeating-linear-gradient(
    90deg,
    #000 0 calc((100% - 23 * var(--irena-unit-gap)) / 24),
    transparent 0 calc((100% + var(--irena-unit-gap)) / 24)
  );
}

.irena-units-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;

  li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  svg {
    flex: none;
    color: var(--brand-blue-600);
  }
}

.irena-units-swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-blue-300), var(--brand-blue-600));
}

.irena-disclaimer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 40px;
}

.irena-disclaimer {
  flex: 1 1 560px;
  min-width: 0;
  color: var(--grey-500);
  font-size: 12px;
  line-height: 16px;
}

.irena-disclaimer-row .landing__button {
  flex: none;
}

/* Platform */

.irena-platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 426fr) minmax(0, 590fr);
  gap: 56px;
  align-items: center;
}

.irena-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;

  li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  li > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.irena-feature-title {
  font-size: 20px;
  line-height: 26px;
}

.irena-platform-figure {
  position: relative;
  z-index: 0;
}

.irena-platform-image {
  display: block;
  width: 100%;
  height: auto;
}

.irena-kis-chip {
  position: absolute;
  top: -4%;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 14px 6px 10px;
  border: 2px solid var(--brand-blue-600);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--flow-shadow-300);
  color: var(--grey-500);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;

  strong {
    display: block;
    color: var(--brand-blue-800);
    font-size: 14px;
    line-height: 20px;
  }
}

.irena-patients {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 100%;
  box-sizing: border-box;
  margin: -30% 0 0 auto;
  padding: 20px;
  box-shadow: var(--flow-shadow-500);
  font-size: 14px;
  line-height: 20px;

  li {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 6px 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--grey-300);
  }

  li:last-child {
    padding-bottom: 0;
  }

  .irena-progress {
    grid-column: 2 / span 2;
  }
}

.irena-patients-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  color: var(--grey-900);
  font-family: stratos, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.irena-avatar {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blue-200);
  color: var(--brand-blue-600);
  font-family: stratos, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.irena-patient-name {
  font-family: stratos, sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.irena-patient-unit {
  color: var(--grey-500);
  text-align: right;
  white-space: nowrap;
}

.irena-patients .irena-pill {
  grid-row: span 2;
}

/* RehaCom */

.irena-rehacom-grid {
  display: grid;
  grid-template-columns: minmax(0, 569fr) minmax(0, 455fr);
  gap: 48px;
  align-items: center;

  .irena-features {
    margin: 32px 0;
  }

  .irena-intro {
    margin-bottom: 0;
  }
}

.irena-rehacom-figure {
  order: -1;
}

.irena-rehacom-image {
  display: block;
  width: 100%;
  height: auto;
}

.irena-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.irena-integration {
  display: grid;
  grid-template-columns: minmax(0, 481fr) auto minmax(0, 421fr);
  align-items: stretch;
  margin-top: 56px;
}

.irena-integration-flowzone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 24px 24px;
  box-shadow: var(--flow-shadow-200);
  color: var(--grey-900);

  .irena-kis-chip-top {
    top: -26px;
    right: 16px;
  }
}

.irena-integration-logo {
  display: block;
  align-self: flex-start;
  width: auto;
  height: 20px;
}

.irena-integration-sub {
  margin-bottom: -10px;
  color: var(--grey-500);
  font-family: stratos, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.irena .irena-integration-title {
  color: var(--brand-blue-800);
  font-family: stratos, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
}

.irena-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  li {
    flex: 1 1 110px;
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    background: var(--brand-blue-200);
    font-size: 14px;
    line-height: 20px;
  }

  span {
    display: block;
    margin-bottom: 2px;
    color: var(--brand-blue-600);
    font-family: stratos, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
  }

  .irena-phase-active {
    background: var(--brand-blue-600);
    color: #fff;

    span {
      color: var(--brand-blue-300);
    }
  }
}

.irena-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  li {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand-blue-200);
    color: var(--brand-blue-600);
    font-family: stratos, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
  }
}

.irena .irena-chips-green li {
  background: var(--rehacom-green-light);
  color: var(--rehacom-green-dark);
}

.irena-integration-link {
  display: flex;
  align-items: center;
  align-self: center;
  padding: 16px 0;
  color: #fff;
  font-family: stratos, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;

  &::before,
  &::after {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--brand-blue-300);
  }

  span {
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--brand-blue-600);
  }
}

.irena-integration-rehacom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background:
    linear-gradient(
      180deg,
      rgb(152 209 97 / 20%) 0%,
      rgb(152 209 97 / 60%) 45%,
      var(--rehacom-green) 100%
    ),
    #fff;
  box-shadow: var(--flow-shadow-200);
  color: var(--rehacom-green-dark);
}

.irena-integration-rehacom-name {
  color: var(--rehacom-green-dark);
  font-family: stratos, sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
}

.irena .irena-integration-rehacom .irena-integration-title {
  color: var(--rehacom-green-dark);
  font-size: 15px;
  line-height: 24px;
}

/* Steps */

.irena-journey {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.irena-journey-phases {
  display: flex;
  gap: 4px;
  font-family: stratos, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #fff;

  span {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 14px;
    background: var(--brand-blue-800);
    border-radius: 999px 0 0 999px;
  }

  span + span {
    flex-grow: 3;
    background: linear-gradient(
      90deg,
      var(--brand-blue-600) 0%,
      var(--brand-blue-600) 55%,
      var(--brand-blue-300) 100%
    );
    border-radius: 0 999px 999px 0;
  }
}

.irena-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}

.irena-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.irena-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.irena-step-line {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 1px;
  background: var(--brand-blue-600);
}

.irena-step:first-child .irena-step-line {
  background: linear-gradient(90deg, var(--brand-blue-800) 0%, var(--brand-blue-600) 100%);
}

.irena .irena-step-line-dashed {
  height: 0;
  border-top: 2px dashed var(--brand-blue-600);
  background: none;
}

.irena-step-arrow {
  flex: 0 0 10px;
  margin-left: -6px;
  color: var(--brand-blue-600);
  stroke-width: 2;
}

.irena-step-number {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--brand-blue-600);
  color: #fff;
  font-family: stratos, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 16px;
}

.irena-step:first-child .irena-step-number {
  background: var(--brand-blue-800);
}

.irena-step:nth-child(2) .irena-step-number {
  border: 2px solid var(--brand-blue-600);
  background: #fff;
  color: var(--brand-blue-600);
}

.irena-step-highlight .irena-step-number {
  box-shadow: 0 0 0 6px rgb(35 66 204 / 18%);
}

.irena-step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 22px;
}

.irena-step-when {
  color: var(--brand-blue-600);
  font-family: stratos, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.irena .irena-step-title {
  font-size: 20px;
  line-height: 26px;
}

.irena-step-visual {
  margin-top: auto;
  padding-top: 14px;
}

.irena-step-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--grey-200);
  font-size: 13px;
  line-height: 20px;
}

.irena-step-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.irena-check-round {
  display: flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-200);
  color: var(--green-500);

  svg {
    stroke-width: 3;
  }
}

.irena-step-doc {
  display: flex;
  align-items: center;
  gap: 10px;

  > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  strong {
    font-size: 13px;
    line-height: 18px;
  }

  strong + span {
    color: var(--grey-500);
    font-size: 12px;
    line-height: 16px;
  }
}

.irena-step-doc-icon {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-blue-600);
}

.irena-step:nth-child(2) .irena-step-box {
  gap: 8px;

  .irena-pill {
    align-self: flex-start;
    gap: 6px;
    line-height: 18px;
  }
}

.irena-step-patient {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;

  span {
    color: var(--grey-500);
  }
}

.irena-step-message {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
  color: var(--brand-blue-600);
  font-family: stratos, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;

  svg {
    stroke-width: 2;
  }
}

.irena .irena-step-ready {
  align-self: flex-start;
  margin-top: 2px;
  line-height: 18px;
}

.irena-billing {
  display: flex;
  flex-direction: column;
  gap: 6px;

  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .irena-pill {
    padding: 0 8px;
    line-height: 20px;
  }
}

.irena-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  color: var(--brand-blue-800);
  font-size: 18px;
  line-height: 28px;

  .landing__button {
    flex: none;
  }
}

.irena-banner-text {
  display: flex;
  flex: 1 1 420px;
  align-items: center;
  gap: 16px;
  min-width: 0;

  svg {
    flex: 0 0 32px;
    color: var(--brand-blue-600);
  }
}

.irena-statement {
  margin-top: 40px;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--brand-blue-600);
  color: var(--brand-blue-800);
  font-family: stratos, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
}

/* Contact */

#kontakt .irena-intro {
  max-width: 640px;
  margin-bottom: 32px;

  a {
    font-family: stratos, sans-serif;
    font-weight: 600;
  }
}

.irena-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.irena-contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;

  > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .irena-icon {
    background: var(--brand-blue-200);
  }
}

/* Responsive */

@media screen and (max-width: 991px) {
  .irena-hero-grid,
  .irena-platform-grid,
  .irena-rehacom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .irena-phones {
    justify-self: center;
  }

  .irena-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .irena-rehacom-figure {
    order: 0;
  }

  .irena-integration {
    grid-template-columns: 1fr;
  }

  .irena-integration-link {
    flex-direction: column;
    justify-self: center;

    &::before,
    &::after {
      width: 2px;
      height: 20px;
    }
  }

  .irena-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  .irena-facts,
  .irena-contact-grid,
  .irena-steps {
    grid-template-columns: 1fr;
  }

  .irena-patients li {
    grid-template-columns: 36px 1fr auto;
  }

  .irena-patients .irena-avatar {
    grid-row: span 3;
  }

  .irena-patients .irena-pill {
    grid-row: auto;
    grid-column: 2 / span 2;
    justify-self: start;
  }
}
