/* =========================================================
   WEBPLEX SOLUTION — PRICING PAGE
   ========================================================= */

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f9faff;

  --primary: #8b2cf0;
  --primary-light: #9e4ef2;
  --blue: #1f63ea;
  --pink: #f0209e;
  --cyan: #0fb4f7;
  /* Logo colours: pink -> violet -> blue (-> cyan) */
  --brand-gradient: linear-gradient(135deg, var(--pink) 0%, var(--primary) 52%, var(--blue) 100%);
  --text-gradient: linear-gradient(110deg, var(--pink) 0%, var(--primary) 38%, var(--blue) 72%, var(--cyan) 100%);
  --green: #18a66a;

  --text-dark: #111827;
  --text: #263143;
  --muted: #667085;

  --border: #e5e9f2;
  --border-strong: #d9deea;

  --shadow-sm: 0 8px 25px rgba(40, 50, 80, 0.06);
  --shadow-md: 0 18px 45px rgba(44, 51, 90, 0.10);
  --shadow-lg: 0 28px 70px rgba(79, 25, 136, 0.14);

  --radius: 22px;
  --radius-sm: 14px;

  --container: 1180px;
}

/* ==================== RESET ==================== */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.no-scroll {
  overflow: hidden; /* Prevents background scrolling when mobile menu is open */
}

/* Visible dotted background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(139, 44, 240, .30) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: .75;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .92) 75%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 233, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  flex-shrink: 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 158px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.nav-button,
.contact-us-btn {
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-button {
  color: #535d70;
}

.nav-button:hover {
  color: var(--primary);
  background: #f5ecfe;
}

.nav-button.active {
  color: var(--primary);
  background: #f3e9fd;
}

.contact-us-btn {
  margin-left: 7px;
  padding-inline: 19px;
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 8px 20px rgba(139, 44, 240, 0.20);
}

.contact-us-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(139, 44, 240, 0.28);
}

/* Animated Menu Icon */
.menu-icon {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1001; /* Keep above full screen menu */
  transition: all 0.3s ease;
}

