/* WL B2B ROI Calculator Section */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;900&family=Barlow:wght@300;400;500&display=swap');

.wl-calc {
  position: relative;
  background: #0a0a0a;
  font-family: 'Barlow Condensed', sans-serif;
  color: #fff;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px,6vw,80px) 20px;
}
.wl-calc *, .wl-calc *::before, .wl-calc *::after { box-sizing: border-box; }

.wl-calc__inner {
  max-width: 990px;
  width: 100%;
  margin: 0 auto;
}

/* Utilities */
.wl-calc .wl-c-orange { color: #ff4d00; }
.wl-calc .wl-c-tag {
  display: inline-block; background: #ff4d00; color: #fff;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 3px 8px; margin-bottom: 8px;
}
.wl-calc .wl-c-divider { width: 40px; height: 2px; background: #ff4d00; margin: 12px 0; }

/* Fade animation */
.wl-calc .wl-c-fade { animation: wlCalcFadeUp 0.6s ease forwards; }
@keyframes wlCalcFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulse dot (used inline) */
.wl-calc__pulse {
  width: 8px; height: 8px; background: #ff4d00; border-radius: 50%;
  animation: wlCalcPulse 2s ease-in-out infinite;
}
@keyframes wlCalcPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,77,0,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(255,77,0,0); }
}

/* CTA Button — diagonal parallelogram style */
.wl-calc .wl-c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 32px;
  font-size: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
  background: #ff4d00;
  color: #fff;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wl-calc .wl-c-btn:hover {
  transform: scale(1.04);
  background: #ff4d00 !important;
  color: #fff !important;
}
.wl-calc .wl-c-btn:active { transform: scale(1); }
.wl-calc .wl-c-btn:disabled,
.wl-calc .wl-c-btn.is-disabled {
  background: #333; color: #666;
  cursor: not-allowed; transform: none; box-shadow: none;
}
.wl-calc .wl-c-btn--outline {
  background: transparent;
  border: 1.5px solid #ff4d00;
  color: #ff4d00;
}
.wl-calc .wl-c-btn--outline:hover {
  background: rgba(255,77,0,0.08) !important;
  color: #ff4d00 !important;
  transform: scale(1.04);
}
.wl-calc .wl-c-btn--whatsapp {
  background: #25D366;
}
.wl-calc .wl-c-btn--whatsapp:hover {
  background: #25D366 !important;
  transform: scale(1.04);
}

