/* SNV Software Enterprise Design System & Custom Styles */

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-brand-blue: #1D4ED8;
  --color-brand-hover: #1E40AF;
  --color-brand-dark: #090D16;
  --color-bg-canvas: #FCFDFE;
  --color-bg-surface: #F8FAFC;
  --color-border: #E2E8F0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body) !important;
  background-color: #FCFDFE;
  color: #0F172A;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  color: #090D16;
  letter-spacing: -0.035em !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01" !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: break-word;
}

.font-heading {
  font-family: var(--font-heading);
}

/* Dark container contrast helper (only when text color is not explicitly set by utility classes) */
.dark-card > h1, .dark-card > h2, .dark-card > h3,
.dark-card > h4, .dark-card > h5, .dark-card > h6 {
  color: #FFFFFF;
}

p, li, span, a, input, button, textarea, select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header & Navbar Helpers */
.nav-link-item {
  white-space: nowrap !important;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-link-item:hover {
  color: var(--ink) !important;
}

.nav-link-item.is-active {
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 9px;
}

/* Enterprise SaaS Background Mesh & Ambient Glow */
.bg-enterprise-mesh {
  background-color: #FAFCFF;
  background-image: 
    radial-gradient(at 15% 15%, rgba(37, 99, 235, 0.05) 0px, transparent 45%),
    radial-gradient(at 85% 12%, rgba(99, 102, 241, 0.05) 0px, transparent 45%),
    radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.03) 0px, transparent 50%),
    linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Enterprise Glassmorphic & Refined Cards */
