/* SnapOrders Modern B2B & D2C High-Conversion Stylesheet */
:root {
  --so-primary: #128c7e;
  --so-primary-dark: #075e54;
  --so-primary-light: #25d366;
  --so-primary-glow: rgba(37, 211, 102, 0.2);
  --so-dark: #0b132b;
  --so-dark-surface: #111d42;
  --so-slate-900: #0f172a;
  --so-slate-800: #1e293b;
  --so-slate-700: #334155;
  --so-slate-600: #475569;
  --so-slate-500: #64748b;
  --so-slate-200: #e2e8f0;
  --so-slate-100: #f1f5f9;
  --so-slate-50: #f8fafc;
  --so-amber: #f59e0b;
  --so-blue: #2563eb;
  --so-purple: #7c3aed;
  --so-radius-sm: 8px;
  --so-radius-md: 12px;
  --so-radius-lg: 16px;
  --so-radius-xl: 24px;
  --so-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --so-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --so-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --so-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Typography Enhancements */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Subtle Grid Background */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}
.dark-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Audience Toggle Cards */
.audience-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
}
.audience-card.active {
  border-color: #25d366;
  background-color: #ffffff;
  box-shadow: 0 12px 32px -4px rgba(37, 211, 102, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.audience-card:not(.active) {
  opacity: 0.82;
  border-color: #e2e8f0;
  background-color: rgba(255, 255, 255, 0.6);
}
.audience-card:not(.active):hover {
  opacity: 1;
  border-color: #cbd5e1;
  background-color: #ffffff;
  transform: translateY(-1px);
}

/* Mockup Phone Frame */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 600px;
  background: #0f172a;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 10px #1e293b, 0 0 0 12px #334155;
  overflow: hidden;
  margin: 0 auto;
}
.phone-speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #475569;
  border-radius: 4px;
  z-index: 30;
}
.phone-camera {
  position: absolute;
  top: 11px;
  left: calc(50% + 50px);
  width: 10px;
  height: 10px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 50%;
  z-index: 30;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

/* Feature Tabs */
.feature-tab-btn {
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}
.feature-tab-btn.active {
  border-bottom-color: #128c7e;
  color: #075e54;
  background-color: rgba(18, 140, 126, 0.08);
}
.feature-tab-btn:not(.active):hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Pricing Toggle Switch */
.toggle-switch-bg {
  position: relative;
  background-color: #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.toggle-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Badges */
.badge-bharat {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  color: #c2410c;
}

/* High Contrast WhatsApp Button */
.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
  transition: all 0.2s ease;
}
.btn-whatsapp:hover {
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
}
.btn-whatsapp:active {
  transform: scale(0.98);
}

/* Primary Dark Button */
.btn-dark {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.25);
  transition: all 0.2s ease;
}
.btn-dark:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}
.btn-dark:active {
  transform: scale(0.98);
}

/* Dropdown Menu styling */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 8px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* Comparison Table styling */
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.highlight-column {
  background-color: rgba(37, 211, 102, 0.05);
  border-left: 2px solid #25d366;
  border-right: 2px solid #25d366;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }
}
.pulse-badge {
  animation: pulseGlow 2.5s infinite;
}

/* ==========================================================================
   SnapOrders Free Merchant Tools Suite Styles
   Self-contained robust layout styles ensuring perfect responsive UI
   independent of Tailwind purge/build states.
   ========================================================================== */

/* Breadcrumb nav */
.so-tools-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.so-tools-breadcrumb a {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}
.so-tools-breadcrumb a:hover {
  color: #059669;
}

/* Header Badge */
.so-tools-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  background: #f0fdf4;
  color: #166534;
}

/* Tool Main Card Container */
.so-tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .so-tool-card {
    padding: 2.5rem;
  }
}

/* Tool Responsive 2-Column Split Layout */
.so-tool-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 900px) {
  .so-tool-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: start;
  }
  .so-tool-grid-balanced {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form Section Styling */
.so-tool-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.so-form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  margin-bottom: 0.4rem;
}
.so-form-input, .so-form-textarea, .so-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.so-form-input:focus, .so-form-textarea:focus, .so-form-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.so-form-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* Preview / Output Sidebar Box */
.so-tool-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 420px;
  box-sizing: border-box;
  width: 100%;
}
.so-tool-preview-dark {
  background: #0f172a;
  border-color: #1e293b;
  color: #ffffff;
}

/* Tools Hub 4-Card Grid */
.so-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .so-hub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
.so-hub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.so-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Contextual Funnel CTA Banner */
.so-tool-funnel-banner {
  background: linear-gradient(135deg, #022c22 0%, #0f172a 60%, #0f172a 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  padding: 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
@media (min-width: 768px) {
  .so-tool-funnel-banner {
    flex-direction: row;
    align-items: center;
    padding: 2.5rem;
  }
}
