/* NEXT Benefits widget: black band, benefit list on the left switching the photo + text
 * card on the right. Colors + fonts come from the site brand kit (--next-* tokens).
 */
.nx-bens {
  --nx-gutter: clamp(16px, 4vw, 56px);
  position: relative; box-sizing: border-box;
  padding: clamp(64px, 8vw, 110px) var(--nx-gutter);
  background: var(--next-black); color: #C9C9CC; font-family: var(--next-font-head);
}
.nx-bens *, .nx-bens *::before, .nx-bens *::after { box-sizing: border-box; }
.nx-bens-in {
  max-width: 1480px; margin: 0 auto; padding-inline: clamp(28px, 3vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px clamp(40px, 5vw, 80px); align-items: stretch;
}

.nx-bens .eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
  font: 700 12px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red);
}
.nx-bens .eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--next-red); }
.nx-bens .nx-bens-title { margin: 0 0 20px; color: var(--next-white); font: 700 clamp(32px, 4vw, 52px)/1.08 var(--next-font-head); letter-spacing: -.02em; text-wrap: balance; }
.nx-bens-intro { margin: 0 0 8px; max-width: 52ch; font: 400 17px/1.7 var(--next-font-head); color: #C9C9CC; }

/* The list: each benefit is a tab; the selected one slides in with a red slanted marker */
.nx-bens-tabs { margin: 32px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.nx-bens-tabs button {
  position: relative; display: flex; align-items: center; gap: 0; width: 100%;
  margin: 0; padding: 18px 48px 18px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); border-radius: 0;
  background: none; color: #9A9AA0; text-align: left; cursor: pointer;
  font: 700 clamp(19px, 1.7vw, 24px)/1.2 var(--next-font-head); letter-spacing: 0; text-transform: none;
  transition: color .25s, padding .3s;
}
.nx-bens-tabs .n { flex: none; width: 44px; font: 700 14px/1 var(--next-font-call); letter-spacing: .12em; color: #6B6B70; transition: color .25s; }
.nx-bens-tabs button::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 12px; margin-top: -6px;
  background: var(--next-red); clip-path: polygon(0 0, 100% 0, calc(100% - 4.1px) 100%, 0 100%);
  opacity: 0; transform: translateX(-10px); transition: opacity .25s, transform .25s;
}
.nx-bens-tabs button:hover, .nx-bens-tabs button:focus { color: var(--next-white); background: none; }
.nx-bens-tabs button:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 2px; }
.nx-bens-tabs button[aria-selected="true"] { color: var(--next-white); padding-left: 10px; }
.nx-bens-tabs button[aria-selected="true"] .n { color: var(--next-red); }
.nx-bens-tabs button[aria-selected="true"]::after { opacity: 1; transform: none; }

/* Stage: the selected benefit's photo with a white text card over its lower edge */
.nx-bens-stage { position: relative; min-height: 560px; }
.nx-bens-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.nx-bens-pane.is-on { opacity: 1; visibility: visible; }
.nx-bens-photo { position: absolute; inset: 0 0 90px 0; margin: 0; overflow: hidden; background: var(--next-panel); }
.nx-bens-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nx-bens-card { position: absolute; left: 32px; right: 0; bottom: 0; max-width: 520px; padding: 30px 34px 32px; background: var(--next-white); }
.nx-bens-card::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 6px; background: var(--next-red); }
.nx-bens .nx-bens-h { margin: 0 0 10px; font: 700 26px/1.2 var(--next-font-head); letter-spacing: 0; text-transform: none; color: var(--next-black); }
.nx-bens-card p { margin: 0; font: 400 16px/1.6 var(--next-font-head); color: var(--next-body); }

/* Before the script runs (or without it), show the first benefit only */
.nx-bens:not(.is-ready) .nx-bens-pane:first-child { opacity: 1; visibility: visible; }

@media (max-width: 1100px) {
  .nx-bens-in { grid-template-columns: 1fr; padding-inline: 28px; }
  .nx-bens-stage { min-height: 520px; }
}
@media (max-width: 700px) {
  .nx-bens-stage { min-height: 500px; }
  .nx-bens-photo { bottom: 150px; }
  .nx-bens-card { left: 0; padding: 26px 24px 28px; }
  .nx-bens .nx-bens-h { font-size: 22px; }
}
@media (max-width: 560px) {
  .nx-bens-in { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-bens-pane, .nx-bens-tabs button, .nx-bens-tabs button::after { transition: none; }
}
