.ho-brand {
  font-size: inherit;
  font-weight: bold;
  text-shadow:
    1px 1px 0 var(--color-color-7),
    -1px -1px 0 var(--color-color-7),
    -1px 1px 0 var(--color-color-7),
    1px -1px 0 var(--color-color-7);
}

strong {
  font-weight: bold;
  /* background: var(--color-color-3);
  color: var(--color-neutral-3);
  border-right: 10px solid var(--color-color-3);
  border-left: 10px solid var(--color-color-3); */
}

img.dark {
  display: none;
}

img.light {
  display: initial;
}

@media (prefers-color-scheme: dark) {
  img.light {
    display: none;
  }

  img.dark {
    display: initial;
  }
}

.hero {
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-1);
  background: var(--color-neutral-10);
  font-family: var(--font-family-1);
  padding: 7em 0 2em 0;
  gap: 1em;

  > h1 {
    font-family: var(--font-family-1);
    font-size: var(--font-size-1-7);
    max-width: 20ch;
    width: 102%;
  }

  > p {
    font-family: var(--font-family-1);
    max-width: 60ch;
    width: 100%;
  }
}

/* .features {
  background: var(--color-neutral-8);
  border: 1px solid var(--color-neutral-6);
  border-radius: 0.5em;
  padding: var(--space-s);
  margin: 0 0 var(--space-l) 0;
  gap: var(--space-s);

  .slide {
    width: 100%;

    h3 {
      font-family: var(--font-family-1);
      padding: var(--space-2xs) 0;
      width: 60ch;
      max-width: 80%;
      font-size: var(--font-size-1-2);
      color: var(--color-neutral-1);
      line-height: 1.2;
      font-weight: normal;
    }
  }
} */

/* .features {
  background: var(--color-neutral-10);
  border-top: 1px solid var(--color-neutral-7);
} */

.ho-from-to {
  padding: 2em 0 1em 0;
  background: var(--color-neutral-10);

  > div {
    display: flex;
    flex-direction: column;
    gap: 2em;

    .small-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 3em;
      align-items: center;

      .text {
        display: flex;
        flex-direction: column;
        gap: 1em;
        flex: 1;
        min-width: 30ch;

        h4 {
          width: 10rem;
          z-index: 1;
          color: inherit;
          background: var(--color-neutral-9);
          text-align: center;
          padding: var(--space-3xs);
          border-radius: var(--border-radius);
          text-transform: uppercase;
        }

        &.to {
          h4 {
            background: var(--color-neutral-1);
            color: var(--color-neutral-10);
          }
        }
      }
    }
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: var(--space-3xl) 0;
  min-height: 50vh;

  .row img {
    max-width: 100%;
    width: 57rem;
    height: auto;
  }

  .row div {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    text-align: left;
    padding: var(--space-s-xl);
    justify-content: center;
    align-items: center;

    &.text {
      align-items: start;
      max-width: 100%;
      width: 57rem;
    }

    p {
      margin: 0.5em 0 0 0;
      font-weight: 200;
      color: var(--color-neutral-2);
    }

    ul {
      margin: 2em 0 0 0;
      line-height: 1.5;
      display: flex;
      flex-direction: column;
      gap: 0.7em;
      color: var(--color-neutral-2);
      padding: 0 0 0 1em;
    }
  }
}

.row div h2 {
  font-family: var(--font-family-1);
}

header {
  position: sticky;
  top: 0;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 2;
}

header {
  div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

footer {
  display: flex;
  justify-content: center;
  background: var(--color-neutral-10);
  /* border-top: 1px solid var(--color-neutral-9); */
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-l) 0;
}

header .logo,
footer .logo {
  height: 4rem;
  display: flex;
  align-items: center;

  > svg {
    height: var(--font-size-1-4);
    color: var(--color-neutral-1);
  }
}

header .logo:hover,
footer .logo:hover {
  text-decoration: none;
}

