/* ==========================================================================
   Kayakriti 3-Step Funnel — enhanced with service-page handoff
   ========================================================================== */

.funnel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}
.funnel-stage { display: none; }
.funnel-stage.active { display: block; }

/* Progress dots */
.funnel-progress {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 8px;
}
.funnel-progress .dot {
  flex: 1; height: 4px; border-radius: 4px;
  background: var(--line); transition: background 0.3s;
}
.funnel-progress .dot.done { background: var(--blue); }
.funnel-progress .dot.active { background: var(--blue); }
.funnel-step {
  font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.funnel h2 { font-size: 24px; margin-bottom: 8px; }
.funnel .subtitle { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* Option list — radio card style */
.opt-list { display: grid; gap: 10px; margin-bottom: 20px; }
.opt {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; cursor: pointer; transition: 0.15s; text-align: left;
}
.opt:hover { border-color: var(--tint); background: var(--page-bg); }
.opt.selected { border-color: var(--blue); background: var(--surface); }
.opt-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--surface);
  display: grid; place-items: center; color: var(--blue); font-size: 20px;
}
.opt.selected .opt-icon { background: var(--blue); color: var(--white); }
.opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-main .title { color: var(--ink); font-weight: 700; font-size: 15px; }
.opt-main .desc { color: var(--muted); font-size: 12px; line-height: 1.4; }
.opt-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; transition: 0.15s;
}
.opt.selected .opt-check { background: var(--blue); border-color: var(--blue); color: var(--white); }
.opt.selected .opt-check::after { content: "✓"; color: var(--white); font-size: 12px; font-weight: 800; }

.funnel-actions { display: flex; gap: 10px; margin-top: 18px; }
.funnel-actions .btn { flex: 1; }
.funnel-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
  background: none; border: 0; padding: 6px;
}
.funnel-back:hover { color: var(--ink); }

/* Step 3 – lead form */
.funnel-step3 .form-header {
  background: var(--ink); color: var(--white);
  margin: -40px -40px 24px;
  padding: 24px 40px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
@media (max-width: 500px) {
  .funnel-step3 .form-header { margin: -24px -24px 20px; padding: 20px 24px; }
}
.funnel-step3 .form-header h2 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
.funnel-step3 .form-header .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.funnel-step3 .form-header .tags .pill { background: rgba(255,255,255,0.12); color: var(--white); font-size: 11px; }

/* Preview card — THE KEY ENHANCEMENT (bridge to service page) */
.preview-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--tint) 100%);
  border-radius: var(--r-lg); padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.preview-card .eyebrow { margin-bottom: 6px; }
.preview-card h3 { font-size: 18px; margin-bottom: 6px; }
.preview-card p { color: var(--body); font-size: 14px; margin-bottom: 14px; }
.preview-card .meta-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.preview-card .meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.preview-card .meta-row strong { color: var(--ink); }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-actions .btn { flex: 1; min-width: 140px; }
.preview-actions .btn-ghost { background: var(--white); }

/* Success screen */
.funnel-success {
  text-align: center; padding: 20px 0;
}
.funnel-success .check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--surface);
  color: var(--success); margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 40px;
}
.funnel-success h2 { margin-bottom: 8px; }
.funnel-success p { color: var(--muted); margin-bottom: 24px; }
.next-card {
  background: var(--page-bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; text-align: left; margin-bottom: 16px;
}
.next-card h4 { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
.next-card .ink { font-weight: 700; color: var(--ink); }
.next-card p { color: var(--body); font-size: 14px; margin-bottom: 14px; margin-top: 6px; }

/* Hero layout containing funnel */
.hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 80px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--page-bg) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 560px; gap: 48px; align-items: center;
}
@media (max-width: 1000px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-text h1 { margin: 12px 0; }
.hero-text .lead { margin-bottom: 24px; }
.hero-text .statbar { margin-top: 32px; }

/* Decorative floating pills */
.float-pills { position: absolute; inset: 0; pointer-events: none; }
.float-pills .pill {
  position: absolute; background: var(--white); border: 1px solid var(--line); color: var(--ink);
  font-weight: 600; padding: 8px 14px; font-size: 12px;
  animation: floaty 6s ease-in-out infinite;
}
.float-pills .p1 { top: 10%; left: 5%; animation-delay: 0s; }
.float-pills .p2 { top: 45%; right: 8%; animation-delay: 1.5s; }
.float-pills .p3 { bottom: 15%; left: 8%; animation-delay: 3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1000px) { .float-pills { display: none; } }