/* Split / Before-After */
.wl-calc__split {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  cursor: ew-resize;
  user-select: none;
  margin-bottom: 0;
}
.wl-calc__split-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wl-calc__split-after { background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%); }
.wl-calc__split-before { background: #0d0d0d; }
.wl-calc__split-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wl-calc__split-label {
  position: absolute; bottom: 12px; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 8px;
}
.wl-calc__split-label--before { left: 12px; color: #666; }
.wl-calc__split-label--after { right: 12px; color: #ff4d00; }
.wl-calc__split-divider {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: 0.7;
}
.wl-calc__split-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #000; font-size: 14px; font-weight: 900;
}
.wl-calc__split-hint {
  text-align: center; margin-top: 8px; font-size: 0.65rem; color: #444;
  letter-spacing: 0.15em; margin-bottom: 24px;
}

/* Profile cards */
.wl-calc__profiles { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.wl-calc__profile {
  border: 1.5px solid #222; background: #111; padding: 18px 20px; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 14px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.wl-calc__profile:hover { border-color: #ff4d00; background: #1a0e00; }
.wl-calc__profile.is-active { border-color: #ff4d00; background: #1f0d00; box-shadow: 0 0 20px rgba(255,77,0,0.2); }
.wl-calc__profile-icon { font-size: 1.6rem; }
.wl-calc__profile-name { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.wl-calc__profile-meta { font-family: 'Barlow', sans-serif; font-size: 0.8rem; color: #666; margin-top: 2px; }
.wl-calc__profile-check { margin-left: auto; color: #ff4d00; font-size: 1.2rem; }

/* Slider */
.wl-calc__slider-track { position: relative; height: 6px; background: #222; border-radius: 3px; cursor: pointer; }
.wl-calc__slider-fill { position: absolute; left: 0; top: 0; height: 100%; background: #ff4d00; border-radius: 3px; }
.wl-calc__slider-thumb {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 20px; height: 20px; background: #ff4d00; border-radius: 50%;
  cursor: grab; box-shadow: 0 0 10px rgba(255,77,0,0.6);
}
.wl-calc__slider-labels {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-family: 'Barlow', sans-serif; font-size: 0.75rem; color: #444;
}
.wl-calc__vehicle-display { font-size: 4rem; font-weight: 900; line-height: 1; margin-bottom: 20px; }
.wl-calc__vehicle-unit { font-size: 1.2rem; color: #555; margin-left: 8px; }

/* Preview box */
.wl-calc__preview {
  background: #111; border: 1px solid #1e1e1e; padding: 16px 20px;
  margin-bottom: 28px; display: flex; gap: 24px;
}
.wl-calc__preview-label {
  font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: #555;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.wl-calc__preview-value { font-size: 1.8rem; font-weight: 900; }
.wl-calc__preview-unit { font-size: 0.8rem; color: #555; margin-left: 4px; }
.wl-calc__preview-sep { width: 1px; background: #1e1e1e; }

/* Stat boxes */
.wl-calc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.wl-calc__stat {
  background: #111; border: 1px solid #1e1e1e; padding: 24px;
  position: relative; overflow: hidden;
}
.wl-calc__stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, #ff4d00, transparent);
}
.wl-calc__stat-label {
  font-family: 'Barlow', sans-serif; font-size: 0.65rem; color: #555;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.wl-calc__stat-value { font-size: 2rem; font-weight: 900; }
.wl-calc__stat-sub { font-family: 'Barlow', sans-serif; font-size: 0.75rem; color: #555; margin-top: 4px; }

.wl-calc__stat--full { grid-column: 1 / -1; margin-bottom: 10px; }
.wl-calc__stat--full .wl-calc__stat-value { font-size: 3rem; letter-spacing: -0.02em; }
.wl-calc__stat-bar {
  height: 3px; background: #ff4d00; margin-top: 12px; border-radius: 2px;
  transition: width 1.4s ease;
}

/* Zero effort block */
.wl-calc__zero-effort {
  background: linear-gradient(135deg, #1a0e00 0%, #111 100%);
  border: 1.5px solid #ff4d00;
  padding: 24px 20px;
  margin-bottom: 16px;
  text-align: center;
}
.wl-calc__zero-effort-icon { font-size: 2rem; margin-bottom: 8px; }
.wl-calc__zero-effort-title {
  font-size: 1.3rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.wl-calc__zero-effort-desc {
  font-family: 'Barlow', sans-serif; font-size: 0.95rem; color: #aaa; line-height: 1.6;
}
.wl-calc__zero-effort-desc strong { color: #ff4d00; }

/* Conditions */
.wl-calc__conditions {
  background: #0d0d0d; border: 1px solid #191919; padding: 14px 18px;
  margin-bottom: 24px; display: flex; flex-direction: column; gap: 6px;
}
.wl-calc__condition {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: 'Barlow', sans-serif; font-size: 0.82rem; color: #888;
}
.wl-calc__condition-bullet { color: #ff4d00; margin-top: 1px; flex-shrink: 0; }

/* CTAs */
.wl-calc__ctas { display: flex; flex-direction: column; gap: 10px; }

/* Footer note */
.wl-calc__footnote {
  font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: #333;
  text-align: center; margin-top: 24px; line-height: 1.5;
}

/* Bottom bar */
.wl-calc__bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #0a0a0a; border-top: 1px solid #161616;
  padding: 10px 20px; display: flex; justify-content: space-between; align-items: center;
  transition: opacity 0.3s, transform 0.3s;
}
.wl-calc__bottombar.is-hidden { opacity: 0; transform: translateY(100%); pointer-events: none; }
.wl-calc__bottombar-left { font-size: 0.65rem; color: #333; letter-spacing: 0.2em; text-transform: uppercase; }
.wl-calc__bottombar-right { font-size: 0.65rem; color: #ff4d00; letter-spacing: 0.15em; text-transform: uppercase; }

/* Step content */
.wl-calc__step { padding-top: 0; }
.wl-calc__step--result { padding-top: 0; }

.wl-calc h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 12px; }
.wl-calc h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-bottom: 8px; }
.wl-calc .wl-c-desc { font-family: 'Barlow', sans-serif; color: #888; font-size: clamp(0.95rem, 1.5vw, 1.1rem); line-height: 1.6; margin-bottom: 32px; }
.wl-calc .wl-c-subdesc { font-family: 'Barlow', sans-serif; color: #666; font-size: clamp(0.85rem, 1.3vw, 1rem); margin-bottom: 28px; }

/* Split responsive */
@media (max-width: 768px) {
  .wl-calc__split { aspect-ratio: 4/3; }
}

/* Mobile ≤480px */
@media (max-width: 480px) {
  .wl-calc__stats { grid-template-columns: 1fr; }
  .wl-calc__preview { gap: 16px; padding: 14px 16px; }
  .wl-calc__stat { padding: 18px 16px; }
  .wl-calc__stat-value { font-size: 1.6rem; }
  .wl-calc__stat--full .wl-calc__stat-value { font-size: 2.2rem; }
  .wl-calc__profile { padding: 14px 16px; gap: 10px; }
  .wl-calc__vehicle-display { font-size: 3rem; }
}

/* 6a — 2-column split layout for step 0 */
.wl-calc__split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.wl-calc__split-left { display: flex; flex-direction: column; justify-content: center; }
.wl-calc__split-right { display: flex; flex-direction: column; }

/* Results go full-width */
.wl-calc__step--result { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .wl-calc__split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Hide all steps except active */
.wl-calc__step[hidden] { display: none; }
