/* Tailwind is loaded via CDN. This stylesheet adds neon accents, animations, and component polish. */

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Neon focus styles */
:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

/* Hero flowline */
.flowline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}
.flowline .step {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center;
  text-align: center;
}
.flowline .step .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #00ff88;
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.35);
  box-shadow: inset 0 0 24px rgba(0,255,136,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.flowline .step .label {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
}
.flowline .connector {
  width: 100%;
  height: 20px;
}
.flowline .connector .draw {
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(0,255,136,.35));
  stroke-dasharray: 0 200;
  transition: stroke-dasharray 1.2s ease-out .2s;
}
.flowline .connector.in-view .draw {
  stroke-dasharray: 200 200;
}

/* Cards (How it works) */
.card {
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: 14px;
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,255,136,.35);
  box-shadow: 0 0 0 1px rgba(0,255,136,.2), 0 0 18px rgba(0,255,136,.18);
}
.card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #00ff88;
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.3);
  box-shadow: inset 0 0 24px rgba(0,255,136,.08);
}
.card .title {
  margin-top: 12px;
  font-weight: 700;
  color: #fff;
}
.card .desc {
  margin-top: 6px;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}

/* Accordion */
.accordion .item {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  overflow: hidden;
}
.accordion .item + .item { margin-top: 10px; }
.accordion .trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.accordion .trigger:hover { color: #00ff88; }
.accordion .panel {
  padding: 0 16px 16px;
  color: rgba(255,255,255,.8);
}

/* Feature tiles */
.feature {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: 14px;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(0,255,136,.35);
  box-shadow: 0 0 0 1px rgba(0,255,136,.2), 0 0 18px rgba(0,255,136,.18);
}
.feature .ficon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #00ff88;
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.3);
  box-shadow: inset 0 0 24px rgba(0,255,136,.08);
}
.feature .ftitle { margin-top: 10px; font-weight: 700; }
.feature .fdesc { margin-top: 6px; color: rgba(255,255,255,.75); }

#features .feature,
#features .feature * {
  animation: none !important;
  transition: none !important;
}

#features .feature:hover {
  transform: none !important;
}

/* Fix misaligned middle column cards: force full-width stretch */
#features .feature,
#features .reveal {
  width: 100% !important;
  margin: 0 !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}

/* If reveal wrappers are still in use anywhere, prevent them from centering children */
#features .reveal {
  display: block !important;
}

/* Pricing */
.price {
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: 16px;
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price:hover {
  transform: translateY(-2px);
  border-color: rgba(0,255,136,.35);
  box-shadow: 0 0 0 1px rgba(0,255,136,.2), 0 0 18px rgba(0,255,136,.18);
}
.price .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #001a0d;
  background: #00ff88;
}
.price.featured {
  border-color: rgba(0,255,136,.5);
  box-shadow: 0 0 0 1px rgba(0,255,136,.25), 0 0 24px rgba(0,255,136,.18);
}
.price .ptitle { font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.price .pprice {
  margin-top: 8px;
  display: flex items-baseline gap-1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price .pprice .currency { color: rgba(255,255,255,.75); font-size: 1rem; }
.price .pprice .amount { font-size: 2.25rem; color: #00ff88; }
.price .pprice .per { color: rgba(255,255,255,.7); font-size: .95rem; }
.price .plist {
  margin: 12px 0;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.85);
}
.price .plist li { display: flex; align-items: center; gap: 8px; }
.price .pcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #001a0d;
  background: #00ff88;
  transition: filter .15s ease, transform .1s ease;
}
.price .pcta:hover { filter: brightness(1.05); }
.price .pcta:active { transform: translateY(1px); }
/* Billing Toggle Animations */
.billing-toggle-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.billing-toggle-container:active {
  transform: scale(0.98);
  box-shadow: 0 0 0 2px rgba(0,255,136,0.3), 0 0 24px rgba(0,255,136,0.2);
}

.toggle-switch {
  position: relative;
}

.toggle-switch:active span {
  transform: scale(0.95);
}

.toggle-switch.slide-right span {
  animation: slide-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-label {
  transition: all 0.3s ease;
  position: relative;
}

.toggle-label.active {
  color: #00ff88;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0,255,136,0.5);
}

.toggle-label:not(.active) {
  opacity: 0.7;
}

.toggle-label:not(.active):hover {
  opacity: 1;
  color: rgba(255,255,255,0.9);
}

/* Toggle switch hover enhancement */
.toggle-switch:hover span {
  box-shadow: 0 0 0 2px rgba(0,255,136,0.3), 0 0 18px rgba(0,255,136,0.3);
}

/* Slide-right animation for toggle */
@keyframes slide-right {
  0% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(3px) scale(1.05);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

/* Pulse animation for active state */
.toggle-label.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff88, transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .flowline .connector .draw { transition: none; }
  .billing-toggle-container { transition: none; }
  .billing-toggle-container:active { transform: none; }
  .toggle-label.active::after { animation: none; }
}