.menu-icon .bar {
  width: 21px;
  height: 2px;
  border-radius: 10px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

/* Hamburger to X Animation */
.menu-icon.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-icon.open .bar:nth-child(2) { opacity: 0; }
.menu-icon.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */

.pricing-hero {
  padding: 105px 0 55px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(139, 44, 240, 0.45);
}

.pricing-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-dark);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-hero p {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* =========================================================
   PRICING SECTION & TOGGLES
   ========================================================= */

.pricing-section {
  padding: 20px 0 90px;
}

.pricing-toggle-container {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 42px;
  padding: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allows tabs to drop to a new line on small screens */
  justify-content: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.toggle-btn {
  border: 0;
  background: transparent;
  color: #697386;
  padding: 11px 21px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-btn:hover {
  color: var(--primary);
}

.toggle-btn.active {
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 7px 18px rgba(139, 44, 240, 0.22);
}

/* =========================================================
   PRICING CARDS
   ========================================================= */

.pricing-cards-wrapper {
  width: 100%;
}

.pricing-group {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.pricing-group.active-group {
  display: grid;
}

.pricing-group[hidden] {
  display: none !important;
}

/* Android and ERP usually only have 2 plans, keep them centered */
.pricing-group#android,
.pricing-group#erp {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

.pricing-card {
  position: relative;
  min-height: 500px;
  padding: 31px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-7px);
  border-color: rgba(139, 44, 240, 0.25);
  box-shadow: var(--shadow-md);
}

.pricing-card.recommended {
  border: 1px solid rgba(139, 44, 240, 0.34);
  box-shadow: 0 20px 50px rgba(139, 44, 240, 0.13);
}

/* Logo-gradient border: the mask cuts out the middle so only a 1.5px ring shows */
.pricing-card.recommended::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 10px;
  color: var(--primary);
  background: #f3e9fd;
  border: 1px solid #e8d6fc;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-top {
  padding-right: 80px;
}

.plan-label {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.plan-name {
  color: var(--text-dark);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.plan-desc {
  min-height: 51px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 27px 0 25px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--border);
}

.price {
  color: var(--text-dark);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.price-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
}

.plan-features li {
  position: relative;
  padding-left: 27px;
  color: #4f596b;
  font-size: 14px;
  line-height: 1.5;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #f3e9fd;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.plan-btn {
  width: 100%;
  min-height: 49px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--primary);
  background: #f6effe;
  border: 1px solid #ead9fc;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  transition: all 0.25s ease;
}

.plan-btn span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.plan-btn:hover {
  color: #ffffff;
  background: var(--brand-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(139, 44, 240, 0.20);
}

.plan-btn:hover span {
  transform: translateX(3px);
}

.plan-btn.btn-highlight {
  color: #ffffff;
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 9px 22px rgba(139, 44, 240, 0.18);
}

.plan-btn.btn-highlight:hover {
  box-shadow: 0 13px 28px rgba(139, 44, 240, 0.26);
}

/* =========================================================
   CUSTOM CTA
   ========================================================= */

.pricing-cta {
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 99, 234, 0.10), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(139, 44, 240, 0.09), transparent 35%),
    #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pricing-cta .section-kicker {
  margin-bottom: 10px;
}

.pricing-cta h2 {
  max-width: 690px;
  color: var(--text-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.pricing-cta p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.cta-button {
  flex-shrink: 0;
  min-height: 49px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  background: var(--brand-gradient);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(139, 44, 240, 0.20);
  transition: all 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(139, 44, 240, 0.28);
}

.cta-button span {
  font-size: 18px;
}

/* =========================================================
   DEFAULT DESKTOP FOOTER
   ========================================================= */

.site-footer {
  padding: 65px 0 22px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 70px;
  align-items: start;
}

.footer-brand-column {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  width: 145px;
  height: auto;
}

.footer-brand-column p {
  max-width: 300px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.footer-label {
  display: block;
  margin-bottom: 17px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column > a {
  color: #667085;
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column > a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* -------------------------
   CONTACT DETAILS (ICON LAYOUT)
   ------------------------- */

.footer-contact {
  gap: 16px;
}

.footer-contact .contact-link {
  display: flex;
  flex-direction: row; /* Align icon and text horizontally */
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-contact .contact-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Hover effects */
.footer-contact .contact-link:hover .footer-icon {
  transform: scale(1.15); /* Icon gently pops on hover */
}

.footer-contact .contact-link:hover span {
  color: var(--primary);
}


.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.footer-bottom-brand {
  color: var(--text-dark);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-bottom-brand:hover {
  color: var(--primary);
}

/* =========================================================
   MEDIA QUERIES (FULLY RESPONSIVE CASCADE)
   ========================================================= */

/* Tablets & Small Laptops (Max Width: 992px) */
@media (max-width: 992px) {
  .menu-icon {
    display: flex;
  }
  
  /* Animated Full Screen Menu */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    overflow-y: auto; 
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
  }

  .nav-button, .contact-us-btn {
    width: 100%;
    max-width: 250px;
    font-size: 18px; 
    padding: 15px;
    justify-content: center;
  }
  
  .nav-button {
    background: transparent;
  }

  /* Grid Adjustments for Pricing */
  .pricing-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-group#android,
  .pricing-group#erp {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Transition footer to 2 columns before mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }
  
  .footer-brand-column {
    grid-column: 1 / -1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Tablets Landscape & Large Phones (Max Width: 768px) */
@media (max-width: 768px) {
  .pricing-hero {
    padding: 80px 0 50px;
  }

  .pricing-hero h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .pricing-toggle-container {
    padding: 8px;
    border-radius: 16px;
  }
  
  .toggle-btn {
    padding: 9px 15px;
    font-size: 13px;
  }

  .pricing-group,
  .pricing-group#android,
  .pricing-group#erp {
    grid-template-columns: 1fr; /* All cards stack to 1 column */
    max-width: 500px;
    margin: 0 auto;
  }

  .pricing-cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .cta-button {
    width: 100%;
  }

  /* --- CENTERED FOOTER FOR MOBILE --- */
  .site-footer {
    text-align: center;
    padding: 50px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand-column, 
  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin: 0 auto;
    width: 100%;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand-column p {
    margin: 16px auto 0;
  }

  .footer-label {
    text-align: center;
    width: 100%;
  }

  .footer-column > a:hover {
    transform: translateY(-2px); /* Makes links bounce up instead of slide right on mobile */
  }

  .footer-contact > a {
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    text-align: center;
  }
}

/* Mobile Phones (Max Width: 480px) */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 30px);
  }

  .pricing-card {
    padding: 25px 20px;
    min-height: auto;
  }

  .pricing-cta {
    padding: 30px 20px;
  }
}