/*
 * Expanded product detail pages
 * Scoped to the six new solution pages.
 */

.page-product-expanded {
  --expanded-accent: #4f7f12;
  --expanded-accent-soft: #eef3e6;
  --expanded-blue: #416a9b;
}

.page-product-expanded .expanded-hero {
  position: relative;
  padding: 10.5rem 0 5.5rem;
  overflow: hidden;
  background: var(--color-background-light, #f7f5ef);
}

.page-product-expanded .expanded-container {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}

.page-product-expanded .expanded-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-subtle, #62685d);
  font-size: 0.82rem;
}

.page-product-expanded .expanded-breadcrumb a {
  color: inherit;
}

.page-product-expanded .expanded-breadcrumb a:hover {
  color: var(--expanded-accent);
}

.page-product-expanded .expanded-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.98fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.page-product-expanded .expanded-hero-grid > * {
  min-width: 0;
}

.page-product-expanded .expanded-badge,
.page-product-expanded .expanded-section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(79, 127, 18, 0.22);
  border-radius: 999px;
  color: var(--expanded-accent);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.page-product-expanded .expanded-badge {
  gap: 0.45rem;
  padding: 0.52rem 0.72rem;
}

.page-product-expanded .expanded-badge .material-symbols-outlined {
  font-size: 1.05rem;
}