.subscribe {
  margin: var(--space-m) 0;

  .embeddable-buttondown-form {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    margin: 0;
    background: none;
    gap: 1em;

    > p {
      font-weight: bold;
    }

    .glued-input {
      background: var(--color-neutral-8);
      display: flex;
      align-items: center;
      border-radius: 0.3em;
      font-size: var(--font-size-1-1);
      max-width: 22rem;
      overflow: clip;

      input,
      button {
        margin: 0;
        border: 0;
        background: var(--color-neutral-8);
        accent-color: transparent;

        svg {
          color: var(--color-color-1);
          height: 2rem;
        }
      }

      input:focus {
        outline: none;
      }

      input {
        padding: 0.7rem 0 0.7rem 1.4rem;
        width: fit-content;
        min-width: 15rem;
      }

      button {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        /* padding: 1rem; */
      }

      &:has(input:focus) {
        outline: 1px solid var(--color-color-1);
      }

      &:hover {
        outline: 1px solid var(--color-neutral-7);
      }
    }
  }
}

/* .subscribe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
  padding: var(--space-m) 0;

  p {
    max-width: 40ch;
    color: var(--color-neutral-1);
    font-size: var(--font-size-1-2);
  }

  form.get-notified {
    display: flex;
    flex-direction: row;
    background: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: none;
    gap: var(--space-s);
    padding: 0;
    border-radius: none;

    * {
      margin: unset;
    }

    input[type=email] {
      width: 22ch;
      font-size: var(--font-size-1-0);
    }

    .primary {
      font-size: var(--font-size-1-0);
    }
  }
} */

.bg {
  background: var(--color-neutral-9);
  border-radius: var(--border-radius);
  padding: var(--space-m);
}

.ho-columns {
  padding: 4em 0;
  background: var(--color-neutral-10);

  div.bg {
    > p {
      a {
        text-decoration: underline;
      }
    }

    h2 {
      span {
        text-decoration: line-through;
      }
    }
  }

  > div {
    display: flex;
    flex-direction: column;

    > ul {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      list-style: none;
      gap: 1em;
      margin: 1em auto;

      > li {
        display: flex;
        flex-direction: column;
        gap: 1em;
        min-width: 15rem;
        flex: 1;

        > h5 {
          padding: var(--space-s) var(--space-m);
          background: var(--color-neutral-9);
          border-radius: var(--border-radius);
        }

        > p {
          padding: 0 var(--space-m);
        }
      }
    }

    ul.rows {
      flex-direction: column;
      margin: 1em 0;
      position: relative;

      :has(input[type="radio"]:checked) > div {
        display: flex;
      }

      > li {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        width: 100%;
        gap: var(--space-2xs);
        height: 5cap;

        :has(input[type="radio"]:checked) {
          border-bottom: 1px solid var(--color-neutral-7);
        }

        > label {
          display: flex;
          gap: 1cap;
          padding: 0 0 1.5cap 0;
          min-width: 15rem;
          cursor: pointer;
          border-bottom: 1px solid transparent;

          > span {
            font-size: var(--font-size-1-2);
          }

          > input[type="radio"] {
            display: none;
          }

          > div {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 4cap;
            width: 4cap;
            border: 1px solid var(--color-color-1);
            border-radius: var(--border-radius);
            padding: var(--space-3xs);

            > img {
              width: auto;
              height: 100%;
            }
          }
        }

        > div {
          position: absolute;
          top: 2cap;
          right: 0;
          display: none;
          flex-direction: column;
          gap: 1em;
          min-width: 33rem;
          width: 70%;

          > h5 {
            max-width: 100%;
            text-wrap: wrap;
          }
        }
      }
    }
  }
}

.ho-built-with {
  padding: 4em 0;

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

    > ul {
      display: flex;
      list-style: none;
      gap: 1em;
      margin: 0 0 2em 0;

      > li {
        display: flex;
        gap: 1em;
        flex: 1;

        > a {
          display: flex;
          text-decoration: none;

          > img {
            width: auto;
            height: 3em;
          }

          > div {
            display: flex;
            flex-direction: column;
            justify-content: center;

            span {
              font-size: var(--font-size-1--2);
              color: var(--color-neutral-6);
            }
          }
        }
      }
    }
  }
}

