/* Homepage additions for the PDF-library direction */

.float-pdf-icon {
  position: relative;
  width: 52px;
  height: 62px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 5px 7px 7px 5px;
  background: #f8f1e3;
  border: 1px solid rgba(33, 30, 24, 0.14);
  box-shadow: 3px 4px 8px -3px rgba(33, 30, 24, 0.35);
}

.float-pdf-icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(225deg, #e9dfcf 50%, #d8cbb7 50%);
  border-radius: 0 6px 0 3px;
}

.float-pdf-icon em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ae4a31;
}

.float-pdf-icon small {
  font-family: var(--mono);
  font-size: 6px;
  color: #9d8f7b;
}

.pdf-mini {
  position: relative;
  width: 32px;
  height: 39px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 3px 5px 5px 3px;
  background: #fbf5e8;
  border: 1px solid rgba(33, 30, 24, 0.15);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #b24a2f;
  box-shadow: 2px 5px 10px -4px rgba(0, 0, 0, 0.35);
}

.pdf-mini::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: linear-gradient(225deg, #e8dcc8 50%, #d5c6ad 50%);
  border-radius: 0 4px 0 3px;
}

/* Upload visual in dark feature card ------------------------------- */

.upload-visual {
  position: relative;
  z-index: 2;
  margin-top: 25px;
  padding: 14px;
  border: 1px solid rgba(246, 239, 226, 0.11);
  border-radius: 13px;
  background: #14120f;
  box-shadow: 0 30px 55px -40px rgba(0, 0, 0, 0.8);
}

.upload-file-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(246, 239, 226, 0.08);
  background: rgba(246, 239, 226, 0.035);
}

.upload-file-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-file-name strong {
  font-size: 10px;
  font-weight: 500;
  color: rgba(246, 239, 226, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-name small {
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(246, 239, 226, 0.3);
}

.upload-file-status {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(123, 160, 124, 0.12);
  color: #a9c4a4;
  font-size: 7px;
}

.upload-track {
  height: 2px;
  margin: 11px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(246, 239, 226, 0.08);
}

.upload-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b4512e, #d7a582);
}

.upload-result {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(246, 239, 226, 0.08);
  background: rgba(246, 239, 226, 0.045);
}

.upload-result img {
  width: 38px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.6);
}

.upload-result-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-result-copy strong {
  font-size: 10px;
  font-weight: 550;
  color: rgba(246, 239, 226, 0.86);
}

.upload-result-copy small {
  font-size: 7.5px;
  color: rgba(246, 239, 226, 0.33);
}

.upload-result-check {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(125, 163, 128, 0.14);
  color: #a9c4a4;
  font-size: 8px;
}

.upload-visual-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 0 3px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  color: rgba(246, 239, 226, 0.25);
}

.upload-visual-foot i {
  font-style: normal;
  color: rgba(246, 239, 226, 0.4);
}

.upload-visual-foot em {
  margin-left: auto;
  font-style: normal;
  color: #d7a582;
}

/* Sound pill in feature device ------------------------------------- */

.device-sound-pill {
  position: absolute;
  top: 0;
  left: 4px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(33, 30, 24, 0.1);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 7.5px;
  color: var(--ink-soft);
  box-shadow: 0 5px 12px -8px rgba(33, 30, 24, 0.4);
}

.device-sound-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f8e72;
  box-shadow: 0 0 0 3px rgba(111, 142, 114, 0.12);
}

/* Mini shelf visual in feature card -------------------------------- */

.mini-books {
  position: relative;
  margin-top: auto;
  height: 104px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 0 4px 18px;
}

.mini-books > span {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 57px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 1px 3px 3px 1px;
  background: var(--sage);
  box-shadow: 3px 5px 10px -4px rgba(33, 30, 24, 0.55);
  transform: rotate(-1deg);
}

.mini-books > span:nth-child(2) {
  height: 64px;
  transform: rotate(0.5deg) translateY(-1px);
}

.mini-books > span:nth-child(3) {
  transform: rotate(2deg);
}

.mini-books img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-books-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 7px;
  border-radius: 1px;
  background: linear-gradient(180deg, #b08a60, #7c5a3a 55%, #5c4028);
  box-shadow: 0 5px 8px -3px rgba(33, 30, 24, 0.35);
}

.mini-books em {
  position: absolute;
  right: 0;
  bottom: -2px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 6.5px;
  color: var(--muted-light);
}

