/* ==========================================================================
   SPINE ADDONS — 360 Benefits widget (sp-bens)
   --------------------------------------------------------------------------
   Scoped version of 360/css/bens.css: every rule lives under .sp-bens so it
   cannot leak into the host page. body/html rules became .sp-bens rules.
   ========================================================================== */

.sp-bens {
  box-sizing: border-box;
  background: #000;
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sp-bens *,
.sp-bens *::before,
.sp-bens *::after {
  box-sizing: border-box;
}
.sp-bens a {
  color: #fff;
}
.sp-bens a:hover {
  color: #cfe1ff;
}
.sp-bens button {
  font-family: inherit;
}
/* Small uppercase mono label (numbers, tags, control group labels) */
.sp-bens .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8d96a6;
}
/* Page container */
.sp-bens .wrap {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
/* Hide-until-JS-shows elements (.sp-reset) */
.sp-bens [hidden] {
  display: none !important;
}

/* --- Page header -------------------------------------------------------- */
.sp-bens .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.sp-bens .head h1 {
  margin: 0;
  font-size: 58px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.01em;
}
.sp-bens .head p {
  margin: 14px 0 0;
  max-width: 330px;
  font-size: 13px;
  line-height: 1.65;
  color: #b4b4b4;
}

/* --- Stage + decorative wireframe globe --------------------------------- */
@media(min-width:768px){
    .glob-wrap {
        padding-bottom: 30px;
    }
}
.sp-bens .stage {
  --g: 540px;
  position: relative;
  width: 100%;
  height: 650px;
  perspective: 1600px;
  max-width: 900px;
  margin: 0 auto;
}
.sp-bens .halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--g) * 1.15);
    height: calc(var(--g) * 1.15);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 140, 230, .18) 0%, rgba(90, 140, 230, .06) 38%, rgba(0, 0, 0, 0) 66%);
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.sp-bens .tilt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--g);
  height: var(--g);
  margin: calc(var(--g) / -2) 0 0 calc(var(--g) / -2);
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateZ(10deg);
  pointer-events: none;
}
.sp-bens .globe {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: sp-gspin 36s linear infinite;
}
.sp-bens .mer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(190, 215, 255, .16);
}
.sp-bens .lat {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(190, 215, 255, .12);
}
.sp-bens .lat.eq {
  width: var(--g);
  height: var(--g);
  border-color: rgba(160, 200, 255, .32);
  transform: translate(-50%, -50%) rotateX(90deg);
}
.sp-bens .lat.a {
  width: calc(var(--g) * .867);
  height: calc(var(--g) * .867);
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--g) * .25));
}
.sp-bens .lat.b {
  width: calc(var(--g) * .867);
  height: calc(var(--g) * .867);
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--g) * -.25));
}
.sp-bens .lat.c {
  width: calc(var(--g) * .556);
  height: calc(var(--g) * .556);
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--g) * .383));
}
.sp-bens .lat.d {
  width: calc(var(--g) * .556);
  height: calc(var(--g) * .556);
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--g) * -.383));
}
@keyframes sp-gspin {
  from { transform: rotateY(0); }
  to { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-bens .globe { animation: none; }
}
/* Layer the embedded 3D canvas above the globe */
.sp-bens .a360 {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* --- Implant callouts around the model ---------------------------------- */
.sp-bens .callout {
  position: absolute;
  z-index: 4;
}
.sp-bens .cbtn {
  background: transparent;
  border: 0;
  padding: 0;
  color: #fff;
  text-align: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-bens .cbtn .cname {
  font-size: 15px;
  font-weight: 600;
}
.sp-bens .cbtn .csub {
  font-size: 12px;
  line-height: 1.5;
  color: #a8a8a8;
}
.sp-bens .cbtn:hover .cname,
.sp-bens .cbtn.on .cname {
  color: #cfe1ff;
}
/* Motion tags pinned around the stage */
.sp-bens .mtag {
  position: absolute;
  z-index: 5;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #2a2f38;
  background: rgba(10, 12, 16, .7);
  color: #9aa3b2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.sp-bens .mtag:hover {
  color: #fff;
  border-color: #4a5568;
}
.sp-bens .mtag.on,
.sp-bens .mchip.on {
  color: #fff;
  border-color: #8fbaff;
  background: rgba(40, 70, 130, .4);
}

/* --- Mobile-only controls (hidden on desktop) ---------------------------- */
.sp-bens .mctl {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.sp-bens .mgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sp-bens .mchip {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #2a2f38;
  background: #0a0c10;
  color: #9aa3b2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 10px;
}
.sp-bens .pchip {
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid #242424;
  background: #0b0b0c;
  color: #fff;
  font: inherit;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-bens .pchip.on {
  border-color: #8fbaff;
  background: rgba(40, 70, 130, .25);
}
.sp-bens .pchip b {
  font-size: 14px;
  font-weight: 600;
}

/* --- Info bar under the stage -------------------------------------------- */
.sp-bens .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 96px;
  padding: 20px 28px;
  border: 1px solid #1f2430;
  border-radius: 12px;
  background: #07090d;
  margin-top: -24px;
}
.sp-bens .info .txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-bens .info .eb {
  color: #8fbaff;
}
.sp-bens .info .t {
  font-size: 17px;
  font-weight: 600;
}
.sp-bens .info .d {
  font-size: 13px;
  line-height: 1.6;
  color: #b4b4b4;
  max-width: 640px;
}
.sp-bens .info .disc {
  font-size: 11px;
  line-height: 1.5;
  color: #7d8594;
}
.sp-bens .ghost {
  background: transparent;
  border: 1px solid #333;
  color: #cfcfcf;
  border-radius: 6px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.sp-bens .ghost:hover {
  color: #fff;
  border-color: #555;
}
/* Keyboard focus ring shared by every control in the widget */
.sp-bens :focus-visible {
  outline: 2px solid #7aa7ff;
  outline-offset: 2px;
}

/* --- Tablet --------------------------------------------------------------- */
@media (max-width: 900px) {
  .sp-bens .stage {
    --g: min(480px, 62vw);
    height: min(620px, 78vw);
  }
  .sp-bens .callout {
    display: none;
  }
}
/* --- Mobile ---------------------------------------------------------------- */
@media (max-width: 720px) {
  .sp-bens .wrap {
    gap: 40px;
  }
  .sp-bens .head {
    flex-direction: column;
    gap: 16px;
  }
  .sp-bens .head h1 {
    font-size: 42px;
  }
  .sp-bens .head p {
    margin: 0;
    max-width: none;
    font-size: 13.5px;
  }
  .sp-bens .stage {
    --g: min(320px, 82vw);
    height: min(325px, 108vw);
  }
  .sp-bens .mtag {
    display: none;
  }
  .sp-bens .mctl {
    display: flex;
  }
  .sp-bens .info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    margin-top: 0;
  }
  .sp-bens .info .t {
    font-size: 16px;
  }
}

/* ==========================================================================
   BENEFITS SECTION ("Key points")
   ========================================================================== */

/* --- Grid of key points: three equal columns, no card chrome ---------- */
.sp-bens .bens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* --- One key point: number, bold title, body copy ---------------------- */
.sp-bens .ben {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
}
.sp-bens .ben b {
  font-size: 17px;
  font-weight: 600;
}
/* Body copy is the last <span> inside .ben (the first holds the number). */
.sp-bens .ben span:last-child {
  font-size: 12.5px;
  line-height: 1.65;
  color: #b4b4b4;
}

/* --- Mobile: stack the three points vertically -------------------------- */
@media (max-width: 720px) {
  .sp-bens .bens {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   SCROLL ICON — centered chevron below the 3D globe (.glob-wrap sibling)
   --------------------------------------------------------------------------
   Target/offset come from the button's data-scroll-target and
   data-scroll-offset attributes (see assets/js/bens.js).
   ========================================================================== */
.sp-bens .sp-scroll-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px auto 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #2a2f38;
  background: rgba(10, 12, 16, .7);
  color: #9aa3b2;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  animation: sp-sbounce 1.8s ease-in-out infinite;
}
.sp-bens .sp-scroll-next:hover {
  color: #fff;
  border-color: #4a5568;
}
@keyframes sp-sbounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-bens .sp-scroll-next {
    animation: none;
  }
}
