/*
 * ToolsLib+ product page
 * Redesign mode: preserve. DESIGN_VARIANCE: 5, MOTION_INTENSITY: 4, VISUAL_DENSITY: 4.
 * Uses the existing MiSans, red accent, product hero, navigation and footer system.
 */
.toolslib-site {
  color: #172231;
  background: #f8fafc;
}

.toolslib-site main {
  overflow: hidden;
}

.toolslib-hero {
  background:
    radial-gradient(circle at 82% 34%, rgba(0, 159, 227, .12), transparent 30%),
    linear-gradient(180deg, #fbfcfe, #eef3f7);
}

.toolslib-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 39, 66, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 66, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #111, transparent 82%);
  pointer-events: none;
}

.toolslib-site .product-hero-template h1 span {
  color: var(--blue-deep);
}

.toolslib-site .product-hero-template h1 strong {
  min-width: 62px;
  text-align: center;
  background: var(--red);
  box-shadow: 0 18px 40px rgba(215, 25, 32, .22);
}

.toolslib-site .product-hero-actions .btn.primary:hover {
  box-shadow: 0 16px 32px rgba(215, 25, 32, .2);
}

.toolslib-hero-composition {
  position: relative;
  width: min(790px, 100%);
  min-height: 510px;
}

.toolslib-hero-composition figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: #e7edf2;
  box-shadow: 0 30px 74px rgba(15, 39, 66, .2);
}

.toolslib-hero-composition img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.toolslib-hero-primary {
  position: absolute !important;
  top: 56px;
  left: 0;
  width: 77% !important;
  transform: rotate(-1.4deg);
}

.toolslib-hero-primary img {
  aspect-ratio: 516 / 291;
}

.toolslib-hero-float {
  position: absolute;
  width: 45%;
}

.toolslib-hero-float-ai {
  right: 0;
  bottom: 5px;
  transform: rotate(2deg);
}

.toolslib-hero-float-3d {
  top: 0;
  right: 3%;
  width: 38%;
  transform: rotate(1.5deg);
}

.toolslib-site .software-section-nav {
  margin-top: -27px;
}

.toolslib-highlights,
.insaitl-capabilities,
.toolslib-integration {
  padding: 108px max(28px, calc((100vw - 1240px) / 2));
}

.toolslib-section-heading {
  max-width: 790px;
  margin-bottom: 48px;
}

.toolslib-section-heading > p,
.toolslib-product-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.toolslib-section-heading h2,
.insaitl-copy h2,
.insaitl-capabilities h2,
.toolslib-integration h2 {
  margin: 0;
  color: #172231;
  font-size: clamp(39px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.toolslib-section-heading > span,
.insaitl-capabilities header > p,
.toolslib-integration header > p {
  display: block;
  max-width: 680px;
  margin-top: 20px;
  color: #687687;
  font-size: 19px;
  line-height: 1.8;
}

.toolslib-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #dbe2e9;
  border-left: 1px solid #dbe2e9;
}

.toolslib-highlight-grid article {
  min-height: 255px;
  padding: 42px 44px;
  border-right: 1px solid #dbe2e9;
  border-bottom: 1px solid #dbe2e9;
  background: rgba(251, 252, 254, .76);
}

.toolslib-highlight-grid article:nth-child(2),
.toolslib-highlight-grid article:nth-child(3) {
  background: #f0f4f7;
}

.toolslib-highlight-grid b {
  color: var(--red);
  font-size: 14px;
  letter-spacing: .12em;
}

.toolslib-highlight-grid h3 {
  margin: 24px 0 14px;
  color: #172231;
  font-size: 28px;
  letter-spacing: -.03em;
}

.toolslib-highlight-grid p {
  max-width: 430px;
  margin: 0;
  color: #687687;
  font-size: 17px;
  line-height: 1.85;
}

.insaitl-intro {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(560px, 1.22fr);
  gap: clamp(58px, 7vw, 110px);
  align-items: center;
  padding: 118px max(28px, calc((100vw - 1320px) / 2));
  background: #eef3f7;
}

.insaitl-copy h2 {
  max-width: 600px;
}

.insaitl-copy > p:not(.toolslib-product-kicker) {
  max-width: 610px;
  margin: 26px 0 0;
  color: #5d6d7e;
  font-size: 19px;
  line-height: 1.9;
}

.insaitl-models {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.insaitl-models span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  color: #30445a;
  background: rgba(251, 252, 254, .78);
  font-size: 16px;
  font-weight: 700;
}

.insaitl-integration-visual {
  position: relative;
  min-height: 520px;
}

.insaitl-integration-visual figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: #dfe7ed;
  box-shadow: 0 34px 76px rgba(15, 39, 66, .2);
}

