/* --- Reset / Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* --- Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 200;
}

nav .logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: #3b82f6;
}

nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

nav .menu a {
  margin: 0 12px;
  color: #1f2937;
  font-weight: 500;
  transition: color 0.2s;
}

nav .menu a:hover {
  color: #3b82f6;
}

nav .menu a.active-page {
  color: #3b82f6;
  font-weight: 700;
}

nav .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

nav > .login-btn {
  white-space: nowrap;
}

/* --- Buttons --- */
.login-btn {
  background: #3b82f6;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}

.login-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.buy-now {
  background: #3b82f6;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter .2s;
  margin-top: 10px;
}

.buy-now:hover {
  filter: brightness(0.95);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 999px;
  margin-top: 20px;
  font-size: 0.95rem;
  backdrop-filter: blur(5px);
}

.hero-cta {
  display: inline-block;
  padding: 12px 24px;
  background: #ffffff;
  color: #3b82f6;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.hero-cta:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero-cta-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  text-decoration: none;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  transform: translateY(-2px);
}

.buy-now, .existing-btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.2s;
  border: none;
  margin-top: 10px;
}

.buy-now {
  background: #3b82f6;
  color: #fff;
}

.buy-now:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.existing-btn {
  background: #10b981;
  color: #fff;
}

.existing-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* Trust Strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  font-size: 0.8rem;
  color: #6b7280;
  flex-wrap: wrap;
  text-align: center;
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-strip i {
  color: #10b981;
}