.enterprise-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enterprise-card:hover {
  border-color: rgba(203, 213, 225, 1);
  box-shadow: 0 12px 35px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.enterprise-glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Enterprise Buttons */
.btn-enterprise-primary {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 4px 14px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.btn-enterprise-primary:hover {
  background: linear-gradient(180deg, #334155 0%, #1E293B 100%);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12), 0 8px 25px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1.5px);
}

.btn-enterprise-blue {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15), 0 4px 14px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.btn-enterprise-blue:hover {
  background: linear-gradient(180deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2), 0 8px 25px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1.5px);
}

.btn-enterprise-secondary {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.btn-enterprise-secondary:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Enterprise Badges & Micro-Pills */
.badge-enterprise {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  letter-spacing: -0.01em;
}

.badge-pill-subtle {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Icon Container Utility */
.enterprise-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  transition: all 0.2s ease;
}

.enterprise-card:hover .enterprise-icon-box {
  border-color: #CBD5E1;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* Light Glassmorphism Cards */
.light-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.light-card-subtle {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

/* Gradient Text Utilities */
.text-gradient-primary {
  background: linear-gradient(135deg, #0F172A 0%, #1D4ED8 60%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Patterns */
.bg-light-pattern {
  background-color: #F8FAFC;
  background-image: radial-gradient(#E2E8F0 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-blue-subtle {
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
}

/* Card Hover Elevation */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 8px 15px -6px rgba(15, 23, 42, 0.04);
  border-color: rgba(37, 99, 235, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Tab Switcher Styling */
.module-tab-btn.active {
  background-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.module-tab-btn {
  transition: all 0.2s ease;
  touch-action: manipulation;
}

/* =========================================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   ========================================================= */

/* Prevent horizontal overflow on small screens */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Table Responsive Scrolling Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Responsive Touch Target Optimization for Mobile */
@media (max-width: 767px) {
  h1 {
    font-size: 2.125rem !important; /* 34px */
    line-height: 1.25 !important;
  }
  
  h2 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.3 !important;
  }

  .px-4-mobile {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Make buttons easily clickable on touchscreens */
  button, a.btn, input[type="submit"] {
    min-height: 44px;
  }

  /* Smooth horizontal scrollbar for tabs on mobile */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .overflow-x-auto::-webkit-scrollbar {
    display: none;
  }
}

/* Floating WhatsApp Chat Widget - Fixed Bottom-Right Corner */
@keyframes pulseWaRing {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 10px 25px rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0), 0 15px 30px rgba(37, 211, 102, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: pulseWaRing 2s infinite;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-online-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #22C55E;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .whatsapp-float-btn {
    bottom: 18px;
    right: 14px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  .whatsapp-online-badge {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
}

/* =========================================================
   WHATSAPP GEOFENCE STAFF ATTENDANCE SIMULATOR STYLES
   ========================================================= */

.wa-simulator-phone {
  background: #0B141A;
  border: 5px solid #1E293B;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(34, 197, 94, 0.12);
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  max-width: 324px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 420px) {
  .wa-simulator-phone {
    border-width: 4px;
    border-radius: 28px;
    max-width: 300px;
  }
}

.wa-phone-notch {
  width: 96px;
  height: 17px;
  background: #1E293B;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wa-phone-notch::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #0F172A;
  border-radius: 50%;
}

.wa-phone-notch::after {
  content: '';
  width: 32px;
  height: 3px;
  background: #0F172A;
  border-radius: 3px;
}

.wa-chat-header {
  background: #1F2C34;
  padding: 22px 10px 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  position: relative;
  z-index: 20;
}

.wa-chat-wallpaper {
  background-color: #0B141A;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  height: 430px;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.wa-chat-wallpaper::-webkit-scrollbar {
  width: 3.5px;
}
.wa-chat-wallpaper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* WhatsApp Message Bubbles */
.wa-msg {
  max-width: 88%;
  font-size: 11.5px;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-msg.wa-msg-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-msg-incoming {
  align-self: flex-start;
  background: #202C33;
  color: #E9EDEF;
  border-radius: 10px 10px 10px 2px;
  padding: 6px 9px 5px 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wa-msg-outgoing {
  align-self: flex-end;
  background: #005C4B;
  color: #E9EDEF;
  border-radius: 10px 10px 2px 10px;
  padding: 6px 9px 5px 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wa-msg-highlight {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: linear-gradient(145deg, #1C2E2A 0%, #152522 100%);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.2);
}

.wa-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 9.5px;
  color: #8696A0;
  margin-top: 2px;
}

.wa-ticks-blue {
  color: #53BDEB;
  font-size: 10.5px;
}

/* WhatsApp Location Card Inside Bubble */
.wa-location-card {
  background: #111B21;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-map-preview {
  height: 78px;
  background: #1E293B;
  background-image: 
    linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.7)),
    radial-gradient(#334155 1.5px, transparent 1.5px);
  background-size: 100% 100%, 14px 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-radar-circle {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.15);
  animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* WhatsApp Typing Indicator */
.wa-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #202C33;
  border-radius: 14px 14px 14px 2px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.wa-typing-dot {
  width: 6px;
  height: 6px;
  background: #8696A0;
  border-radius: 50%;
  animation: waTypingBounce 1.4s infinite ease-in-out both;
}

.wa-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.wa-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes waTypingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
    background: #25D366;
  }
}

/* Simulator Control Tabs */
.wa-step-tab.active {
  background: #1D4ED8;
  color: #FFFFFF;
  border-color: #3B82F6;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

/* =========================================================
   Cloud Architecture & Software Engineering Visual Animations
   ========================================================= */
@keyframes cloudFloatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes cloudFloatAlt {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes laserStreamVertical {
  0% {
    top: -40%;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 120%;
    opacity: 0;
  }
}

@keyframes radarPingNode {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(168, 85, 247, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  }
}

.cloud-float-1 {
  animation: cloudFloatSlow 5.5s ease-in-out infinite;
}

.cloud-float-2 {
  animation: cloudFloatAlt 6.5s ease-in-out infinite 0.7s;
}

.cloud-float-3 {
  animation: cloudFloatSlow 6s ease-in-out infinite 1.4s;
}

.cloud-stream-laser {
  position: absolute;
  width: 2px;
  height: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, #A855F7, #60A5FA, transparent);
  animation: laserStreamVertical 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cloud-node-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cloud-node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.cloud-node-active {
  border-color: rgba(168, 85, 247, 0.8) !important;
  background: rgba(88, 28, 135, 0.2) !important;
}

.terminal-cursor-blink {
  animation: termCursorBlink 1s infinite;
}

@keyframes termCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* =========================================================
   EDITORIAL "RECEIPT / LEDGER" DESIGN LAYER
   Added to replace the generic SaaS-template look.
   ========================================================= */

:root {
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --paper: #F5F1E8;
  --paper-raised: #FFFDF8;
  --paper-deep: #EDE7DB;
  --ink: #16130E;
  --ink-soft: #514A3D;
  --ink-muted: #7A7264;
  --line: #D8CFBE;
  --line-strong: #B9AE9A;
  --brand-blue: #1D4ED8;
  --brand-accent: #C2410C;
  --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
}

html {
  background: var(--paper);
}

body {
  background-color: var(--paper);
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

/* Editorial headline system: serif for chapter headings, sans for UI */
h1, h2, .font-display {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  letter-spacing: -0.018em !important;
}

h1 em, h2 em, .font-display em {
  font-style: italic;
}

h3, h4, h5, h6, .font-heading {
  letter-spacing: -0.025em !important;
}

/* Remove the rainbow-gradient headline treatment */
span.bg-clip-text.text-transparent {
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--brand-blue) !important;
}

.text-gradient-primary {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--brand-blue) !important;
}

.text-gradient-emerald {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: #047857 !important;
}

/* Paper mesh replaces the blue SaaS glow */
.bg-enterprise-mesh {
  background-color: var(--paper);
  background-image:
    radial-gradient(at 8% 0%, rgba(29, 78, 216, 0.055) 0px, transparent 42%),
    radial-gradient(at 92% 8%, rgba(194, 65, 12, 0.045) 0px, transparent 38%),
    linear-gradient(to right, rgba(185, 174, 154, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 174, 154, 0.14) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* Cards become printed paper slips, not floating glass */
.enterprise-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 5px !important;
  box-shadow: 0 1px 0 rgba(22, 19, 14, 0.04), 0 14px 28px -24px rgba(22, 19, 14, 0.28);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.enterprise-card:hover {
  border-color: var(--line-strong);
  box-shadow: 5px 5px 0 rgba(22, 19, 14, 0.055), 0 18px 34px -26px rgba(22, 19, 14, 0.3);
  transform: translateY(-2px);
}

.enterprise-glass-card {
  background: var(--paper-raised);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 rgba(22, 19, 14, 0.06);
}

.enterprise-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--paper) !important;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px var(--paper-raised);
  color: var(--ink-soft) !important;
}

.enterprise-icon-box i {
  color: var(--ink-soft) !important;
}

.enterprise-card:hover .enterprise-icon-box {
  background: var(--paper-raised) !important;
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 3px var(--paper-raised), 2px 2px 0 rgba(22, 19, 14, 0.06);
}

/* Buttons: ink stamps, not glossy gradients */
.btn-enterprise-primary {
  background: var(--ink);
  background-image: none;
  border: 1px solid var(--ink);
  border-radius: 4px !important;
  box-shadow: 3px 3px 0 rgba(22, 19, 14, 0.16);
  letter-spacing: -0.01em;
}

.btn-enterprise-primary:hover {
  background: #2A251C;
  background-image: none;
  box-shadow: 4px 4px 0 rgba(22, 19, 14, 0.18);
  transform: translate(-1px, -1px);
}

.btn-enterprise-secondary {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: 4px !important;
  box-shadow: none;
}

.btn-enterprise-secondary:hover {
  background: #FFF9EC;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(22, 19, 14, 0.07);
  transform: translate(-1px, -1px);
}

.btn-enterprise-blue {
  background: var(--brand-blue);
  background-image: none;
  border: 1px solid #173DB0;
  border-radius: 4px !important;
  box-shadow: 3px 3px 0 rgba(22, 19, 14, 0.14);
}

.badge-enterprise {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: 3px !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.badge-pill-subtle {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink-soft);
  border-radius: 3px;
}

/* Header & utility bar */
#mainNavbar {
  background: rgba(245, 241, 232, 0.92) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body > div.bg-slate-900 {
  background: var(--ink) !important;
  border-bottom: 1px solid #2A251C;
}

/* Footer in ink with a torn-paper top rule */
footer {
  background: var(--ink) !important;
}

footer .bg-gradient-to-r.from-slate-800 {
  background: #211D16 !important;
  border-color: #3B3428 !important;
}

/* WhatsApp float: stop the permanent attention ring */
.whatsapp-float-btn {
  animation: none !important;
  border-radius: 14px !important;
  background: #1F8A4C !important;
  box-shadow: 4px 4px 0 rgba(22, 19, 14, 0.18) !important;
}

.whatsapp-float-btn:hover {
  transform: translate(-1px, -1px) !important;
  background: #17703D !important;
  box-shadow: 5px 5px 0 rgba(22, 19, 14, 0.2) !important;
}

/* Kill the constant ping halos; keep the solid status dots */
.animate-ping {
  display: none !important;
}

/* Utility classes for the new editorial system */
.font-display {
  font-family: var(--font-display) !important;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.price-amount {
  font-family: var(--font-mono) !important;
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brand-accent);
  display: inline-block;
}

.receipt-rule {
  border: 0;
  border-top: 1px dashed var(--line-strong);
  margin: 1.25rem 0;
}

.paper-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 6px 6px 0 rgba(22, 19, 14, 0.055);
}

.receipt-edge {
  --notch: 7px;
  -webkit-mask-image:
    radial-gradient(circle at 50% 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)),
    radial-gradient(circle at 50% 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px));
  -webkit-mask-size: 18px 100%, 18px 100%;
  -webkit-mask-position: top left, bottom left;
  -webkit-mask-repeat: repeat-x, repeat-x;
  mask-image:
    radial-gradient(circle at 50% 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)),
    radial-gradient(circle at 50% 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px));
  mask-size: 18px 100%, 18px 100%;
  mask-position: top left, bottom left;
  mask-repeat: repeat-x, repeat-x;
}

.photo-frame {
  position: relative;
  padding: 7px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(22, 19, 14, 0.07);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.78) contrast(1.04) sepia(0.06);
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(245, 241, 232, 0.05), rgba(194, 65, 12, 0.08));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* Product card labels & checks, in ink on paper */
.product-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.22rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-check {
  color: var(--ink-soft) !important;
}

/* Product finder controls */
.persona-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.persona-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.persona-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-raised);
  box-shadow: 3px 3px 0 rgba(22, 19, 14, 0.16);
}

.persona-btn i {
  color: currentColor;
  font-size: 13px;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.result-tag i {
  color: var(--ink-soft);
}

/* Pricing comparison matrix */
.pricing-matrix .bg-emerald-50\/50,
.pricing-matrix .bg-emerald-50 {
  background: rgba(239, 233, 220, 0.65) !important;
}

.pricing-matrix .text-emerald-700,
.pricing-matrix .text-emerald-800,
.pricing-matrix .text-purple-700,
.pricing-matrix .text-purple-800 {
  color: var(--ink) !important;
}

.pricing-matrix .text-emerald-600 {
  color: #15803D !important;
}

.pricing-matrix td > i.fa-solid:not(.fa-check):not(.fa-minus) {
  color: var(--ink-soft) !important;
}

@media (max-width: 639px) {
  .pricing-matrix thead th:first-child,
  .pricing-matrix tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    background: var(--paper-raised);
    box-shadow: 1px 0 0 var(--line);
  }

  .pricing-matrix thead th:first-child {
    background: #F5F1E8;
  }
}

/* FAQ controls */
.faq-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.faq-tab-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.faq-tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-raised);
  box-shadow: 3px 3px 0 rgba(22, 19, 14, 0.16);
}

.faq-tab-btn i {
  color: currentColor;
  font-size: 12px;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  color: var(--ink-soft) !important;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

/* Product card media */
.product-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  aspect-ratio: 16 / 10;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02) sepia(0.05);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.enterprise-card:hover .product-media img {
  transform: scale(1.035);
  filter: saturate(0.9) contrast(1.02) sepia(0.02);
}

.product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(22, 19, 14, 0.28) 100%);
  pointer-events: none;
}

/* Ledger rows for the process section */
.ledger-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px dashed var(--line);
}

.ledger-row:last-child {
  border-bottom: 1px dashed var(--line);
}

.ledger-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-accent);
  padding-top: 0.2rem;
}