.insaitl-integration-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.insaitl-main-shot {
  inset: 8% 0 auto 0;
  width: 76%;
}

.insaitl-main-shot img {
  aspect-ratio: 395 / 252;
}

.insaitl-toolbox-shot {
  right: 0;
  bottom: 0;
  width: 39%;
}

.insaitl-toolbox-shot img {
  aspect-ratio: 280 / 316;
}

.insaitl-capabilities {
  background: #f8fafc;
}

.insaitl-capabilities > header,
.toolslib-integration > header {
  max-width: 830px;
  margin-bottom: 44px;
}

.toolslib-shot-rail {
  --toolslib-rail-gutter: max(28px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-auto-columns: clamp(320px, 19vw, 360px);
  grid-auto-flow: column;
  gap: 18px;
  padding: 0 var(--toolslib-rail-gutter) 22px;
  margin: 0 calc(-1 * var(--toolslib-rail-gutter));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: var(--toolslib-rail-gutter);
  scrollbar-width: auto;
  scrollbar-color: #8f9aa5 transparent;
}

.toolslib-shot-rail::-webkit-scrollbar {
  height: 8px;
}

.toolslib-shot-rail::-webkit-scrollbar-track {
  background: transparent;
}

.toolslib-shot-rail::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #8f9aa5;
}

.toolslib-shot-rail figure {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 18px;
  background: #fdfefe;
  box-shadow: 0 18px 48px rgba(15, 39, 66, .08);
}

.toolslib-shot-rail img {
  display: block;
  width: 100%;
  height: 291px;
  object-fit: cover;
  object-position: top left;
  background: #e8edf1;
}

.toolslib-shot-rail figcaption {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 26px 28px;
}

.toolslib-shot-rail figcaption b {
  color: #172231;
  font-size: 23px;
}

.toolslib-shot-rail figcaption span {
  color: #6d7987;
  font-size: 16px;
  line-height: 1.7;
}

.ins3dtl-section {
  padding: 112px max(28px, calc((100vw - 1320px) / 2)) 124px;
  background: #edf2f6;
}

.ins3dtl-layout {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(620px, 1.3fr);
  gap: 70px;
  align-items: start;
}

.ins3dtl-feature-list {
  display: grid;
  border-top: 1px solid #cfd9e2;
}

.ins3dtl-feature-list article {
  padding: 28px 0 30px;
  border-bottom: 1px solid #cfd9e2;
}

.ins3dtl-feature-list h3 {
  margin: 0 0 10px;
  color: #172231;
  font-size: 25px;
  letter-spacing: -.02em;
}

.ins3dtl-feature-list p {
  margin: 0;
  color: #637283;
  font-size: 17px;
  line-height: 1.8;
}

.ins3dtl-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ins3dtl-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7e0e7;
  border-radius: 18px;
  background: #fdfefe;
  box-shadow: 0 22px 56px rgba(15, 39, 66, .1);
}

.ins3dtl-gallery-primary {
  grid-column: 1 / -1;
}

.ins3dtl-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.ins3dtl-gallery figcaption {
  padding: 16px 18px 18px;
  color: #34475a;
  font-size: 16px;
  font-weight: 750;
}

.toolslib-integration {
  background: #f8fafc;
}

.toolslib-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toolslib-flow::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  height: 1px;
  background: #c7d1db;
}

.toolslib-flow li {
  position: relative;
  padding-top: 38px;
}

.toolslib-flow li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 3px solid #f8fafc;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.toolslib-flow b {
  display: block;
  margin-bottom: 10px;
  color: #172231;
  font-size: 23px;
}

.toolslib-flow span {
  display: block;
  max-width: 330px;
  color: #657486;
  font-size: 17px;
  line-height: 1.75;
}

.toolslib-motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .72s cubic-bezier(.16, 1, .3, 1), transform .72s cubic-bezier(.16, 1, .3, 1);
}

.toolslib-motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="dark"] .toolslib-site {
  color: #eaf0f5;
  background: #09111a;
}

html[data-theme="dark"] .toolslib-hero,
html[data-theme="dark"] .toolslib-highlights,
html[data-theme="dark"] .insaitl-capabilities,
html[data-theme="dark"] .toolslib-integration {
  background: #09111a;
}

html[data-theme="dark"] .toolslib-hero::before {
  opacity: .45;
}

html[data-theme="dark"] .toolslib-site .product-hero-template h1 span,
html[data-theme="dark"] .toolslib-section-heading h2,
html[data-theme="dark"] .insaitl-copy h2,
html[data-theme="dark"] .insaitl-capabilities h2,
html[data-theme="dark"] .toolslib-integration h2,
html[data-theme="dark"] .toolslib-highlight-grid h3,
html[data-theme="dark"] .toolslib-shot-rail figcaption b,
html[data-theme="dark"] .ins3dtl-feature-list h3,
html[data-theme="dark"] .toolslib-flow b {
  color: #edf3f7;
}

