/*
 * Homepage Printable Library call to action.
 *
 * The original stacked-printables illustration anchors the section while each
 * benefit card uses its own optional, Customizer-managed storytelling image.
 */

.library-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 7vw, 92px);
  background: linear-gradient(180deg, #f5fbff 0%, #fbfdff 54%, #fffaf4 100%);
}

.library-section .isp-container {
  position: relative;
  z-index: 1;
}

.library-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(68, 68, 68, .08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 8%, rgba(235, 191, 122, .18), transparent 24%),
    rgba(255, 255, 255, .88);
  color: var(--isp-ink);
  box-shadow: 0 18px 46px rgba(68, 68, 68, .075);
}

.library-cta::after {
  content: none;
}

.library-cta__showcase {
  min-width: 0;
}

.library-cta__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(115, 192, 238, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 22%, rgba(235, 191, 122, .22) 0 44px, transparent 45px),
    linear-gradient(145deg, #f0faff 0%, #e4f5fd 100%);
  box-shadow: 0 12px 30px rgba(68, 68, 68, .055);
}

.library-sheet {
  overflow: hidden;
}

.library-sheet img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  transition: transform .35s ease;
}

.library-cta__visual:hover .library-sheet img {
  transform: scale(1.045);
}

.library-cta__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.library-cta .section-kicker--light {
  margin-bottom: 10px;
  color: #3f84ad;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .10em;
}

.library-cta h2 {
  max-width: 640px;
  margin: 0 0 14px;
  color: var(--isp-ink);
  font-size: clamp(2.35rem, 4vw, 3.45rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.library-cta__copy > p {
  max-width: 620px;
  margin: 0 0 20px;
  color: #696668;
  font-size: 1rem;
  line-height: 1.65;
}

.library-benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.library-benefits li {
  position: relative;
  min-height: 42px;
  padding: 10px 14px 10px 42px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(68, 68, 68, .065);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: #555255;
  font-size: .88rem;
  font-weight: 750;
  box-shadow: 0 5px 15px rgba(68, 68, 68, .03);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.library-benefits li:hover {
  border-color: rgba(115, 192, 238, .28);
  box-shadow: 0 9px 20px rgba(68, 68, 68, .055);
  transform: translateY(-1px);
}

.library-benefits li::before {
  content: "";
  position: absolute;
  right: auto;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 6px;
  border: 0;
  border-left: 2px solid #438fbc;
  border-bottom: 2px solid #438fbc;
  transform: translateY(-65%) rotate(-45deg);
}

.library-cta .isp-button--white {
  min-height: 48px;
  padding-inline: 18px;
  border: 1px solid rgba(67, 143, 188, .12);
  border-radius: 14px;
  background: #73c0ee;
  color: var(--isp-ink);
  box-shadow: 0 10px 24px rgba(115, 192, 238, .22);
}

.library-cta .isp-button--white:hover,
.library-cta .isp-button--white:focus-visible {
  background: #65b7e8;
  color: var(--isp-ink);
  box-shadow: 0 14px 28px rgba(115, 192, 238, .27);
  transform: translateY(-2px);
}

.library-signup-form {
  min-width: 0;
  max-width: 620px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(115, 192, 238, .18);
  border-radius: 22px;
  background: #f7fcff;
}

.library-signup-form form {
  display: grid;
  gap: 12px;
  margin: 0;
}

.library-signup-form input[type="email"],
.library-signup-form input[type="text"],
.library-signup-form input[type="tel"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 15px;
  border: 1px solid rgba(68, 68, 68, .13);
  border-radius: 13px;
  background: #fff;
  color: var(--isp-ink);
}

.library-signup-form button,
.library-signup-form input[type="submit"] {
  min-height: 50px;
  padding: 11px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--isp-secondary, #ed73a4);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(237, 115, 164, .2);
}

.library-signup-form button:hover,
.library-signup-form button:focus-visible,
.library-signup-form input[type="submit"]:hover,
.library-signup-form input[type="submit"]:focus-visible {
  background: #dd6596;
}

.library-signup-form small {
  display: block;
  margin-top: 14px;
  color: #777275;
  font-size: .79rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .library-cta {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px;
  }

  .library-cta__visual {
    width: min(100%, 520px);
    min-height: 280px;
    margin-inline: auto;
  }

  .library-cta__copy {
    width: min(100%, 720px);
    margin-inline: auto;
    padding: 0 6px 8px;
  }

  .library-cta h2,
  .library-cta__copy > p,
  .library-signup-form {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  .library-section {
    padding-block: 48px;
  }

  .library-cta {
    gap: 24px;
    padding: 14px;
    border-radius: 22px;
  }

  .library-cta__visual {
    min-height: 220px;
    border-radius: 18px;
  }

  .library-cta__copy {
    padding: 0 4px 8px;
  }

  .library-signup-form {
    padding: 21px;
    border-radius: 19px;
  }

  .library-cta h2 {
    font-size: clamp(2.2rem, 10.5vw, 2.9rem);
  }

  .library-cta__copy > p {
    font-size: .94rem;
  }

  .library-benefits {
    gap: 7px;
  }

  .library-benefits li {
    min-height: 40px;
    padding: 9px 12px 9px 39px;
    font-size: .83rem;
  }

  .library-benefits li::before {
    right: auto;
    left: 14px;
  }
}

@media (max-width: 420px) {
  .library-cta {
    padding: 10px;
  }

  .library-cta__visual {
    min-height: 195px;
  }

  .library-sheet {
    width: clamp(88px, 28vw, 104px);
  }

  .library-sheet--one {
    left: 4%;
    top: 16%;
    z-index: 1;
  }

  .library-sheet--two {
    left: 35%;
    top: 7%;
    z-index: 3;
  }

  .library-sheet--three {
    display: block;
    right: 4%;
    left: auto;
    top: 18%;
    z-index: 2;
  }

  .library-cta__copy {
    padding: 4px 5px 10px;
  }

  .library-signup-form {
    padding: 18px;
  }

  .library-cta .isp-button--white {
    width: 100%;
    justify-content: center;
  }
}

@media (hover: none) {
  .library-benefits li:hover,
  .library-cta__visual:hover .library-sheet img,
  .library-cta .isp-button--white:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .library-benefits li,
  .library-sheet img,
  .library-cta .isp-button--white {
    transition: none;
  }
}
