/* Funnel flows — extends main site styles (styles.css / sections.css) */

.funnel-landing {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.funnel-landing .hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: var(--shadow-pop);
}

.funnel-landing .display {
  margin-top: 8px;
}

.funnel-landing .lead {
  margin: 16px auto 0;
  max-width: 540px;
}

.stats.funnel-landing-stats {
  margin: 40px 0 48px;
}

.funnel-steps-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  text-align: left;
}

.funnel-steps-compact .step {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.funnel-steps-compact .step .icon-tile {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.funnel-steps-compact .step h4 {
  margin: 0 0 4px;
}

.funnel-steps-compact .step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.funnel-shell {
  max-width: 640px;
  margin: 0 auto;
}

.funnel-shell-wide {
  max-width: 960px;
  margin: 0 auto;
}

.funnel-pill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.funnel-pill {
  width: 100%;
  padding: 16px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}

.funnel-pill:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}

.funnel-pill.sel {
  border-color: var(--primary);
  background: rgba(63, 136, 232, 0.12);
  box-shadow: 0 0 0 3px rgba(63, 136, 232, 0.2);
}

/* Plan step — full width, not constrained by .funnel max-width */
.card.funnel-plan-step {
  max-width: 100%;
  overflow: visible;
}

.funnel-plan-grid {
  margin-top: 8px;
}

.funnel-plan-grid .price {
  min-width: 0;
  width: 100%;
  cursor: pointer;
  padding: 28px 22px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  appearance: none;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.funnel-plan-grid .price:hover {
  border-color: var(--primary);
}

.funnel-plan-grid .price .amt {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0;
  font-size: clamp(28px, 3.2vw, 42px);
}

.funnel-plan-grid .price .amt small {
  margin-left: 2px;
  white-space: nowrap;
}

.funnel-plan-grid .price .pname {
  font-size: var(--text-base);
}

.funnel-plan-grid .price .pdesc {
  min-height: 44px;
}

.funnel-plan-grid .price .btn {
  pointer-events: none;
  margin-top: auto;
}

.price.funnel-plan-sel {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(232, 168, 63, 0.25);
}

@media (max-width: 960px) {
  .funnel-plan-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.funnel-states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
  margin-bottom: 8px;
}

.funnel-states-grid .funnel-pill {
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  padding: 12px 10px;
}

.funnel-states-grid::-webkit-scrollbar {
  width: 6px;
}

.funnel-states-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

.funnel-selection-hint {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin: 12px 0 4px;
}

.funnel-toast-host {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.funnel-toast-host.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.funnel-toast-host .chip {
  background: var(--navy-700);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 20px;
  height: auto;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-pop);
}

.funnel-toast-host .chip.error {
  background: #7f1d1d;
  border-color: #991b1b;
}

.funnel-toast-host .chip.warning {
  background: var(--warning-bg);
  color: var(--ink-900);
  border-color: var(--warning);
}

.funnel-toast-stack {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.funnel-toast-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-pop);
  animation: funnelToastIn 0.3s var(--ease-out);
}

.funnel-toast-card.error {
  border-left-color: #e93d3d;
}

.funnel-toast-card.warning {
  border-left-color: var(--accent);
}

.funnel-toast-card.success {
  border-left-color: var(--success);
}

.funnel-toast-card b {
  display: block;
  font-size: var(--text-sm);
  color: var(--fg);
  margin-bottom: 4px;
}

.funnel-toast-card span {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

@keyframes funnelToastIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .funnel-states-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .funnel-toast-stack {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .funnel-states-grid {
    grid-template-columns: 1fr;
  }
}

.funnel-standalone {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.funnel-status-line {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.funnel-status-ok {
  color: var(--success);
}

.funnel-status-err {
  color: #e93d3d;
}

.funnel-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--hairline);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: funnelSpin 0.7s linear infinite;
}

@keyframes funnelSpin {
  to {
    transform: rotate(360deg);
  }
}

.accept-driver {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f4a 100%);
  background-attachment: fixed;
  color: #fff;
}

.accept-driver-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.accept-driver-logo {
  width: 180px;
  height: auto;
  margin: 0 auto 40px;
  display: block;
  border-radius: 18px;
}

.accept-driver-checkmark {
  width: 120px;
  height: 120px;
  border: 4px solid #4fc3f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
  animation: acceptScaleIn 0.5s ease;
}

.accept-driver-checkmark svg {
  width: 60px;
  height: 60px;
  stroke: #4fc3f7;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: acceptDrawCheck 0.5s ease 0.3s forwards;
}

@keyframes acceptScaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes acceptDrawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.accept-driver-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}

.accept-driver-message {
  color: #8b9dc3;
  font-size: 18px;
  margin-bottom: 50px;
  line-height: 1.6;
}

.accept-driver-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  margin-bottom: 30px;
}

.accept-driver-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.accept-driver-info p {
  color: #8b9dc3;
  font-size: 16px;
  margin-bottom: 10px;
}

.accept-driver-loading {
  color: #4fc3f7;
  font-size: 14px;
  margin-top: 20px;
}

.accept-driver-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  min-height: 64px;
}

.accept-driver-spinner-lg {
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(79, 195, 247, 0.25);
  border-top-color: #4fc3f7;
  border-radius: 50%;
  animation: funnelSpin 0.8s linear infinite;
}

.accept-driver-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(79, 195, 247, 0.3);
  border-top-color: #4fc3f7;
  border-radius: 50%;
  animation: funnelSpin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

.accept-driver-error {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
}
