/* Software and Viewer pages */
.software-hero,
.viewer-hero {
  border-bottom: 1px solid rgba(10, 43, 76, 0.08);
}

.software-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  height: calc(100svh - var(--header-height));
  min-height: 0;
}

.software-hero .home-hero-content,
.viewer-intro .grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1rem, 2vw, 2rem);
}

.software-hero .home-hero-content {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  height: 100%;
  min-height: 0;
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: center;
}

body.has-product-subnav .software-hero .home-hero-content {
  height: calc(100% - 65px);
  margin-top: 65px;
  padding-top: 2rem;
}

body.has-product-subnav .software-hero {
  height: calc(100svh - var(--header-height));
}

.software-hero .hero-right-col {
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  padding-left: clamp(2rem, 7vw, 8rem);
}

.software-hero .hero-video {
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: transparent;
  line-height: 0;
}

.software-hero .hero-video iframe {
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewer-intro .video-wrap {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  background: #000;
}

.viewer-intro .video-card--embed {
  position: relative;
  height: clamp(350px, 30vw, 430px);
  aspect-ratio: auto;
}

.viewer-intro .video-card--embed::before,
.viewer-intro .video-card--embed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: max(0px, calc((100% - 915.2px) / 2));
  background: #000;
  pointer-events: none;
}

.viewer-intro .video-card--embed::before {
  left: 0;
}

.viewer-intro .video-card--embed::after {
  right: 0;
}

.viewer-intro .video-card--embed iframe {
  display: block;
  width: 915.2px;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  background: #000;
}

.software-editorial .software-offers {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  top: 0;
  height: auto;
  min-height: 0;
  padding: var(--space-4);
  border: 1px solid #cbd8f6;
  background: var(--white);
}

/* Keep the 3D editorial blocks on the same grid and vertical rhythm as the
   Leone homepage history sections. */
.software-editorial {
  padding: var(--site-section-gap) 0;
}

.software-editorial .history-row {
  grid-template-columns: 1fr 2fr;
  column-gap: clamp(1rem, 2vw, 2rem);
  max-width: var(--container);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.software-editorial .row-bottom {
  grid-template-columns: 2fr 1fr;
}

.software-editorial .row-top {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  min-height: 430px;
}

.software-editorial .section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: 0;
  margin: 0 0 1rem;
}

.software-editorial .section-desc {
  max-width: 62ch;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-top: 0;
}

.software-inline-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.software-inline-cta .btn {
  width: 100%;
  justify-content: center;
}

.software-inline-cta .btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.software-inline-cta span {
  display: block;
  margin-top: 12px;
  color: var(--grey-500);
  font-size: var(--text-sm);
}

.software-editorial .row-top .history-img-col::after {
  display: none;
}

.software-editorial .product-box-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  gap: var(--space-3);
}

.software-editorial .product-box-item {
  width: 100%;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--grey-300);
  background: var(--white);
}

.software-editorial .product-box-item:first-child {
  border-color: #cbd8f6;
  box-shadow: 0 16px 32px rgba(10, 43, 76, 0.05);
}

.software-editorial .product-box-item-title {
  font-size: 1.5rem;
  margin: 0 0 var(--space-2);
  color: var(--blue-1);
}

.software-editorial .product-box-item-sub {
  font-size: 1rem;
  color: var(--grey-500);
  margin: 0 0 var(--space-3);
}

.software-editorial .product-box-item .btn {
  border-radius: 0;
  height: 44px;
  padding-inline: 24px;
  font-size: 0.84rem;
  margin-top: 0;
}

.software-editorial .product-box-item-sub {
  max-width: 48ch;
}

.software-editorial-video {
  position: relative;
  width: 100%;
  height: clamp(350px, 30vw, 430px);
  aspect-ratio: auto;
  overflow: hidden;
  background: #000;
}

.software-editorial-video::before,
.software-editorial-video::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: max(0px, calc((100% - 915.2px) / 2));
  background: #000;
  pointer-events: none;
}

.software-editorial-video::before { left: 0; }
.software-editorial-video::after { right: 0; }

.software-editorial-video iframe {
  display: block;
  width: 915.2px;
  height: 100%;
  border: 0;
  margin-inline: auto;
}

.software-features .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.software-features .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.software-features .card-icon {
  margin-bottom: var(--space-6);
}

.software-features .card h3,
.software-features .card p {
  grid-column: auto;
}

.software-features .card h3 {
  margin-bottom: var(--space-2);
}

.software-product .software-product__centered-copy {
  align-self: center;
}

.software-final-cta .btn-group .btn {
  border-radius: 0;
}

.trial-cta-label--mobile {
  display: none;
}

@media (max-width: 900px) {
  .software-hero,
  body.has-product-subnav .software-hero {
    height: auto;
    min-height: calc(100svh - var(--header-height));
  }

  .software-hero .home-hero-content,
  body.has-product-subnav .software-hero .home-hero-content {
    height: auto;
    min-height: calc(100svh - var(--header-height) - var(--product-subnav-height, 72px));
  }

  .software-hero .home-hero-shape {
    display: none;
  }

  .software-hero .home-hero-content,
  .viewer-intro .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .viewer-intro .video-card--embed iframe {
    width: 100%;
  }

  .software-hero .hero-left {
    display: contents;
  }

  .software-hero .hero-label {
    order: 1;
  }

  .software-hero .hero-title {
    order: 2;
  }

  .software-hero .hero-right-col {
    order: 3;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding-left: 0;
    justify-content: center;
  }

  .software-hero .hero-video {
    width: 100%;
    max-width: none;
  }

  .software-editorial-video iframe {
    width: 100%;
  }

  .software-hero .hero-cta {
    order: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    width: 100%;
    margin-bottom: 0;
  }

  .software-hero .hero-cta-item,
  .software-hero .hero-cta-item .btn {
    width: 100%;
    min-width: 0;
  }

  .trial-cta-label--desktop {
    display: none;
  }

  .trial-cta-label--mobile {
    display: inline;
  }

  .software-hero .hero-desc {
    order: 4;
    margin-bottom: 0;
  }

  .software-editorial .history-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .software-editorial .row-bottom {
    flex-direction: column-reverse;
  }

  .software-editorial .history-text-col,
  .software-editorial .history-img-col {
    width: 100%;
  }

  .software-editorial .software-offers {
    top: 0;
    height: auto;
    min-height: 0;
    padding: var(--space-4);
  }

  .software-inline-ctas {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .software-editorial .content-wrapper {
    padding: var(--space-8) 0;
  }

  .software-features .grid-4 {
    grid-template-columns: 1fr;
  }

  .software-features .card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: var(--space-6);
    align-items: start;
    height: auto;
  }

  .software-features .card-icon {
    margin-bottom: 0;
  }

  .software-features .card h3,
  .software-features .card p {
    grid-column: 2;
  }

}

@media (max-width: 520px) {
  .software-features .card {
    grid-template-columns: 1fr;
    row-gap: var(--space-4);
  }

  .software-features .card h3,
  .software-features .card p {
    grid-column: 1;
  }
}
