/* Value positioning preview — /home-value-preview/ */

/* What you're investing in — uses jj-wte layout */
.jj-value-wte .jj-value-wte-intro {
  grid-column: 1 / 3;
  align-self: start;
}

.jj-value-wte-title {
  margin: 1.35em 0 0;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 11em;
  color: #131417;
}

.jj-value-wte .jj-section-right.jj-value-wte-cards {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  max-width: none;
}

/* Bento grid — alternating wide / narrow rows */
.jj-value-wte-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25em;
  width: 100%;
}

.jj-value-wte-bento .jj-wte-item--wide {
  grid-column: span 7;
}

.jj-value-wte-bento .jj-wte-item--narrow {
  grid-column: span 5;
}

.jj-value-wte-bento .jj-wte-item--center {
  grid-column: 1 / -1;
}

.jj-value-wte-bento .jj-wte-item--wide .jj-wte-body {
  max-width: 34em;
}

.jj-value-wte-bento .jj-wte-item {
  width: 100%;
  min-width: 0;
}

/* Custom value icons — icon + title on row 1, body full width below */
.jj-value-wte .jj-wte-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 3px;
  row-gap: 0.75em;
  padding-top: 1.25em;
  width: 100%;
  align-items: center;
}

.jj-value-wte .jj-wte-icon-wrap {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: auto;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  line-height: 0;
}

.jj-value-wte .jj-wte-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
}

.jj-value-wte .jj-wte-body {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  margin: 0;
}

/* Card 2 (resonance) — two-line title: icon top-aligned to first line */
.jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]),
.jj-value-wte-bento .jj-wte-item:nth-child(2) {
  align-items: start;
}

.jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]) .jj-wte-icon-wrap,
.jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]) .jj-wte-title,
.jj-value-wte-bento .jj-wte-item:nth-child(2) .jj-wte-icon-wrap,
.jj-value-wte-bento .jj-wte-item:nth-child(2) .jj-wte-title {
  align-self: start;
}

.jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]) .jj-wte-icon-wrap,
.jj-value-wte-bento .jj-wte-item:nth-child(2) .jj-wte-icon-wrap {
  height: 1.5rem;
}

.jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]) .jj-wte-icon-wrap svg,
.jj-value-wte-bento .jj-wte-item:nth-child(2) .jj-wte-icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  preserveAspectRatio: xMinYMid meet;
}

.jj-value-wte .jj-wte-icon,
.jj-value-wte .jj-wte-icon-wrap svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  margin: 0;
  preserveAspectRatio: xMinYMid meet;
}

.jj-wte-icon-wrap[data-jj-value-icon] svg .jj-vi-line {
  stroke-width: 0.9;
}

.jj-wte-icon-wrap[data-jj-value-icon] svg .jj-vi-line,
.jj-wte-icon-wrap[data-jj-value-icon] svg .jj-vi-accent {
  vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: reduce) {
  .jj-wte-icon-wrap[data-jj-value-icon] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Tablet + below — intro first, cards full width (override Webflow grid-area) */
@media screen and (max-width: 991px) {
  .jj-value-wte.main-grid.home.jj-wte-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .jj-value-wte .jj-value-wte-intro {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 2em;
  }

  .jj-value-wte .jj-section-right.jj-value-wte-cards {
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .jj-value-wte-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .jj-value-wte-bento .jj-wte-item--wide,
  .jj-value-wte-bento .jj-wte-item--narrow,
  .jj-value-wte-bento .jj-wte-item--center {
    grid-column: span 1;
  }
}

/* Stacked — single column, generous vertical rhythm */
@media screen and (max-width: 767px) {
  .jj-value-wte-bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 4em;
  }

  .jj-value-wte-bento .jj-wte-item--wide,
  .jj-value-wte-bento .jj-wte-item--narrow,
  .jj-value-wte-bento .jj-wte-item--center {
    grid-column: 1 / -1;
  }

  .jj-value-wte .jj-wte-item {
    display: grid !important;
    gap: 2.5em 1em !important;
  }

  .jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]),
  .jj-value-wte-bento .jj-wte-item:nth-child(2) {
    align-items: start !important;
  }

  .jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]) .jj-wte-icon-wrap,
  .jj-value-wte .jj-wte-item:has([data-jj-value-icon="resonance"]) .jj-wte-title,
  .jj-value-wte-bento .jj-wte-item:nth-child(2) .jj-wte-icon-wrap,
  .jj-value-wte-bento .jj-wte-item:nth-child(2) .jj-wte-title {
    align-self: start !important;
  }
}

/* Trusted block — match section labels + divider rhythm */
.container.without-top-padding.home .main-grid.home {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 3.5em !important;
  margin-top: 0 !important;
}

.container.without-top-padding.home .div-block-6 > .paragraph.small.text-color-grey-60 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin: 0;
  padding-top: 0.2em;
  line-height: 1.4;
}