html[data-theme="dark"] .toolslib-site .product-hero-positioning,
html[data-theme="dark"] .toolslib-site .product-hero-description,
html[data-theme="dark"] .toolslib-section-heading > span,
html[data-theme="dark"] .insaitl-copy > p:not(.toolslib-product-kicker),
html[data-theme="dark"] .insaitl-capabilities header > p,
html[data-theme="dark"] .toolslib-integration header > p,
html[data-theme="dark"] .ins3dtl-feature-list p,
html[data-theme="dark"] .toolslib-flow span {
  color: #a9b7c5 !important;
}

html[data-theme="dark"] .insaitl-intro,
html[data-theme="dark"] .ins3dtl-section {
  background: #0d1721;
}

html[data-theme="dark"] .toolslib-highlight-grid,
html[data-theme="dark"] .toolslib-highlight-grid article,
html[data-theme="dark"] .ins3dtl-feature-list,
html[data-theme="dark"] .ins3dtl-feature-list article {
  border-color: #263544;
}

html[data-theme="dark"] .toolslib-highlight-grid article,
html[data-theme="dark"] .toolslib-highlight-grid article:nth-child(2),
html[data-theme="dark"] .toolslib-highlight-grid article:nth-child(3),
html[data-theme="dark"] .toolslib-shot-rail figure,
html[data-theme="dark"] .ins3dtl-gallery figure {
  background: #121f2b;
  border-color: #263544;
}

html[data-theme="dark"] .toolslib-highlight-grid p,
html[data-theme="dark"] .toolslib-shot-rail figcaption span,
html[data-theme="dark"] .ins3dtl-gallery figcaption {
  color: #a4b2c0;
}

html[data-theme="dark"] .insaitl-models span {
  color: #d8e2ea;
  border-color: #314252;
  background: #13212d;
}

html[data-theme="dark"] .toolslib-flow::before {
  background: #314252;
}

html[data-theme="dark"] .toolslib-flow li::before {
  border-color: #09111a;
}

@media (max-width: 1100px) {
  .toolslib-hero-composition {
    min-height: 560px;
  }

  .insaitl-intro,
  .ins3dtl-layout {
    grid-template-columns: 1fr;
  }

  .insaitl-intro {
    gap: 50px;
  }

  .insaitl-integration-visual {
    width: min(760px, 100%);
  }

  .ins3dtl-layout {
    gap: 46px;
  }
}

@media (max-width: 760px) {
  .toolslib-site .product-hero-template h1 {
    font-size: 48px !important;
  }

  .toolslib-site .product-hero-template h1 strong {
    min-width: 46px;
  }

  .toolslib-hero-composition {
    min-height: 370px;
  }

  .toolslib-hero-primary {
    top: 44px;
    width: 86% !important;
  }

  .toolslib-hero-float-ai {
    width: 52%;
  }

  .toolslib-hero-float-3d {
    width: 44%;
  }

  .toolslib-highlights,
  .insaitl-capabilities,
  .ins3dtl-section,
  .toolslib-integration {
    padding: 76px 20px;
  }

  .toolslib-section-heading {
    margin-bottom: 34px;
  }

  .toolslib-section-heading h2,
  .insaitl-copy h2,
  .insaitl-capabilities h2,
  .toolslib-integration h2 {
    font-size: 36px;
  }

  .toolslib-highlight-grid {
    grid-template-columns: 1fr;
  }

  .toolslib-highlight-grid article {
    min-height: 0;
    padding: 34px 28px;
  }

  .insaitl-intro {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 78px 20px;
  }

  .insaitl-integration-visual {
    min-height: 370px;
  }

  .insaitl-main-shot {
    width: 84%;
  }

  .insaitl-toolbox-shot {
    width: 42%;
  }

  .toolslib-shot-rail {
    grid-auto-columns: min(84vw, 390px);
    padding-inline: 20px;
    margin-inline: -20px;
    scroll-padding-inline: 20px;
  }

  .toolslib-shot-rail figure {
    min-height: 400px;
  }

  .ins3dtl-gallery {
    grid-template-columns: 1fr;
  }

  .ins3dtl-gallery-primary {
    grid-column: auto;
  }

  .toolslib-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toolslib-flow::before {
    top: 9px;
    bottom: 9px;
    left: 9px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .toolslib-flow li {
    padding: 0 0 36px 42px;
  }

  .toolslib-flow li::before {
    top: 3px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .toolslib-motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
