@use '../base/token';
@use '../abstract';

.cds-landing-page {
  $this: &;
  display: grid;
  padding-inline: 16px;

  &__inner {
    display: inline-block;
    margin: 64px auto;
  }

  &__header {
    text-align: center;
  }

  &__icon {
    margin-bottom: 16px;
  }

  &__title {
    margin-bottom: 16px;
    font-weight: abstract.font-weight-to-number(token.$font-weights-commerce-sans-2);
    font-size: token.$font-size-6;
    line-height: token.$line-heights-4 + px;
  }

  &__sub-title {
    color: var(--gray-500);
  }

  &__header > *:last-child {
    margin-bottom: 0;
  }

  &__footer {
    margin-top: 36px;

    & > *:last-child {
      margin-bottom: 0;
    }

    .cds-btn {
      width: 100%;
      margin-bottom: 12px;
    }
  }

  @include abstract.media-bp-up('md') {
    &__inner {
      margin-block: 240px;
    }

    &__footer {
      display: flex;
      justify-content: center;
      gap: 12px;

      .cds-btn {
        width: auto;
      }
    }
  }

  // ===================================
  // size
  // ===================================
  &--lg {
    #{$this}__title {
      font-size: token.$font-size-7;
      line-height: token.$line-heights-3 + px;
    }

    #{$this}__sub-title {
      font-size: token.$font-size-4;
    }
  }
}