/* --- Hero Section (Base) --- */
header.hero {
  margin: 0 auto;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #60a5fa 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Darker hero variant for Company page */
header.hero.hero-dark {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
}

header.hero h1 {
  margin-bottom: 1rem;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

header.hero p {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* Hero Video Support */
header.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

header.hero .hero-content {
  position: relative;
  z-index: 1;
}

/* --- Banner --- */
.banner {
  background: linear-gradient(135deg,#3b82f6,#60a5fa);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-weight: 700;
  border-radius: 0.5rem;
  margin: 2rem auto;
  max-width: 1120px;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* --- Features Section --- */
.features {
  padding: 4rem 2rem;
}

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

.feature {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.feature p {
  color: #374151;
}

/* --- Plans / Pricing --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 40px;
}

.plan {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.plan h3 {
  color: #1e3a8a;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.plan .price {
  font-weight: 700;
  font-size: 2.2rem;
  margin: 15px 0;
  color: #1e3a8a;
}

.plan .minutes,
.plan .overage {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Plan Variants */
.plan.popular {
  border-color: #3b82f6;
}

.plan.popular::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan.selected {
  border-color: #2563eb;
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.billing-toggle {
  text-align: center;
  margin: 10px 0 20px;
  font-weight: 600;
}
.billing-toggle span {
  margin: 0 8px;
}

.cost-calculator {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 20px 25px;
  background: #f8fafc;
  border-left: 5px solid #3b82f6;
  border-radius: 10px;
}
.cost-calculator h3 {
  color: #1e3a8a;
  margin-bottom: 10px;
  font-size: 1.4rem;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.cost-grid label { display:block; font-weight:600; margin-bottom:6px; }
.cost-grid input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
}
.cost-total {
  margin-top: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.comparison-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.comparison-table th, .comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table th {
  background: #f8fafc;
  color: #1e3a8a;
}
.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
  text-align: center;
}

/* --- Usage Pricing --- */
.usage-pricing {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 20px 25px;
  background: #f8fafc;
  border-left: 5px solid #3b82f6;
  border-radius: 10px;
}
.usage-pricing h3 {
  color: #1e3a8a;
  margin-bottom: 10px;
  font-size: 1.4rem;
}
.usage-pricing ul {
  margin: 0;
  padding-left: 20px;
}
.usage-pricing li {
  color: #374151;
  line-height: 1.6;
}

/* --- Forwarding Input --- */
.forwarding {
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  max-width: 1120px;
}

.forwarding label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.forwarding select,
.forwarding input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

/* --- Cart (Updated to match usage) --- */
#cart-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #3b82f6;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

#cart-icon:hover {
  transform: scale(1.1);
}

#cart-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #3b82f6;
  color: white;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 2px 6px;
}

#cart-popup {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px;
  max-height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 1002;
  overflow-y: auto;
  font-size: 0.9rem;
}

#cart-popup h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #1e3a8a;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 5px;
  gap: 5px;
}

.cart-item div {
  flex: 1;
}

.cart-item input {
  width: 50px;
  padding: 2px 5px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-align: center;
}

.cart-item button {
  background: #ef4444;
  border: none;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-summary {
  margin-top: 10px;
  font-weight: 600;
}

#paypal-button-container {
  margin-top: 15px;
}

.close-cart {
  margin-top: 10px;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.close-cart:hover {
  filter: brightness(0.9);
}

/* --- Thank You / Success Messages --- */
.thank-you-message {
  max-width: 700px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 20px;
}

.thank-you-message h2 {
  font-size: 2.2rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.thank-you-message p {
  font-size: 1.2rem;
  color: #374151;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.thank-you-message a {
  display: inline-block;
  padding: 12px 24px;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.2s;
  margin: 10px;
}

.thank-you-message a:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.thank-you-message a.secondary {
  background: #6b7280;
}

.thank-you-message a.secondary:hover {
  background: #4b5563;
}

/* Steps in Thank You Message */
.thank-you-message .steps {
  text-align: left;
  background: #f0f9ff;
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
}

.thank-you-message .steps h3 {
  color: #1e3a8a;
  margin-bottom: 15px;
}

.thank-you-message .steps ol {
  text-align: left;
  padding-left: 20px;
}

.thank-you-message .steps li {
  margin-bottom: 15px;
  line-height: 1.5;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #f3f4f6;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #3b82f6;
}

.contact-form button {
  background: #3b82f6;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #2563eb;
}

/* --- Legal / Content Pages --- */
.legal-content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  line-height: 1.8;
  color: #374151;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  list-style: disc;
}

.legal-content a {
  color: #3b82f6;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #2563eb;
}

/* --- Enterprise CTA (Pricing) --- */
.enterprise-cta {
  text-align: center;
  margin: 60px 20px;
  padding: 40px;
  background-color: #f8fafc;
  border-radius: 1rem;
}

.enterprise-cta h2 {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.enterprise-cta p {
  font-size: 1.2rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

.enterprise-btn {
  display: inline-block;
  background: #1e3a8a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.enterprise-btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

/* --- Operational Section (Company) --- */
.operational-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #1e3a8a;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.operational-section h2 {
  font-size: 1.8rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.operational-section p {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.operational-section p:last-child {
  margin-bottom: 0;
}

/* --- Standard CTA Section (Bottom Hero) --- */
.cta-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 60px 30px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta-section a {
  display: inline-block;
  background: #ffffff;
  color: #3b82f6;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-section a:not(.secondary):hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-section a.secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin-left: 10px;
}

.cta-section a.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem 20px;
  background: #1e3a8a;
  margin-top: 80px;
  font-size: 0.95rem;
  color: #fff;
}

footer a {
  margin: 0 15px;
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

/* --- Exit Intent Modal --- */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 900;
}
.exit-modal {
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #1f2937;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  max-width: 520px;
  width: 90%;
  z-index: 901;
  text-align: center;
}
.exit-modal h3 {
  color: #1e3a8a;
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.exit-modal p {
  color: #374151;
  margin-bottom: 16px;
}
.exit-modal .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Map styles removed */

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  header.hero h1 {
    font-size: 2.5rem;
  }
  header.hero p {
    font-size: 1rem;
  }
  .plans-grid {
    gap: 1rem;
    padding: 2rem 1rem;
  }
  .forwarding {
    padding: 1rem;
  }
  .banner {
    font-size: 1rem;
    padding: 15px;
    margin: 1rem;
  }
  nav {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 15px;
  }
  nav .menu {
    order: 3;
    width: 100%;
    gap: 6px 12px;
  }
  nav .menu a {
    margin: 0;
    font-size: 0.92rem;
  }
  nav .actions {
    margin-left: auto;
  }
  /* Mobile Nav Adjustment */
  .login-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  nav {
    justify-content: center;
  }
  nav .logo {
    width: 100%;
    text-align: center;
  }
  nav .actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  nav > .login-btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Hide Tawk.to Knowledge Base / Help Center --- */
#Tawk_HelpCenter,
.tawk-help-center,
.tawk-search-container {
    display: none !important;
}