/* Sample shelf ----------------------------------------------------- */

.sample-shelf-scene {
  position: relative;
  min-height: 348px;
  padding: 17px 22px 12px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(80% 60% at 84% 4%, rgba(219, 178, 119, 0.19), transparent 58%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.045) 0 2px, transparent 2px 8px),
    linear-gradient(150deg, #765336, #503521 62%, #3c2818);
}

.sample-shelf-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.sample-shelf-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: rgba(246, 239, 226, 0.52);
}

.sample-shelf-head span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sample-shelf-head i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b4cbae;
}

.sample-shelf-head em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 6.5px;
  color: rgba(246, 239, 226, 0.34);
}

.sample-shelf-books {
  position: relative;
  z-index: 2;
  min-height: 235px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 24px);
  padding: 28px 6px 0;
}

.sample-book {
  display: flex;
  flex-direction: column;
  width: clamp(94px, 18.2%, 118px);
  flex: 0 0 auto;
}

.sample-book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 794 / 1123;
  overflow: hidden;
  border-radius: 1px 3px 3px 1px;
  background: #263a2b;
  box-shadow:
    7px 14px 20px -9px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transform: perspective(700px) rotateY(-2deg);
  transition: transform 0.5s var(--ease);
}

.sample-book:nth-child(even) .sample-book-cover {
  transform: perspective(700px) rotateY(2deg);
}

.sample-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-book em {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  margin-top: 6px;
  padding: 4px 5px;
  border-top: 1px solid rgba(225, 193, 146, 0.26);
  background: rgba(27, 17, 10, 0.76);
  font-style: normal;
  font-size: 7.5px;
  line-height: 1.45;
  text-align: center;
  color: rgba(246, 239, 226, 0.74);
}

.sample-shelf-rail {
  position: relative;
  z-index: 2;
  height: 10px;
  border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(180deg, #9a7049, #62452d 55%, #4a3220);
  box-shadow: 0 7px 12px -4px rgba(0, 0, 0, 0.48);
}

.sample-shelf-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.05em;
  color: rgba(246, 239, 226, 0.32);
}

.sample-shelf-sound {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 42px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 239, 226, 0.16);
  border-radius: 50%;
  background: rgba(25, 17, 11, 0.5);
  color: rgba(246, 239, 226, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sample-shelf-sound svg {
  width: 11px;
  height: 11px;
}

.sample-stage:hover .sample-book-cover {
  transform: perspective(700px) rotateY(0deg) translateY(-4px);
}

.sample-stage:hover .sample-book:nth-child(even) .sample-book-cover {
  transform: perspective(700px) rotateY(0deg) translateY(-6px);
}

/* Step visual for PDF upload --------------------------------------- */

.step-visual-pdf {
  gap: 11px;
}

.step-visual-pdf .step-check {
  margin-left: auto;
}

@media (max-width: 720px) {
  .upload-visual {
    margin-top: 20px;
    padding: 11px;
  }

  .upload-file-line {
    padding: 8px;
  }

  .upload-file-name strong {
    font-size: 9px;
  }

  .upload-result {
    padding: 8px;
  }

  .upload-result img {
    width: 32px;
    height: 46px;
  }

  .upload-result-copy strong {
    font-size: 9px;
  }

  .upload-result-copy small {
    font-size: 6.5px;
  }

  .upload-visual-foot {
    font-size: 5.8px;
  }

  .mini-books {
    height: 92px;
  }

  .device-sound-pill {
    left: auto;
    right: 0;
    top: -12px;
    font-size: 6.5px;
  }

  .sample-shelf-scene {
    min-height: 285px;
    padding: 13px 13px 10px;
  }

  .sample-shelf-head {
    font-size: 6px;
  }

  .sample-shelf-books {
    min-height: 188px;
    gap: 8px;
    padding: 20px 2px 0;
  }

  .sample-book {
    width: 21%;
  }

  .sample-book em {
    min-height: 22px;
    padding: 3px;
    font-size: 6.5px;
  }

  .sample-shelf-foot {
    font-size: 5px;
  }

  .sample-shelf-sound {
    right: 12px;
    bottom: 36px;
    width: 20px;
    height: 20px;
  }

  .float-pdf-icon {
    width: 45px;
    height: 56px;
  }

  .float-pdf-icon em {
    font-size: 8px;
  }

  .float-product-copy strong {
    font-size: 11px;
  }

  .float-product-copy small {
    font-size: 9px;
  }
}