/* Client ledger: live-site strip, client marks and printed fact rows */
.client-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.client-strip-item:hover {
  opacity: 0.68;
  transform: translateY(-1px);
}

.client-strip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.client-strip-naira {
  display: block;
  height: 32px;
  width: auto;
}

.client-strip-emblem {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.client-strip-divider {
  display: none;
  color: var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}

@media (min-width: 640px) {
  .client-strip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
  }

  .client-strip-naira {
    height: 38px;
  }

  .client-strip-emblem {
    width: 40px;
    height: 40px;
  }

  .client-strip-divider {
    display: block;
  }
}

.client-strip-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.client-strip-place {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.client-logo-naira {
  display: block;
  height: 48px;
  width: auto;
  max-width: 190px;
}

.client-logo-naira--lg {
  height: 56px;
}

.client-logo-emblem {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.client-logo-emblem--lg {
  width: 64px;
  height: 64px;
}

.client-ledger-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}

.client-ledger-facts > div:first-child {
  padding-top: 0;
}

.client-ledger-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.client-ledger-facts dt {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.client-ledger-facts dd {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.client-index-naira {
  display: block;
  height: 30px;
  width: auto;
  max-width: 96px;
}

.client-index-emblem {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.ledger-anchor {
  scroll-margin-top: 96px;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3D story */
.bill-journey {
  position: relative;
  height: 300vh;
  background: #14110C;
  color: #F5F1E8;
}

.bill-journey-sticky {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #14110C;
  overflow: hidden;
}

.bill-journey-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.bill-journey-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.bill-journey-copy {
  position: absolute;
  left: max(1.25rem, 6vw);
  bottom: 9vh;
  z-index: 3;
  max-width: 26rem;
  pointer-events: none;
}

.bill-journey-step {
  opacity: 0.35;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border-color: rgba(255, 255, 255, 0.12);
}

.bill-journey-step.is-active {
  opacity: 1;
  transform: translateX(4px);
  border-color: #F0A268;
}

.bill-journey-fallback {
  display: none;
}

.bill-journey.no-webgl {
  height: auto !important;
}

.bill-journey.no-webgl .bill-journey-sticky {
  position: relative;
  top: 0;
  height: auto;
  min-height: 0;
}

.bill-journey.no-webgl .bill-journey-stage {
  height: auto !important;
  min-height: 0 !important;
}

.bill-journey.no-webgl .bill-journey-canvas,
.bill-journey.no-webgl .bill-journey-scroll-hint {
  display: none;
}

.bill-journey.no-webgl .bill-journey-fallback {
  display: block;
}

.bill-journey.no-webgl .bill-journey-step {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  .bill-journey {
    height: auto;
  }

  .bill-journey-sticky {
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
  }

  .bill-journey-canvas {
    height: 62vh;
    min-height: 380px;
  }

  .bill-journey-copy {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    padding: 1.5rem 1.25rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bill-journey {
    height: auto !important;
  }

  .bill-journey-canvas {
    display: none;
  }

  .bill-journey-fallback {
    display: block;
  }

  .bill-journey-step {
    opacity: 1;
    transform: none;
  }
}