.home-tabs {
  padding: var(--space-l-xl) 0;

  div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-l);

    .radio {
      display: none;
    }

    .tabs {
      background: var(--color-neutral-10);
      padding: var(--space-2xs);
      border-radius: 0.4em;
      border: 1px solid var(--color-neutral-8);
      cursor: pointer;
      display: flex;
      flex-direction: row;
      gap: var(--space-2xs);
      align-items: center;
      flex-wrap: nowrap;
      overflow-x: scroll;
      max-width: 100%;

      .tab {
        cursor: pointer;
        padding: var(--space-2xs) var(--space-s);
        font-size: var(--font-size-1-0);
        display: flex;
        flex-wrap: nowrap;
        color: var(--color-neutral-3);
        border-radius: 0.3em;
        min-width: fit-content;
        text-align: center;

        &:hover {
          background: var(--color-neutral-9);
        }
      }
    }

    .panels {
      /* aspect-ratio: 16/9; */
      width: 100%;
      min-height: 41rem;
      padding: var(--space-m);
      background: var(--color-dark-color-5);
      color: var(--color-light-neutral-9);
      border-radius: 0.3em;
      border: 1px solid var(--color-neutral-8);
      display: flex;
      align-items: center;
      justify-content: center;

      .hol-wrapping-row {
        grid-template-columns: repeat(auto-fit, minmax(28ch, 1fr));
      }

      .panel {
        display: none;
        animation: fadein 0.5s;

        h3 {
          font-weight: bold;
        }

        section {
          display: flex;
          flex-direction: column;
          gap: var(--space-s);

          img {
            /* border: 1px solid var(--color-light-neutral-4); */
            /* border-radius: 0.3em; */
            padding: var(--space-xs);
            max-height: 35rem;
            width: auto;
            object-fit: contain;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          a {
            color: var(--color-color-3);
            text-decoration: underline;
            text-decoration-thickness: 0.1em;
            text-underline-offset: 0.2em;
          }
        }
      }
    }

    #one:checked ~ .tabs #one-tab,
    #two:checked ~ .tabs #two-tab,
    #three:checked ~ .tabs #three-tab,
    #four:checked ~ .tabs #four-tab,
    #five:checked ~ .tabs #five-tab,
    #six:checked ~ .tabs #six-tab,
    #seven:checked ~ .tabs #seven-tab,
    #eight:checked ~ .tabs #eight-tab,
    #nine:checked ~ .tabs #nine-tab {
      background: var(--color-neutral-9);
      color: var(--color-neutral-2);
    }

    #one:checked ~ .panels #one-panel,
    #two:checked ~ .panels #two-panel,
    #three:checked ~ .panels #three-panel,
    #four:checked ~ .panels #four-panel,
    #five:checked ~ .panels #five-panel,
    #six:checked ~ .panels #six-panel,
    #seven:checked ~ .panels #seven-panel,
    #eight:checked ~ .panels #eight-panel,
    #nine:checked ~ .panels #nine-panel {
      display: grid;
    }
  }
}

.ho-hero > div.hol-column > svg {
  width: 70ch;
  height: auto;
  max-width: 100%;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (min-width: 1000px) {
  .row {
    flex-wrap: nowrap;
  }

  .features:nth-child(even) .row {
    flex-direction: row-reverse;
  }
}

@media (max-width: 900px) {
  .ho-core {
    > div {
      > ul {
        flex-direction: column;
      }
    }
  }
}

@media (max-width: 900px) {
  .ho-columns {
    > div {
      ul.rows {
        > li {
          height: unset;

          > label {
            min-width: 100%;
          }

          > div {
            min-width: 100%;
            position: unset;
          }
        }
      }
    }
  }
}

.references-header {
  margin: var(--space-xl) 0 var(--space-l) 0;
}

.ho-horizontal-scroll.references {
  margin: 0 0 var(--space-l) 0;

  ul {
    li {
      display: flex;
      flex-direction: column;
      gap: var(--space-s);
      position: relative;
      width: 19rem;
      aspect-ratio: 2 / 1;
      background: var(--color-neutral-9);
      align-items: center;
      justify-content: center;
      padding: var(--space-s);
      border-radius: 0.3em;

      p {
        font-size: var(--font-size-1--1);

        a {
          text-decoration: underline;
          text-decoration-thickness: 0.1em;
          text-underline-offset: 0.15em;
        }
      }

      svg,
      img {
        height: 5rem;
        width: auto;
        /* position: absolute;
        bottom: var(--space-s);
        right: var(--space-s); */
      }
    }
  }
}

.ho-steps > div.hol-column > ul.hol-wrapping-row {
  gap: var(--space-l);
}

.flash-message {
  > p {
    padding: var(--space-s) var(--space-m);
    border-radius: 0.3em;
    color: var(--color-neutral-1);
    text-align: center;
    display: block;
    margin: 0 auto;
    max-width: 50ch;
  }

  &.success {
    > p {
      background: var(--color-color-3);
    }
  }

  &.error {
    > p {
      background: var(--color-color-2);
    }
  }
}
