/* CTPL homepage section refinements — v28
   Corrects the four review areas without changing the established visual system. */

/* Comparison introduction: use the width as one composed editorial band. */
body.interactive-home .comparison {
  padding-top: clamp(62px, 4.4vw, 80px) !important;
  padding-bottom: clamp(68px, 4.8vw, 86px) !important;
}

body.interactive-home .comparison-heading {
  grid-template-columns: minmax(540px, 1.08fr) minmax(500px, 0.92fr);
  gap: clamp(30px, 2.8vw, 52px);
  align-items: end;
  margin-bottom: clamp(32px, 2.5vw, 44px);
}

body.interactive-home .comparison-heading h2 {
  max-width: 780px;
  font-size: clamp(3.05rem, 3.75vw, 4.45rem) !important;
  line-height: 0.99;
}

body.interactive-home .comparison-copy-block {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 8px 0 5px clamp(24px, 2vw, 38px);
  border-left: 2px solid rgba(25, 167, 166, 0.34);
}

body.interactive-home .comparison-copy {
  max-width: 760px;
  justify-self: auto;
  color: #4f6964;
  font-size: clamp(20px, 1.12vw, 23px) !important;
  line-height: 1.55;
}

body.interactive-home .comparison-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  color: #0a7373;
  font-size: clamp(14.5px, 0.8vw, 16px);
  font-weight: 800;
  letter-spacing: 0.015em;
}

body.interactive-home .comparison-path span {
  padding: 7px 11px;
  border: 1px solid rgba(12, 119, 120, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

body.interactive-home .comparison-path i {
  color: #19a7a6;
  font-style: normal;
}

/* Delivery stages: the controls should read like primary navigation, not labels. */
body.interactive-home .delivery-tabs {
  gap: 10px;
  margin-bottom: 12px;
}

body.interactive-home .delivery-tab {
  min-height: 96px;
  padding: 15px 13px 14px;
}

body.interactive-home .delivery-tab span {
  margin-bottom: 9px;
  font-size: clamp(15px, 0.82vw, 17px) !important;
  line-height: 1;
}

body.interactive-home .delivery-tab strong {
  overflow: visible;
  font-size: clamp(19px, 1.08vw, 22px) !important;
  line-height: 1.18;
  text-overflow: clip;
}

body.interactive-home .delivery-tab::after {
  left: 13px;
  right: 13px;
  bottom: 9px;
  height: 3px;
}

/* Heritage year: a single, fully painted text layer eliminates edge clipping.
   Hover shifts the gradient rather than revealing a duplicate glyph layer. */
body.interactive-home .legacy-year {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-right: 0.08em;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  background: linear-gradient(100deg, #79eee9 0%, #34d8c7 42%, #d8ad56 100%);
  background-size: 165% 100%;
  background-position: 95% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 12px 25px rgba(4, 19, 19, 0.22));
  letter-spacing: -0.075em;
  transition:
    background-position 650ms cubic-bezier(.22, 1, .36, 1),
    transform 520ms cubic-bezier(.22, 1, .36, 1);
}

body.interactive-home .legacy-year::after {
  display: none !important;
  content: none !important;
}

body.interactive-home .legacy-panel:hover .legacy-year,
body.interactive-home .legacy-panel:focus-visible .legacy-year {
  background-position: 0 50%;
  transform: translateY(-2px);
}

/* Advantage rows: use the card area with a confident, readable type scale. */
body.interactive-home .difference-list {
  gap: 12px;
}

body.interactive-home .difference-list .difference-item {
  grid-template-columns: minmax(255px, 0.78fr) minmax(0, 1.22fr);
  grid-template-rows: minmax(120px, auto);
  min-height: 120px;
}

body.interactive-home .difference-trigger {
  padding: 22px 22px 22px 24px;
}

body.interactive-home .difference-trigger > span:nth-child(2) {
  font-size: clamp(20px, 1.08vw, 22.5px) !important;
  line-height: 1.27;
}

body.interactive-home .difference-detail {
  padding: 20px 24px 20px 28px;
}

body.interactive-home .difference-list .difference-detail p {
  color: #566e69;
  font-size: clamp(17.5px, 0.92vw, 19.5px) !important;
  line-height: 1.5;
}

body.interactive-home .difference-tags {
  gap: 8px;
  margin-top: 11px;
}

body.interactive-home .difference-tags span {
  padding: 5px 11px;
  font-size: clamp(15px, 0.78vw, 16.5px) !important;
}

@media (max-width: 1180px) {
  body.interactive-home .comparison-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.interactive-home .comparison-copy-block {
    max-width: 920px;
    padding: 2px 0 2px 24px;
  }

  body.interactive-home .comparison-copy {
    max-width: 860px;
  }

  body.interactive-home .difference-list .difference-item {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 700px) {
  body.interactive-home .comparison {
    padding-top: 52px !important;
    padding-bottom: 58px !important;
  }

  body.interactive-home .comparison-heading h2 {
    font-size: clamp(2.55rem, 12vw, 3.15rem) !important;
  }

  body.interactive-home .comparison-copy-block {
    padding-left: 17px;
  }

  body.interactive-home .comparison-copy {
    font-size: 18px !important;
  }

  body.interactive-home .comparison-path {
    gap: 7px;
    margin-top: 16px;
    font-size: 14px;
  }

  body.interactive-home .comparison-path span {
    padding: 6px 9px;
  }

  body.interactive-home .delivery-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.interactive-home .delivery-tab {
    min-height: 86px;
  }

  body.interactive-home .delivery-tab span {
    font-size: 14px !important;
  }

  body.interactive-home .delivery-tab strong {
    font-size: 18px !important;
  }

  body.interactive-home .legacy-year {
    padding-right: 0.1em;
    font-size: clamp(5.2rem, 27vw, 7rem);
  }

  body.interactive-home .difference-list .difference-item {
    display: block;
    min-height: 92px !important;
  }

  body.interactive-home .difference-trigger {
    min-height: 92px;
    padding: 19px 18px;
  }

  body.interactive-home .difference-trigger > span:nth-child(2) {
    font-size: 19px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.interactive-home .legacy-year {
    transition: none;
  }
}
