
body.home #wrap {
  height: 100vh;                 /* so it's scrollable in full-page sections */
}


/* hero section */
.hero {
  margin-inline: 5%;
  background: url('/assets/img/hero.png') no-repeat center;
  background-size: cover;
  border-radius: 10px;
  color: var(--white-highlight);
  text-align: left;
  padding-block: 3rem;
  padding-inline: 5% 25%;
  h1 {
    font-size: 4rem;
  }
  p {
    font-size: 1.4rem;
    margin-top: 1rem;
    margin-right: 30%;
  }
}


/* product section */
#product {
  margin-block: 2rem;
  margin-inline: 5%;
  scroll-snap-align: start;
  header {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
  }
  > span {
    flex-shrink: 1;
    display: inline-block;
    background: var(--text);
    color: var(--white-highlight);
    padding: 1rem;
    font-size: 1rem;
    img {
      height: 20px;
      display: inline-block;
      transform: translateY(0.2rem);
    }
  }

  .disclosures {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    height: fit-content;
    justify-content: flex-start;
    align-items: stretch;
  }

  .tabs {
    height: fit-content;
    min-width: 33%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: center;
    align-items: stretch;
    h3 {
      background: black;
      color: #fffdf8;
      border-radius: 10px;
      white-space: nowrap;
      padding: 1rem;
      font-weight: 400;
      text-align: center;
    }
    .tab {
      display: flex;
      flex-direction: row;
      gap: 2rem;
      flex-grow: 1;
      a {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        transition: all 0.3s ease-in-out;
        color: grey;
        margin: 0;
        padding: 0;
        width: 100%;
        details[open] summary::after {
          transform: rotate(0deg);
        }

        details {
          background: #f1f4f9;
          border-radius: 10px;
          padding: 0 0 2rem;

          summary {
            display: flex;
            font-size: 1.25rem;
            font-weight: 400;
            padding: 2rem 2rem 1rem;
          }

          summary::after {
            content: '';
            display: block;
            min-width: 22px;
            height: 11px;
            background: url('/assets/img/arrow-up.svg');
            background-size: cover;
            margin-left: 0.75rem;
            margin-top: 1rem;
            transform: rotate(180deg);
            transition: all 0.3s ease-in-out;
            
          }

          @media (prefers-reduced-motion: no-preference) {
            interpolate-size: allow-keywords;
          }

          &::details-content {
            opacity: 0;
            block-size: 0;
            overflow-y: clip;
            transition: content-visibility 1s allow-discrete, opacity 1s, block-size 1s;
          }

          &[open]::details-content {
            opacity: 1;
            block-size: auto;
            transition: all 0.3s ease-in-out;
          }
          p {
            padding-inline: 2rem;
          }
        }
        &.active {
          color: #000;
          details {
            background: #E5EDF8;
          }
        }
      }
      
      h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
      }
      p {
        font-size: 0.9rem;

      }
    }
    .tab:hover a {
      color: black;
    }
  }
  

  .tab-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
    background: black;
    color: white;
    border-radius: 10px;
    height: 100%;
    
    .tab-content-block {
      height: 100%;
      transition: all 0.3s ease-in-out;
      display: none;

      .tab-content-block-innie {
        padding: 2rem;
        display: flex;
        gap: 2rem;
        transition: all 0.3s ease-in-out;
        height: 100%;
        box-sizing: border-box;
      }
    }

    .tab-content-block:target {
      display: block;
    }

    .tab-content-header {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      h3 {
        font-size: 3.25rem;
      }
      img {
        width: 220px;
      }
    }

    p {
        margin-block: 1rem;
        line-height: 1.5;
    }
  }
}


/* drug dev area */
.drug-development {
  margin-inline: 10%;
  margin-block: 4rem;
  h2 {
    margin-block: 4rem;
    margin-inline: 10%;
    text-align: center;
  }
  .chasm {
    min-height: 145px;
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    gap: 6rem;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 400;
    background: url(/assets/img/gap.svg) no-repeat center;
    div {
      border: 1px solid black;
      background: #fff;
      width: 45%;
      height: 100%;
      min-height: 145px;
      text-align: center;
      align-content: center;
      padding: 1rem;
      flex-grow: 1;
    }
  }

  .gap-lists {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    ul {
      list-style: none;
      margin: 0 0 1rem;
      font-size: 1.25rem;
      flex-basis: 30%;

    }
    li {
      position: relative; /* Needed for positioning the pseudo-element */
      padding-left: 2rem; /* Make space for the arrow */
      margin-bottom: 1rem; /* Add some space between list items */
    }

    li::before {
      content: url(/assets/img/arrow-bullet.svg); /* The right arrow emoji */
      position: absolute;
      left: 0; /* Position the arrow to the left */
      top: 0; /* Align with the top of the list item */
      line-height: inherit; /* Inherit line height for vertical alignment */
    }
  }

}

