/* Version 20 — final Fold 4 flow system and purchase-block navigation */

/* Final native visual: campaigns enter the AI core and leave as clear decisions. */
.turn .turn-system{
  position:relative;
  isolation:isolate;
  aspect-ratio:1.34;
  width:100%;
  max-width:620px;
  display:grid;
  place-items:center;
  padding:44px 25px 58px;
  overflow:hidden;
  border:1px solid rgba(90,224,157,.28);
  border-radius:30px;
  background:
    radial-gradient(ellipse 42% 48% at 36% 49%,rgba(8,170,102,.19),transparent 76%),
    radial-gradient(ellipse 42% 42% at 77% 47%,rgba(54,203,139,.075),transparent 78%),
    linear-gradient(145deg,rgba(14,34,25,.94),rgba(5,15,11,.98));
  box-shadow:
    0 38px 100px rgba(0,0,0,.33),
    0 0 50px rgba(8,170,102,.055),
    0 1px 0 rgba(255,255,255,.06) inset;
}

.turn .turn-system::before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  border-radius:inherit;
  background-image:
    linear-gradient(rgba(95,221,158,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(95,221,158,.028) 1px,transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image:radial-gradient(ellipse 82% 70% at 50% 50%,#000,transparent 82%);
  mask-image:radial-gradient(ellipse 82% 70% at 50% 50%,#000,transparent 82%);
}

.turn .turn-system::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:9%;
  width:auto;
  height:auto;
  border:1px solid rgba(107,231,170,.09);
  border-radius:22px;
  background:linear-gradient(110deg,rgba(255,255,255,.025),transparent 38%,rgba(8,170,102,.025));
  box-shadow:0 22px 64px rgba(0,0,0,.2),0 1px 0 rgba(255,255,255,.025) inset;
}

.turn-system-atmosphere{
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
}

.turn-system-atmosphere i{
  position:absolute;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#55dda0;
  box-shadow:0 0 12px rgba(85,221,160,.45);
  opacity:.52;
}

.turn-system-atmosphere i:nth-child(1){top:17%;left:12%}
.turn-system-atmosphere i:nth-child(2){right:11%;top:23%;width:3px;height:3px;opacity:.35}
.turn-system-atmosphere i:nth-child(3){right:18%;bottom:15%;width:4px;height:4px;opacity:.28}

.turn .turn-flow{
  position:relative;
  z-index:3;
  width:100%;
  display:grid;
  grid-template-columns:minmax(75px,1fr) 19px 84px 19px minmax(100px,1.12fr) 19px minmax(65px,.74fr) 19px minmax(72px,.82fr);
  gap:4px;
  align-items:center;
}

.turn .flow-step{
  min-width:0;
  min-height:112px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:13px;
  padding:14px 9px 12px;
  border:1px solid rgba(222,241,232,.13);
  border-radius:16px;
  background:linear-gradient(150deg,rgba(18,41,31,.96),rgba(6,18,13,.98));
  box-shadow:0 18px 38px rgba(0,0,0,.25),0 1px 0 rgba(255,255,255,.035) inset;
}

.turn .flow-step b{
  color:#dce8e2;
  font-family:'Space Grotesk',sans-serif;
  font-size:.59rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.07em;
  text-align:center;
}

.turn .flow-symbol{
  position:relative;
  width:45px;
  height:38px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.turn .campaign-symbol{gap:4px}
.turn .campaign-symbol i{width:7px;border-radius:3px 3px 1px 1px;background:linear-gradient(#54dfa0,rgba(8,170,102,.34))}
.turn .campaign-symbol i:nth-child(1){height:16px;opacity:.58}
.turn .campaign-symbol i:nth-child(2){height:27px;opacity:.78}
.turn .campaign-symbol i:nth-child(3){height:36px}

.turn .flow-ai{
  min-height:132px;
  padding:10px;
  border-color:rgba(115,239,177,.61);
  border-radius:25px;
  background:
    radial-gradient(circle at 50% 30%,rgba(140,248,192,.16),transparent 44%),
    linear-gradient(145deg,#087f4f,#08aa66 55%,#23c77c);
  box-shadow:
    0 0 0 8px rgba(8,170,102,.07),
    0 0 42px rgba(8,170,102,.28),
    0 24px 50px rgba(0,0,0,.31),
    0 1px 0 rgba(255,255,255,.18) inset;
}

.turn .ai-symbol{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  align-self:center;
  border:1px solid rgba(225,255,239,.46);
  border-radius:17px;
  background:rgba(3,47,28,.22);
  color:#fff;
  font-family:'Space Grotesk',sans-serif;
  font-size:1.42rem;
  font-weight:700;
  letter-spacing:-.03em;
  box-shadow:0 0 26px rgba(219,255,236,.11),0 1px 0 rgba(255,255,255,.13) inset;
}

.turn .ai-symbol i{position:absolute;background:rgba(224,255,239,.65)}
.turn .ai-symbol i:nth-child(1),.turn .ai-symbol i:nth-child(2){width:8px;height:1px}
.turn .ai-symbol i:nth-child(1){left:-9px;top:17px}
.turn .ai-symbol i:nth-child(2){right:-9px;bottom:17px}
.turn .ai-symbol i:nth-child(3),.turn .ai-symbol i:nth-child(4){width:1px;height:8px}
.turn .ai-symbol i:nth-child(3){top:-9px;right:17px}
.turn .ai-symbol i:nth-child(4){bottom:-9px;left:17px}

.turn .flow-diagnosis{
  border-color:rgba(72,222,148,.34);
  background:linear-gradient(150deg,rgba(8,170,102,.14),rgba(6,18,13,.98));
}

.turn .diagnosis-symbol{
  align-items:center;
  justify-content:center;
  border:1px solid rgba(93,224,158,.27);
  border-radius:50%;
}

.turn .diagnosis-symbol::after{
  content:"";
  position:absolute;
  width:13px;
  height:1px;
  right:-8px;
  bottom:1px;
  background:#54dda0;
  transform:rotate(45deg);
  transform-origin:left;
}

.turn .diagnosis-symbol i{position:absolute;width:4px;border-radius:3px;background:linear-gradient(#62e3a5,rgba(8,170,102,.35));bottom:9px}
.turn .diagnosis-symbol i:nth-child(1){left:12px;height:9px}
.turn .diagnosis-symbol i:nth-child(2){left:20px;height:17px}
.turn .diagnosis-symbol i:nth-child(3){left:28px;height:23px}

.turn .action-symbol{align-items:center}
.turn .action-symbol::before{
  content:"";
  width:35px;
  height:35px;
  border:1px solid rgba(92,224,158,.34);
  border-radius:12px;
  background:rgba(8,170,102,.08);
}
.turn .action-symbol i:first-child{position:absolute;width:17px;height:1px;background:#55dda0;transform:rotate(-38deg)}
.turn .action-symbol i:last-child{position:absolute;width:7px;height:7px;border-top:1px solid #79e9af;border-right:1px solid #79e9af;transform:translate(7px,-6px) rotate(7deg)}

.turn .flow-decision{border-color:rgba(103,230,167,.34);background:linear-gradient(150deg,rgba(26,65,49,.68),rgba(6,18,13,.98))}
.turn .decision-symbol{align-items:center}
.turn .decision-symbol::before{content:"";width:37px;height:37px;border:1px solid rgba(104,231,169,.38);border-radius:50%;box-shadow:0 0 18px rgba(8,170,102,.08)}
.turn .decision-symbol i{position:absolute;width:16px;height:8px;border-left:2px solid #68e4a6;border-bottom:2px solid #68e4a6;transform:translateY(-2px) rotate(-45deg)}

.turn .flow-connector{
  position:relative;
  width:100%;
  height:18px;
  display:block;
  filter:none;
}

.turn .flow-connector i{
  position:absolute;
  top:50%;
  left:0;
  right:2px;
  height:1px;
  background:linear-gradient(90deg,rgba(64,211,140,.16),rgba(79,224,151,.76));
  box-shadow:0 0 8px rgba(8,170,102,.16);
}

.turn .flow-connector i::after{
  content:"";
  position:absolute;
  right:0;
  top:-3px;
  width:6px;
  height:6px;
  border-top:1px solid #71e6aa;
  border-right:1px solid #71e6aa;
  transform:rotate(45deg);
}

.turn-system-rail{
  position:absolute;
  z-index:2;
  left:16%;
  right:14%;
  bottom:14%;
  display:grid;
  grid-template-columns:8px 1fr 8px 1fr 8px;
  gap:7px;
  align-items:center;
  opacity:.46;
}

.turn-system-rail span{width:7px;height:7px;border:1px solid rgba(86,222,155,.55);border-radius:50%;background:rgba(8,170,102,.16)}
.turn-system-rail i{height:1px;background:linear-gradient(90deg,rgba(56,196,130,.12),rgba(80,220,151,.54))}
.turn-system-rail span:last-child{background:#4bdc98;box-shadow:0 0 10px rgba(75,220,152,.28)}

/* The shared CTAs arrive with price, guarantee and final purchase action in context. */
.offer #compra-final{scroll-margin-top:clamp(24px,8vh,80px)}

@media (max-width:1100px){
  .turn .turn-system{aspect-ratio:1.45;max-width:700px}
}

@media (max-width:600px){
  .turn .turn-system{
    aspect-ratio:auto;
    min-height:292px;
    display:block;
    padding:39px 22px 55px;
    overflow-x:auto;
    overflow-y:hidden;
    border-radius:24px;
    scrollbar-width:none;
  }
  .turn .turn-system::-webkit-scrollbar{display:none}
  .turn .turn-system::after{inset:9% 7%;min-width:520px}
  .turn .turn-flow{
    width:540px;
    grid-template-columns:78px 20px 82px 20px 104px 20px 66px 20px 78px;
    gap:4px;
  }
  .turn .flow-step{min-height:105px}
  .turn .flow-ai{min-height:124px}
  .turn-system-rail{left:72px;right:auto;bottom:12%;width:390px}
}
