/* ==========================================================================
   SASHANKA AGRO TECH — PLAN TO PROFIT LIVE ANIMATED SECTION
   Unified Responsive Architecture:
   - Desktop & Mobile: IDENTICAL Iconic Semicircular Arc & 7 Teardrop Crescent Pods
   - Laser connector beams, flower blooming explosion, and harvest confetti celebration
   - Fluid auto-scaling viewport for 100% zero-overflow fit on all mobile screens
   ========================================================================== */

/* Outer Stage Container */
.p2p-stage-wrap {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(19, 84, 52, 0.12);
  box-shadow: 0 20px 50px rgba(12, 58, 29, 0.08);
  padding: 26px 32px 30px;
  margin: 15px auto 0;
  overflow: hidden;
  max-width: 1040px;
}

.p2p-stage-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header Bar */
.p2p-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf4ef;
}

.p2p-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.p2p-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: p2pDotPulse 1.6s infinite ease-in-out;
}

@keyframes p2pDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.p2p-controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p2p-brand-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.p2p-btn-group {
  display: flex;
  gap: 8px;
}

.p2p-icon-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.p2p-icon-btn:hover {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  transform: translateY(-1px);
}

/* ==========================================================================
   VIEWPORT SCALER (Maintains exact Horizontal Arc Layout on PC & Mobile)
   ========================================================================== */
.p2p-viewport-scaler {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  transition: height 0.15s ease-out;
}

.p2p-canvas-container {
  width: 940px;
  height: 700px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
}

/* ==========================================================================
   STATION PILLS (PLAN & PROFIT)
   ========================================================================== */
.p2p-station-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1.5px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0.35;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.p2p-plan-station {
  top: 56px;
  left: 45px;
  background: linear-gradient(135deg, #0d5423, #15803d);
  color: #ffffff;
  border: 2px solid #86efac;
}

.p2p-profit-station {
  top: 596px;
  left: 45px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  border: 2px solid #fef08a;
}

.p2p-plan-station.active {
  opacity: 1;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  animation: p2pPlanPulse 1.8s infinite ease-in-out;
}

@keyframes p2pPlanPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.p2p-profit-station.active {
  opacity: 1;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.5);
  animation: p2pProfitPulse 1.4s infinite ease-in-out;
}

@keyframes p2pProfitPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Harvest Celebration Confetti Burst on PROFIT */
.p2p-profit-confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.p2p-confetti-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg, #facc15);
  box-shadow: 0 0 8px var(--bg, #facc15);
  opacity: 0;
  transform: translate(0, 0) scale(0);
}

.p2p-profit-station.active .p2p-confetti-dot {
  animation: p2pConfettiBurst 1.3s cubic-bezier(0.15, 0.85, 0.35, 1) infinite;
}

@keyframes p2pConfettiBurst {
  0% { transform: translate(0, 0) scale(0.4); opacity: 1; }
  65% { transform: translate(var(--cx), var(--cy)) scale(1.3); opacity: 1; }
  100% { transform: translate(calc(var(--cx) * 1.35), calc(var(--cy) * 1.35)) scale(0); opacity: 0; }
}

/* The Solid Luxury Emerald Energy Conduit SVG & Radial Beams */
.p2p-arc-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 940px;
  height: 700px;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.p2p-track-channel {
  stroke: #f0fdf4;
  stroke-width: 24;
  stroke-linecap: round;
  fill: none;
}

.p2p-track-core {
  stroke: #bbf7d0;
  stroke-width: 16;
  stroke-linecap: round;
  fill: none;
}

.p2p-track-active {
  stroke: url(#p2pArcGrad);
  stroke-width: 16;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1109;
  stroke-dashoffset: 1109;
  transition: stroke-dashoffset 0.55s ease-out;
  filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.45));
}

.p2p-radial-beam {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke: rgba(22, 163, 74, 0.18);
  stroke-dasharray: 4 4;
  opacity: 0.45;
  transition: all 0.4s ease;
}

.p2p-radial-beam.active {
  stroke: var(--beam-color, #16a34a);
  stroke-width: 3.5;
  stroke-dasharray: none;
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--beam-color, #16a34a));
}

.p2p-track-orb {
  fill: #f59e0b;
  stroke: #ffffff;
  stroke-width: 3.5;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.9));
}

/* Central Brand Hub Inside the Widened Arc (Flower Top -> Tagline Middle -> Logo Bottom) */
.p2p-inner-brand {
  position: absolute;
  top: 90px;
  left: 40px;
  width: 330px;
  height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  pointer-events: auto;
}

/* 3. SASHANKA Official Typography Emblem (at Bottom of Hub) */
.p2p-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: all 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  text-align: center;
}

.p2p-brand-lockup.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.p2p-brand-box {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  text-align: center;
}

.p2p-brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 3.5px;
  color: #0c4a23;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(135deg, #093c18 0%, #15803d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.p2p-brand-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 8.8px;
  font-weight: 800;
  color: #166534;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 6px;
  letter-spacing: 0.6px;
  opacity: 0.95;
}

/* 2. GROW MORE EARN MORE Tagline (in Middle of Hub) */
.p2p-tagline-box {
  margin-bottom: 22px;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  user-select: none;
}

.p2p-tagline-box.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.p2p-tagline-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.22;
}

.p2p-tag-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #15803d;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.p2p-tagline-earn .p2p-tag-brand {
  color: #166534;
  letter-spacing: 2.2px;
}