/* burden callout */
#burden {
  margin-inline: 0;
  padding-block: 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  &::before {
    content: "";
    width: 100%;
    height: 4px;
    background: black;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
  }
  h2 {
    margin-inline: 5%;
    text-align: center;
  }
  
}

/* radical area */
#radical {
  position: relative;
  background: black;
  padding-inline: 10%;
  padding-block: 2rem;
  margin-top: 2rem;
  color: #C19BE5;
  font-size: 1.25rem;
  #radical-inner {
    border-radius: 10px;
    padding-inline: 5% 8%;
    padding-block: 2rem;
    display: flex;
    gap: 0;
    position: relative;
    z-index: 2;
    background: black;
  }
  header {
    margin-right: 5%;
  }
  h2 {
    /* Our transformative approach where every patient visit advances drug development */
    background: linear-gradient(144.6deg, #C19BE5 3.96%, #8623DD 160.11%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-size: 3rem;
    line-height: 1.1;
    strong {
      font-weight: 700;
    }

  }
  p {
    margin-right: 5%;
    color: #fffdf8;
    line-height: 1.4;
  }
  ul {
    list-style: square;
    margin-left: 1rem;
    li {
      color: #fffdf8;
      line-height: 1.3;
      margin-bottom: 1rem; /* Add some space between list items */
    }

  }
  .bg-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
  }
}

/* kaleido callout */
#kaleido {
  color: white;
  font-weight: 300;
  background: 
  url(/assets/img/kaleido-bg-2.jpg) no-repeat left top;
  background-size: 100%;
  overflow: hidden;
  transition: background-position 0.5s ease;
  aspect-ratio: 1460/600;
  padding-left: 60%;
  padding-right: 10%;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: last;
  justify-content: center;
  gap: 1rem;
  font-size: 1.25rem;
  
}

/* powered by block */
#powered {
  padding-block: 2rem;
  padding-inline: 5%;

  h2 {
    text-align: center;
    padding-inline: 15%;
    background: url(/assets/img/sparkuru.svg) no-repeat right;
    background-size: 10rem 10rem;

  }
  #talking-points {
    display: flex;
    gap: 4rem;
    padding-inline: 5%;
    div {
      width: 33%;
    }
    p {
      padding-block: 0.5rem;
      font-size: 1.125rem;
    }
    h3 {
      font-size: 1.6rem;
      padding-block: 1rem;
      margin-block: 1rem;
      position: relative;
      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        border-radius: 2px;
        background: black;
      }
    }
  }
}

/* research section */
#research {
  background: black;
  color: #fff;
  padding-inline: 5%;
  padding-block: 2rem;
  overflow: hidden;
  #map {
    display: flex;
    h2 {
      img {
        display: block;
        width: 50px;
        margin-bottom: 2rem;
      }
    }
    p {
        margin-right: 15%;
    }
  }
  #vid {
    max-height: 640px;
  }
  #marquee ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    animation: fadein 4s ease-in-out;
    li {
      font-weight: bold;
      color: #7190FF;
    }
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* partners section */
.partners {
  background: #000 url(/assets/img/partner-gradient.jpg) no-repeat top left;
  color: #fff;
  background-size: cover;
  text-align: center;
  padding: 5rem;
  h2 {
    margin-bottom: 4rem;
  }
  img {
    display: block;
    width: 100%;
  }

  .logos {
    display: flex;
    margin: 2rem 0;
    padding: 0;
    gap: 3rem;
    list-style: none;
    justify-content: space-around;
    align-items: center;
    opacity: 1;
    animation: fadein 4s linear;
  }
}

/* spqc */
#spqc {
  padding-inline: 10%;
  padding-block: 2rem;
  
  .content {
    display: flex;
    gap: 2rem;
    padding-block: 2rem;
    p {
        margin-right: 10%;
    }
  }
  #certs {
    display: flex;
    gap: 1rem;
    img {
      height: 54px;
    }
  }
}



