/* ==========================================================================
   SIPM Payment Funnel Stylesheet
   Modern, Clean, High-Converting Mobile-First CSS
   ========================================================================== */

:root {
  --sipm-primary: #7024a9;
  --sipm-primary-dark: #581c87;
  --sipm-primary-light: #9333ea;
  --sipm-primary-soft: #f3e8ff;
  --sipm-accent: #10b981;
  --sipm-accent-dark: #059669;
  --sipm-accent-soft: #ecfdf5;
  --sipm-warning: #f59e0b;
  --sipm-dark: #0f172a;
  --sipm-gray-900: #111827;
  --sipm-gray-800: #1f2937;
  --sipm-gray-700: #374151;
  --sipm-gray-600: #4b5563;
  --sipm-gray-500: #6b7280;
  --sipm-gray-200: #e5e7eb;
  --sipm-gray-100: #f3f4f6;
  --sipm-gray-50: #f9fafb;
  --sipm-white: #ffffff;
  --sipm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --sipm-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --sipm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --sipm-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--sipm-gray-800);
  background-color: #faf8fd;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */
.header {
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(112, 36, 169, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sipm-accent-soft);
  color: var(--sipm-accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--sipm-accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(112, 36, 169, 0.08) 0%, transparent 70%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--sipm-primary-soft);
  color: var(--sipm-primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sipm-gray-900);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--sipm-primary);
  background: linear-gradient(135deg, var(--sipm-primary) 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--sipm-gray-600);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--sipm-primary) 0%, var(--sipm-primary-dark) 100%);
  color: var(--sipm-white);
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(112, 36, 169, 0.45);
  transition: all 0.25s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(112, 36, 169, 0.55);
}

/* Logos Bar */
.partners-section {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(112, 36, 169, 0.08);
  border-bottom: 1px solid rgba(112, 36, 169, 0.08);
  background: var(--sipm-white);
}

.partners-title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--sipm-gray-500);
  margin-bottom: 1.5rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.75rem;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sipm-gray-700);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.partner-item:hover {
  transform: translateY(-2px);
}

.partner-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* What's Included Section */
.included-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sipm-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--sipm-gray-900);
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--sipm-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(112, 36, 169, 0.1);
  box-shadow: var(--sipm-shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sipm-shadow-lg);
  border-color: rgba(112, 36, 169, 0.3);
}

.feature-check {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sipm-primary-soft);
  color: var(--sipm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sipm-gray-900);
  margin-bottom: 0.35rem;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--sipm-gray-600);
  line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, #faf8fd 0%, #f3edf9 100%);
  border-top: 1px solid rgba(112, 36, 169, 0.08);
}

.pricing-banner {
  background: linear-gradient(135deg, #2e1065 0%, #4c1d95 100%);
  color: var(--sipm-white);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  box-shadow: var(--sipm-shadow-lg);
}

.pricing-banner-title {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-banner-amount {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fde047;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--sipm-white);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--sipm-gray-200);
  box-shadow: var(--sipm-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sipm-shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--sipm-primary);
  box-shadow: 0 15px 35px -5px rgba(112, 36, 169, 0.2);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--sipm-white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  box-shadow: var(--sipm-shadow-sm);
  white-space: nowrap;
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sipm-primary);
  background: var(--sipm-primary-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sipm-gray-900);
  margin-bottom: 0.5rem;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--sipm-gray-900);
}

.plan-period {
  font-size: 0.9rem;
  color: var(--sipm-gray-500);
  font-weight: 600;
}

.plan-details {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--sipm-gray-700);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.plan-detail-icon {
  color: var(--sipm-primary);
  font-weight: 800;
  margin-top: 1px;
}

.bank-info-box {
  background: var(--sipm-gray-50);
  border: 1px dashed var(--sipm-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.bank-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.bank-info-label {
  color: var(--sipm-gray-500);
}

.bank-info-value {
  font-weight: 700;
  color: var(--sipm-gray-900);
}

.plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--sipm-primary);
  color: var(--sipm-white);
  box-shadow: 0 4px 12px rgba(112, 36, 169, 0.35);
}

.btn-primary:hover {
  background: var(--sipm-primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--sipm-gray-900);
  color: var(--sipm-white);
}

.btn-secondary:hover {
  background: var(--sipm-gray-800);
  transform: translateY(-2px);
}

.btn-koko {
  background: #00e5a3;
  color: #0d1b2a;
}

.btn-koko:hover {
  background: #00cc90;
  transform: translateY(-2px);
}

.slip-notice {
  text-align: center;
  max-width: 600px;
  margin: 2.5rem auto 0;
  background: var(--sipm-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--sipm-gray-200);
  font-size: 0.925rem;
  color: var(--sipm-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Modal Form */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--sipm-white);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--sipm-shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--sipm-gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sipm-gray-600);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--sipm-gray-200);
  color: var(--sipm-gray-900);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sipm-gray-900);
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.925rem;
  color: var(--sipm-gray-500);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sipm-gray-700);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--sipm-gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--sipm-gray-900);
  background-color: var(--sipm-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--sipm-primary);
  box-shadow: 0 0 0 3px rgba(112, 36, 169, 0.15);
}

.form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: none;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--sipm-primary);
  color: var(--sipm-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(112, 36, 169, 0.35);
  transition: all 0.2s ease;
}

.form-submit-btn:hover {
  background: var(--sipm-primary-dark);
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Thank You State */
.thank-you-state {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.thank-you-state.active {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sipm-accent-soft);
  color: var(--sipm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.lead-code-pill {
  display: inline-block;
  background: var(--sipm-primary-soft);
  color: var(--sipm-primary);
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0 1.25rem;
}

.next-steps-box {
  background: var(--sipm-gray-50);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  margin: 1.5rem 0;
  font-size: 0.925rem;
}

.next-step-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.next-step-num {
  background: var(--sipm-primary);
  color: var(--sipm-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: #0d0614;
  color: var(--sipm-gray-500);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-copy {
  color: var(--sipm-gray-500);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0 1.5rem;
  }
  .partners-grid {
    gap: 1.5rem;
  }
  .partner-item {
    font-size: 0.85rem;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .modal-card {
    padding: 1.5rem;
  }
}
