/**
 * Software detail v2 - OLED product page
 */

body.page-software-detail {
  --sd2-text: rgba(255, 255, 255, 0.88);
  --sd2-muted: rgba(255, 255, 255, 0.68);
  --sd2-faint: rgba(255, 255, 255, 0.48);
  --sd2-glass: rgba(255, 255, 255, 0.05);
  --sd2-glass-border: rgba(255, 255, 255, 0.12);
  --sd2-accent: var(--energy-orange, #ff4d20);
}

body.page-software-detail .site-main > section,
body.page-software-detail .sd2-hero,
body.page-software-detail .sd2-facts,
body.page-software-detail .sd2-section,
body.page-software-detail .sd2-cta,
body.page-software-detail .software-detail-hero,
body.page-software-detail .software-detail-section,
body.page-software-detail .contact-bottom-cta {
  background: transparent !important;
  background-image: none !important;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.sd2-hero {
  position: relative;
  padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  color: var(--sd2-text);
}

.sd2-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .sd2-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .sd2-hero__grid--solo {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }
}

.sd2-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--sd2-faint);
}

.sd2-breadcrumb a {
  color: var(--sd2-muted);
  text-decoration: none;
  font-weight: 600;
}

.sd2-breadcrumb a:hover {
  color: #fff;
}

.sd2-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sd2-accent);
}

.sd2-title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.sd2-lede {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--sd2-muted) !important;
}

.sd2-alert {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 77, 32, 0.35);
  background: rgba(255, 77, 32, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.sd2-referral {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.sd2-referral__logo {
  max-height: 2rem;
  width: auto;
  object-fit: contain;
}

.sd2-referral__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sd2-muted) !important;
}

.sd2-referral__text strong {
  color: #fff;
}

.sd2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.sd2-actions--center {
  justify-content: center;
}

.sd2-shot {
  margin: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--sd2-glass-border);
  background: var(--sd2-glass);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sd2-shot__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ------------------------------------------------------------------
   Facts strip
   ------------------------------------------------------------------ */

.sd2-facts {
  padding: 0 0 clamp(2rem, 5vw, 3rem);
}

.sd2-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sd2-fact {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--sd2-glass);
  border: 1px solid var(--sd2-glass-border);
}

.sd2-fact__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd2-faint);
}

.sd2-fact__value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.4;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.sd2-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  color: var(--sd2-text);
}

.sd2-section__narrow {
  max-width: 46rem;
}

.sd2-section__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.sd2-section__header--center {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.sd2-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 77, 32, 0.14);
  border: 1px solid rgba(255, 77, 32, 0.35);
  color: var(--sd2-accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sd2-section__title {
  margin: 0;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.sd2-section__lede {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  color: var(--sd2-muted) !important;
  line-height: 1.55;
}

.sd2-prose {
  color: var(--sd2-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.sd2-prose p {
  margin: 0 0 1rem;
  color: var(--sd2-muted) !important;
}

.sd2-prose p:last-child {
  margin-bottom: 0;
}

.sd2-prose a {
  color: var(--sd2-accent);
}

/* Features */
.sd2-features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem;
}

.sd2-features__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--sd2-glass);
  border: 1px solid var(--sd2-glass-border);
  color: var(--sd2-text);
  line-height: 1.45;
  font-weight: 550;
}

.sd2-features__mark {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: var(--sd2-accent);
  box-shadow: 0 0 0 1px rgba(255, 77, 32, 0.25);
  position: relative;
}

.sd2-features__mark::before {
  content: "";
  position: absolute;
  inset: 0.38rem 0.32rem 0.42rem 0.36rem;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* Gallery */
.sd2-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.sd2-gallery__item {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--sd2-glass-border);
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10;
}

.sd2-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
}

.sd2-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sd2-gallery__link:hover .sd2-gallery__img {
  transform: scale(1.03);
}

/* Convert band */
.sd2-convert__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .sd2-convert__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.sd2-convert__col {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  background: var(--sd2-glass);
  border: 1px solid var(--sd2-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sd2-convert__label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd2-faint);
}

.sd2-convert__price {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sd2-accent) !important;
}

.sd2-convert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sd2-demo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.sd2-demo-link {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sd2-demo-link:hover {
  border-color: rgba(255, 77, 32, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.sd2-demo-link__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(255, 77, 32, 0.16);
  color: var(--sd2-accent);
  flex: 0 0 auto;
}

.sd2-demo-link__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sd2-demo-link__title {
  font-weight: 700;
}

.sd2-demo-link__meta {
  font-size: 0.8rem;
  color: var(--sd2-faint);
}

/* Integrations */
.sd2-integrations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.sd2-integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 6.5rem;
}

.sd2-integration__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: var(--sd2-glass);
  border: 1px solid var(--sd2-glass-border);
  overflow: hidden;
  color: var(--sd2-faint);
  font-size: 1.4rem;
}

.sd2-integration__logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.sd2-integration__name {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--sd2-muted);
  text-align: center;
}

/* Changelog */
.sd2-changelog__tabs {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sd2-glass-border);
}

.sd2-changelog__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sd2-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.sd2-changelog__tab--active,
.sd2-changelog__tab[aria-selected="true"] {
  background: rgba(255, 77, 32, 0.2);
  color: #fff;
}

.sd2-changelog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.sd2-changelog__entry {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: var(--sd2-glass);
  border: 1px solid var(--sd2-glass-border);
}

.sd2-changelog__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.sd2-changelog__version {
  font-weight: 800;
  color: #fff;
}

.sd2-changelog__head time,
.sd2-changelog__planned {
  font-size: 0.8rem;
  color: var(--sd2-faint);
}

.sd2-changelog__notes {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sd2-muted);
  line-height: 1.55;
}

.sd2-changelog__empty {
  color: var(--sd2-muted) !important;
}

/* Reviews */
.sd2-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.sd2-review {
  padding: 1.25rem;
  border-radius: 1.15rem;
  background: var(--sd2-glass);
  border: 1px solid var(--sd2-glass-border);
}

.sd2-review__stars {
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.sd2-review__star {
  color: rgba(255, 255, 255, 0.25);
}

.sd2-review__star.is-on {
  color: var(--sd2-accent);
}

.sd2-review__quote {
  margin: 0 0 0.85rem;
  color: var(--sd2-text);
  line-height: 1.55;
  font-style: normal;
}

.sd2-review__cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sd2-faint);
}

/* CTA */
.sd2-cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.sd2-cta__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.sd2-cta__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
}

.sd2-cta__text {
  margin: 0 0 1.5rem;
  color: var(--sd2-muted) !important;
  line-height: 1.55;
}

body.page-software-detail .btn-secondary,
body.page-software-detail .btn-pill-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: transparent !important;
}

body.page-software-detail .btn-secondary:hover,
body.page-software-detail .btn-pill-outline:hover {
  border-color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Kill legacy light hero wash if old classes linger */
body.page-software-detail .software-detail-hero__bg,
body.page-software-detail .software-detail-hero__overlay {
  display: none !important;
}
