.root {
  position: relative;
  display: flex;
  width: 100%;
  height: calc(100vh - var(--navigation-height));
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.backgroundImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.backgroundImage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  padding: var(--spacing-24);
  max-width: var(--content-max-width);
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: auto 1fr auto auto;
  row-gap: var(--spacing-52);
}

.leftContent {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: var(--spacing-80);
  grid-column-start: 1;
  grid-column-end: 3;
  grid-column-end: -1;
}

.content {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.arrowWrapper {
  grid-row-start: 4;
}

.arrow {
  color: white;
  margin-top: var(--spacing-4);
  display: flex;
  align-items: center;

  svg {
    width: 1rem;
    height: 1rem;
  }
}

.rightContent {
  grid-column-start: 2;
  grid-column-end: -1;
  grid-row-start: 4;
  gap: var(--spacing-16);
  padding-bottom: var(--spacing-80);
}

.subtitleWrapper {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 3;
  width: 100%;
}

.subtitle {
  width: 100%;
  margin-left: auto;
  p {
    width: 100%;
    font-family: var(--font-decorative);
    color: var(--color-white);
    letter-spacing: var(--letter-spacing-xxl);
    text-transform: uppercase;
  }
}

.title, .scrollableLabels {
  p, li span {
    color: var(--color-white);
    line-height: var(--line-height-xxs);
    letter-spacing: var(--letter-spacing-negative-xl);
  }
  li {
    padding-block: var(--spacing-8);
  }
}

.scrollableLabelsWrapper {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.scrollableLabels {
  li span {
    color: var(--color-solar-200);
  }
}

.title .scrollableLabels {
  color: var(--color-solar-200);
}

.descriptionWrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-20);
}

.buttonWrapper {
  width: max-content;
  align-self: flex-start;
}

.description {
  color: white;
  opacity: 0.9;
  line-height: var(--line-height-xl);
  font-weight: var(--font-weight-light);
}

.hsaEligible {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-8);
}

.checkIcon {
  color: var(--color-white);
  width: 20px;
  height: 20px;
}

.hsaText {
  color: white;
  opacity: 0.9;
  font-weight: var(--font-weight-light);
}

/* Tablet styles */
@media (width <= 980px) {
  .container {
    padding: var(--spacing-64) var(--spacing-18);
  }

  .descriptionWrapper {
    margin-top: 0;
  }
}

/* Desktop styles */
@media (width > 980px) {
  .container {
    padding: var(--spacing-120) var(--spacing-80);
    grid-template-columns: 3fr auto 1fr;
    grid-template-rows: 1fr repeat(3, max-content) 1fr;
    column-gap: var(--spacing-28);
    row-gap: 0;
    min-height: 100vh;
  }

  .subtitleWrapper {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
  }

  .leftContent {
    grid-row-start: 2;
    grid-row-end: 5;
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0;
  }

  .arrowWrapper {
    grid-column-start: 2;
    grid-row-start: 3;
  }

  .rightContent {
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 3;
    padding-bottom: 0;
  }

  .descriptionWrapper {
    max-width: 100%;
  }
}