/* home - mobile */
@media screen and (max-width: 767px) {
  .hero {
    width: auto;
    margin: 5%;
    background: url('/assets/img/gradientnoise.png') no-repeat center;
    background-size: cover;
    border-radius: 10px;
    color: #fff;
    text-align: left;
    padding: 2rem;
    h1 {
      font-size: 2.6rem;
      font-weight: 300;
    }
    p {
      max-width: 480px;
      margin-inline: 0;
      font-size: 1.2rem;
    }
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.8rem;
  }

  #product {
    margin-block: 1rem;
    header {
      margin-block: 1rem;
    }
    .disclosures {
      flex-direction: column;
    }
    .tabs {
      width: 100%;
      h3 {
        font-size: 1.25rem;
        
      }
      .tab {
        display: none;
      }
    }
    .tab-content-block {
      display: block;
      .tab-content-block-innie {
        flex-direction: column;
        h3 {
          font-size: 1.8rem;
          margin-bottom: 2rem;
        }
        strong {
          font-weight: 700;
        }
      }
    }
  }

  #radical {
    padding: 1rem;
    p {
      margin-bottom: 1rem;
    }
    #radical-inner {
      flex-direction: column;
    }
  }

  .drug-development {
    margin-inline: 5%;
    margin-block: 1rem;
  }
  .chasm {
    gap: 4rem;
  }
  .gap-lists {
    flex-direction: column;
    gap: 0 !important;
    margin-block: 1rem !important;
  }
  .gap-lists ul {
    font-size: 1rem;
    margin: 0 !important;
    padding: 0;
    li {
      margin: 0;
      padding: 0;
    }
  }
  #burden {
    margin-inline: 5%;
    margin-block: 0;
    padding-block: 1rem;
    h2 {
      font-size: 1.8rem;
    }
  }

  #radical {
    #radical-inner {
      font-size: 1rem;
      margin-block: 1rem;
      padding-inline: 10%;
      padding-block: 0 2rem;
    }
    h2 {
      font-size: 2.4rem;
    }
    strong {
      font-weight: 400;
    }
  }

  #powered {
    h2 {
      background-size: 4rem;
      background-position: right 1em center;
      margin-block: 1rem;
    }
    padding-inline: 0;
    #talking-points {
      display: block;
      div {
        width: auto;
        margin-inline: 5%;
        text-align: center;
      }
      h3 {
        font-size: 1.2rem;
        font-weight: 500;
        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 2px;
          border-radius: 1px;
          background: black;
        }
        &::after {
          height: 2px;
          border-radius: 1px;
        }
      }
      
      p {
        font-size: 1rem;
        margin-bottom: 2rem;
      }
    }
  }

  #kaleido {
    aspect-ratio: initial;
    background-position: left bottom;
    padding-block: 0rem;
    height: fit-content;
    padding-left: 50%;
    padding-right: 5%;
    h2 {
      margin-block: 0;
      padding: 0;
    }
    p { font-size: 0.8rem; font-weight: 300; margin: 0;}
    img {
      width: 135px;
      display: block;
      margin-top: 0.5rem;
    }
  }

  #powered {

    h2 {
      font-size: 2.6rem;
      background-size: 5.4rem 5.4rem;
      padding-block: 2rem;
      padding-inline: 1rem;
      background-position: right 1em top;
      text-align: left;
    }
  }

  #research {
    padding-inline: 0;
    margin-block: 0rem;
    padding-block: 1rem;
    #map {
      flex-direction: column;
      header h2 {
        font-size: 3rem;
      }
      p {
        margin-right: 0;
      }
      #vid {
        margin: auto;
      }
      #map-video {
        width: 100vw;
      }
     
    }
    #marquee ul {
      flex-direction: column;
      gap: 0;
      list-style: square;
      margin-left: 2rem;
      padding-block: 1rem;
      li {
        padding-block: 0.5rem;
      }
    }
  }
  #spqc {
    padding-inline: 5%;
    .content {
      padding: 0;
      flex-direction: column;
    }
    #certs {
      order: 1;
    }
    p {
      order: 2;
      margin-right: 0;
    }
  }
}

@media screen and (max-width: 1024px) {
  #product {
    .tab-content-block-innie {
      flex-direction: column;
    }
  }
}