.page-product-expanded .expanded-title {
  max-width: 13ch;
  margin: 1.15rem 0 1.25rem;
  color: var(--color-text-main, #11150e);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.page-product-expanded .expanded-lead {
  max-width: 42rem;
  color: var(--color-text-subtle, #62685d);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.page-product-expanded .expanded-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.page-product-expanded .expanded-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 1.75rem;
  color: var(--color-text-subtle, #62685d);
  font-size: 0.82rem;
}

.page-product-expanded .expanded-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.page-product-expanded .expanded-trust-row .material-symbols-outlined {
  color: var(--expanded-accent);
  font-size: 1.05rem;
}

.page-product-expanded .expanded-visual {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(24, 31, 16, 0.1);
  border-radius: 1.4rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1.5rem 3.5rem rgba(24, 31, 16, 0.12);
}

.page-product-expanded .expanded-visual picture,
.page-product-expanded .expanded-visual img {
  display: block;
  width: 100%;
}

.page-product-expanded .expanded-visual img {
  height: 21rem;
  object-fit: cover;
}

.page-product-expanded .expanded-impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(24, 31, 16, 0.08);
}

.page-product-expanded .expanded-impact {
  min-width: 0;
  padding: 1.2rem 1rem;
}

.page-product-expanded .expanded-impact + .expanded-impact {
  border-left: 1px solid rgba(24, 31, 16, 0.08);
}

.page-product-expanded .expanded-impact strong,
.page-product-expanded .expanded-impact span {
  display: block;
}

.page-product-expanded .expanded-impact strong {
  color: var(--color-text-main, #11150e);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.page-product-expanded .expanded-impact span {
  margin-top: 0.2rem;
  color: var(--color-text-subtle, #62685d);
  font-size: 0.72rem;
  line-height: 1.35;
}

.page-product-expanded .expanded-anchor-nav {
  position: sticky;
  top: 7.2rem;
  z-index: 25;
  border-block: 1px solid rgba(24, 31, 16, 0.08);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(14px);
}

.page-product-expanded .expanded-anchor-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-product-expanded .expanded-anchor-nav-inner::-webkit-scrollbar {
  display: none;
}

.page-product-expanded .expanded-anchor-nav a {
  flex: 0 0 auto;
  padding: 0.95rem 1rem;
  color: var(--color-text-subtle, #62685d);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-product-expanded .expanded-anchor-nav a:hover,
.page-product-expanded .expanded-anchor-nav a:focus-visible {
  color: var(--expanded-accent);
}

.page-product-expanded .expanded-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  scroll-margin-top: 10rem;
}

.page-product-expanded .expanded-section--off {
  background: var(--color-background-off, #efede5);
}

.page-product-expanded .expanded-section--dark {
  color: #fff;
  background: #151a10;
}

.page-product-expanded .expanded-section-head {
  max-width: 52rem;
  margin-bottom: 2.8rem;
}

.page-product-expanded .expanded-section-label {
  padding: 0.48rem 0.68rem;
}

.page-product-expanded .expanded-section-title {
  max-width: 18ch;
  margin: 1rem 0 0;
  color: var(--color-text-main, #11150e);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.page-product-expanded .expanded-section-copy {
  max-width: 46rem;
  margin-top: 1.25rem;
  color: var(--color-text-subtle, #62685d);
  font-size: 1.04rem;
  line-height: 1.75;
}

.page-product-expanded .expanded-problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.page-product-expanded .expanded-problem-copy p {
  color: var(--color-text-subtle, #62685d);
  font-size: 1.03rem;
  line-height: 1.78;
}

.page-product-expanded .expanded-problem-copy p + p {
  margin-top: 1rem;
}

.page-product-expanded .expanded-pain-card {
  padding: 1.5rem;
  border: 1px solid rgba(24, 31, 16, 0.1);
  border-radius: 1rem;
  background: #fff;
}

.page-product-expanded .expanded-pain-card h3 {
  margin: 0 0 1rem;
  color: var(--color-text-main, #11150e);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.page-product-expanded .expanded-pain-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-product-expanded .expanded-pain-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: var(--color-text-subtle, #62685d);
  line-height: 1.5;
}

.page-product-expanded .expanded-pain-list .material-symbols-outlined {
  margin-top: 0.05rem;
  color: #a4483e;
  font-size: 1.1rem;
}

.page-product-expanded .expanded-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.page-product-expanded .expanded-capability {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 11rem;
  padding: 1.4rem;
  border: 1px solid rgba(24, 31, 16, 0.09);
  border-radius: 1rem;
  background: #fff;
}

.page-product-expanded .expanded-capability-icon,
.page-product-expanded .expanded-governance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(79, 127, 18, 0.16);
  border-radius: 0.9rem;
  color: var(--expanded-accent);
  background: var(--expanded-accent-soft);
}

.page-product-expanded .expanded-capability h3,
.page-product-expanded .expanded-process-step h3,
.page-product-expanded .expanded-governance-card h3,
.page-product-expanded .expanded-related-card h3 {
  color: var(--color-text-main, #11150e);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.page-product-expanded .expanded-capability p,
.page-product-expanded .expanded-process-step p,
.page-product-expanded .expanded-governance-card p,
.page-product-expanded .expanded-related-card p {
  margin-top: 0.55rem;
  color: var(--color-text-subtle, #62685d);
  font-size: 0.92rem;
  line-height: 1.62;
}

.page-product-expanded .expanded-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.page-product-expanded .expanded-process-step {
  position: relative;
  padding: 1.4rem;
  border-top: 3px solid var(--expanded-accent);
  background: #fff;
}

.page-product-expanded .expanded-process-number {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--expanded-accent);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.page-product-expanded .expanded-integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.page-product-expanded .expanded-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-product-expanded .expanded-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.85rem;
  border: 1px solid rgba(24, 31, 16, 0.1);
  border-radius: 999px;
  color: var(--color-text-main, #11150e);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.page-product-expanded .expanded-chip .material-symbols-outlined {
  color: var(--expanded-blue);
  font-size: 1rem;
}

.page-product-expanded .expanded-integration-note {
  margin-top: 1.2rem;
  color: var(--color-text-subtle, #62685d);
  font-size: 0.86rem;
  line-height: 1.6;
}

.page-product-expanded .expanded-governance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-product-expanded .expanded-governance-card {
  min-height: 13rem;
  padding: 1.4rem;
  border: 1px solid rgba(24, 31, 16, 0.09);
  border-radius: 1rem;
  background: #fff;
}

.page-product-expanded .expanded-governance-card h3 {
  margin-top: 1rem;
}

.page-product-expanded .expanded-dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.page-product-expanded .expanded-section--dark .expanded-section-label {
  border-color: rgba(190, 227, 143, 0.24);
  color: #bfe482;
  background: rgba(255, 255, 255, 0.05);
}

.page-product-expanded .expanded-section--dark .expanded-section-title,
.page-product-expanded .expanded-section--dark .expanded-section-copy {
  color: #fff;
}

.page-product-expanded .expanded-section--dark .expanded-section-copy {
  opacity: 0.72;
}

.page-product-expanded .expanded-dark-facts {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-product-expanded .expanded-dark-facts li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.page-product-expanded .expanded-dark-facts .material-symbols-outlined {
  color: #bfe482;
}

.page-product-expanded .expanded-faq {
  display: grid;
  gap: 0.7rem;
  max-width: 56rem;
}

.page-product-expanded .expanded-faq details {
  border: 1px solid rgba(24, 31, 16, 0.1);
  border-radius: 0.9rem;
  background: #fff;
}

.page-product-expanded .expanded-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  color: var(--color-text-main, #11150e);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}

.page-product-expanded .expanded-faq summary::-webkit-details-marker {
  display: none;
}

.page-product-expanded .expanded-faq summary::after {
  content: "+";
  color: var(--expanded-accent);
  font-size: 1.35rem;
  font-weight: 500;
}

.page-product-expanded .expanded-faq details[open] summary::after {
  content: "−";
}

.page-product-expanded .expanded-faq-answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--color-text-subtle, #62685d);
  line-height: 1.7;
}

.page-product-expanded .expanded-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-product-expanded .expanded-related-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid rgba(24, 31, 16, 0.1);
  border-radius: 1rem;
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-product-expanded .expanded-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 127, 18, 0.34);
  box-shadow: 0 1rem 2.4rem rgba(24, 31, 16, 0.09);
}

.page-product-expanded .expanded-related-card .expanded-related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--expanded-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-product-expanded .expanded-related-card .material-symbols-outlined {
  font-size: 1rem;
}

.page-product-expanded .expanded-final-cta {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  text-align: center;
  background: var(--color-background-off, #efede5);
}

.page-product-expanded .expanded-final-cta-inner {
  max-width: 50rem;
  margin-inline: auto;
}

.page-product-expanded .expanded-final-cta h2 {
  color: var(--color-text-main, #11150e);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.page-product-expanded .expanded-final-cta p {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--color-text-subtle, #62685d);
  font-size: 1.03rem;
  line-height: 1.7;
}

.page-product-expanded .expanded-final-cta .expanded-hero-actions {
  justify-content: center;
}

.page-product-expanded a:focus-visible,
.page-product-expanded summary:focus-visible {
  outline: 3px solid rgba(79, 127, 18, 0.42);
  outline-offset: 4px;
}

@media (max-width: 1023px) {
  .page-product-expanded .expanded-hero {
    padding-top: 8.8rem;
  }

  .page-product-expanded .expanded-hero-grid,
  .page-product-expanded .expanded-problem-grid,
  .page-product-expanded .expanded-integration-layout,
  .page-product-expanded .expanded-dark-grid {
    grid-template-columns: 1fr;
  }

  .page-product-expanded .expanded-title {
    max-width: 15ch;
  }

  .page-product-expanded .expanded-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-product-expanded .expanded-anchor-nav {
    top: 6rem;
  }
}

@media (max-width: 767px) {
  .page-product-expanded .expanded-container {
    width: min(100% - 2rem, 75rem);
  }

  .page-product-expanded .expanded-hero {
    padding: 7.3rem 0 3.5rem;
  }

  .page-product-expanded .expanded-hero-grid {
    gap: 2.5rem;
  }

  .page-product-expanded .expanded-title {
    max-width: 100%;
    font-size: clamp(2.3rem, 10vw, 3.25rem);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .page-product-expanded .expanded-visual img {
    height: 15rem;
  }

  .page-product-expanded .expanded-impact-strip {
    grid-template-columns: 1fr;
  }

  .page-product-expanded .expanded-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-product-expanded .expanded-impact + .expanded-impact {
    border-top: 1px solid rgba(24, 31, 16, 0.08);
    border-left: 0;
  }

  .page-product-expanded .expanded-anchor-nav {
    top: 5.15rem;
  }

  .page-product-expanded .expanded-anchor-nav a {
    padding-inline: 0.75rem;
  }

  .page-product-expanded .expanded-capability-grid,
  .page-product-expanded .expanded-process-grid,
  .page-product-expanded .expanded-governance-grid,
  .page-product-expanded .expanded-related-grid {
    grid-template-columns: 1fr;
  }

  .page-product-expanded .expanded-capability {
    min-height: 0;
  }

  .page-product-expanded .expanded-section-title {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-product-expanded .expanded-related-card {
    transition: none;
  }
}
