#index-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  touch-action: none;
  user-select: none;
  color: rgba(var(--rgb-black), 0.02);
}

.page-index {

  .headline {
    padding: 1.4rem 1rem;

    header {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
      justify-content: center;
      text-align: center;
      max-width: 68rem;
      margin: 0 auto;
      font-weight: 500;
    }
    h1 {
      font-size: 3.5rem;
      font-weight: 900;
      text-align: center;
      line-height: 0.9;
      letter-spacing: -0.02em;
    }
    @media (min-width: 58rem) {
      padding: 3rem 2rem;

      h1 { font-size: 5rem; }
    }

    @media (min-width: 64rem) {
      h1 { font-size: 6rem; }
    }
  }

  h2 {
    color: inherit;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.3em;
    line-height: 1.2;
    font-weight: 800;
  }

  section {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    font-size: 1.1rem;

    h2 {
      font-size: 2em;
    }
    h3 {
      margin-bottom: 0.5rem;
    }
    p {
      margin-bottom: 1.5em;
    }
    img {
      display: block;
      margin: 0 auto;
      max-width: 150px;
    }

    @media (min-width: 64rem) {
      font-size: 1.3rem;

      img {
        max-width: 300px;
      }
    }
  }

  .home__code {
    max-width: 90rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2em;
    padding-left: 0;
    padding-right: 0;

    p {
      padding-left: 2rem;
      padding-right: 2rem;
    }

    @media (min-width: 58rem) {
      gap: 1em;
      flex-direction: row;
      justify-content: stretch;
    }

    & > * {
      width: 100%;
    }
    & > * > :first-child {
      font-size: 1.1em;
      text-align: center;
    }
    .tabbed-set {
      box-shadow: 0 0 20px 0 rgba(var(--rgb-black), 0.2);
      border-radius: 0.5rem;
    }
    .tabbed-block {
      padding-top: 0;
    }
    pre {
      height: 510px;
    }
  }

  .home__actions {
    margin-top: 0;
    margin-bottom: 0;

    p {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2em;
    }

    .btn {
      font-size: 1em;
      padding: 0.9em 2.5em;
      border-radius: 1rem;

      @media (max-width: 36rem) {
        width: 100%;
      }
    }
  }

  .home__better {
    max-width: 61rem;
  }

  .page__content {
    max-width: 100%;
    padding: 0 0 4rem
  };
  .footer {
    display: flex;
    padding: 4rem 2rem;
    border-top: 1px solid var(--color-base-darker);
    width: 100%;
    background: var(--color-base);

    & > div {
      align-items: center;
      display: flex;
      flex: 1;
      flex-direction: column;
      gap: 1rem;
      font-size: 1rem;
      letter-spacing: -0.01em;
      color: var(--color-gray-light);
      max-width: 100%;
    }
  }
}

*::selection {
  color: white;
}

.preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}
.text-green {
  color: #10b981;
}
.text-gray-600 {
  color: #4b5563;
}
.text-red-500 {
  color: #ef4444;
}


.demo {
  * {
    border: 0 solid #e5e7eb;
  }
  h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  a {
    cursor: pointer;
  }
  p {
    margin: 0 0 1.25em;
  }

  .shadow {
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
  }
  .p-4 {
      padding: 1rem;
  }
  .bg-white {
    background-color: rgb(255 255 255 / 1);
  }
  .border {
    border-width: 1px;
  }
  .rounded {
    border-radius: .25rem;
  }
  .m-0 {
    margin: 0;
  }
  .mb-3 {
    margin-bottom: .75rem;
  }
  .text-gray-800 {
    color: rgb(31 41 55);
  }
  .text-teal-600 {
    color: rgb(13 148 136);
  }
}

.icon-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.icon-badge-wrapper {
  position: relative;
  display: inline-flex;
}
.icon-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(255,0,0,0.8);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
}