.p2p-reg-mark {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #16a34a;
  margin-left: 4px;
  line-height: 1;
  vertical-align: 7px;
  display: inline-block;
}

/* 1. Sprouting & Blooming Flower Stage (Enlarged & Radiant) */
.p2p-flower-stage {
  width: 150px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.p2p-flower-svg {
  width: 140px;
  height: 155px;
  overflow: visible;
  filter: drop-shadow(0 6px 16px rgba(22, 163, 74, 0.35));
}

.p2p-stem {
  stroke-dasharray: 110;
  stroke-dashoffset: 110;
  transition: stroke-dashoffset 0.85s ease-out;
}

.p2p-leaf {
  transform: scale(0);
  transform-origin: 65px 96px;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p2p-petals-group {
  transform: scale(0) rotate(-60deg);
  transform-origin: 65px 55px;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p2p-flower-center {
  transform: scale(0);
  transform-origin: 65px 55px;
  transition: transform 0.5s ease-out;
}

.p2p-flower-stage.sprouting .p2p-stem {
  stroke-dashoffset: 0;
}

.p2p-flower-stage.sprouting .p2p-leaf {
  transform: scale(1);
}

.p2p-flower-stage.sprouting .p2p-flower-center {
  transform: scale(1);
}

.p2p-flower-stage.boom .p2p-petals-group {
  transform: scale(1) rotate(0deg);
}

/* Flower Shockwave Explosion */
.p2p-boom-shockwave {
  position: absolute;
  top: 55px;
  left: 65px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  border: 4px solid #facc15;
  opacity: 0;
  pointer-events: none;
}

.p2p-flower-stage.boom .p2p-boom-shockwave {
  animation: p2pShockwave 0.95s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes p2pShockwave {
  0% { width: 8px; height: 8px; margin-top: -4px; margin-left: -4px; opacity: 1; border-color: #facc15; border-width: 5px; }
  50% { border-color: #16a34a; opacity: 0.8; }
  98% { border-color: transparent; }
  100% { width: 240px; height: 240px; margin-top: -120px; margin-left: -120px; opacity: 0; border-color: transparent; border-width: 0; }
}

/* Radial Sparkles */
.p2p-sparkle {
  position: absolute;
  top: 55px;
  left: 65px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  margin-left: -3px;
  background: #facc15;
  border-radius: 50%;
  box-shadow: 0 0 10px #facc15;
  opacity: 0;
}

.p2p-flower-stage.boom .p2p-sparkle {
  animation: p2pSparkleFly 1.05s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes p2pSparkleFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ==========================================================================
   STEPS COLUMN: 7 STEPS WITH CONCENTRIC ARC ALIGNMENT
   ========================================================================== */
.p2p-steps-column {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700px;
  pointer-events: none;
  z-index: 6;
}

/* Step Rows */
.p2p-step-row {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0.35;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p2p-step-row.active {
  opacity: 1;
  transform: translateY(-50%) scale(1.02);
}

/* Vector Droplet Pod pointing RIGHT */
.p2p-droplet-pod {
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p2p-droplet-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.p2p-droplet-bg {
  fill: #ffffff;
  stroke: var(--pod-color, #16a34a);
  stroke-width: 3.5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
  transition: all 0.3s ease;
}

.p2p-step-row:hover .p2p-droplet-bg,
.p2p-step-row.active .p2p-droplet-bg {
  fill: #ffffff;
  filter: drop-shadow(0 0 14px var(--pod-glow, rgba(22, 163, 74, 0.45))) drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.p2p-step-row:hover .p2p-droplet-pod,
.p2p-step-row.active .p2p-droplet-pod {
  transform: scale(1.08);
}

.p2p-droplet-icon {
  position: absolute;
  left: 11px;
  top: 17px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pod-color, #16a34a);
  font-size: 18px;
  z-index: 2;
}

.p2p-pod-num {
  position: absolute;
  top: 1px;
  right: 13px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--pod-color, #16a34a);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  z-index: 3;
  transition: transform 0.3s ease;
}

.p2p-step-row:hover .p2p-pod-num,
.p2p-step-row.active .p2p-pod-num {
  transform: scale(1.12);
}

.p2p-step-text-wrap {
  display: flex;
  flex-direction: column;
}

.p2p-phase-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--pod-color, #16a34a);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-family: 'Poppins', sans-serif;
}

.p2p-step-title {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
  margin: 0;
  transition: color 0.3s ease;
}

.p2p-step-row:hover .p2p-step-title,
.p2p-step-row.active .p2p-step-title {
  color: #0f172a;
}

.p2p-step-desc {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  margin: 2px 0 0;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   RESTART BAR (FIR START)
   ========================================================================== */
.p2p-restart-bar-box {
  margin-top: 22px;
  text-align: center;
  border-top: 1px solid #edf4ef;
  padding-top: 14px;
  position: relative;
  z-index: 5;
}

.p2p-restart-notice {
  font-size: 13px;
  font-weight: 600;
  color: #55695C;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}

.p2p-restart-track-line {
  width: 240px;
  height: 5px;
  background: #e2ece5;
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}

.p2p-restart-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #15803d, #f59e0b);
  border-radius: 10px;
  transition: width 0.1s linear;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE PADDING
   (Keeps the exact same horizontal arc graphic, auto-scaled via viewport scaler)
   ========================================================================== */
@media (max-width: 991px) {
  .p2p-stage-wrap {
    padding: 18px 14px 22px;
    border-radius: 20px;
  }

  .p2p-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .p2p-btn-group {
    justify-content: flex-end;
  }
}


