/* --- Color Palette & Fonts --- */
:root {
  --brand-orange: #F16623;
  --brand-blue: #2A4B8D;
  --text-dark: #1c1e21;
  --text-light: #606770;
  --background-light: #f8f9fa;
  --container-white: #ffffff;
  --border-color: #dee2e6;
  --highlight-color: #fff9f5;
  --track-color: #ccc; /* Neutral color for the toggle track */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  margin: 0;
}

/* Brand Header */
.brand-header {
  background-color: var(--brand-orange);
  padding: 20px;
  text-align: center;
}
.header-logo {
  max-width: 450px;
  height: auto;
}

.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* Header & Toggle */
.pricing-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}
.pricing-header p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* THE FINAL TOGGLE FIX */
.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  font-weight: 600;
}
.billing-toggle span {
  margin: 0 15px; /* Even spacing */
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--track-color); /* Track is now neutral grey */
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: var(--brand-blue); /* Circle is blue by default */
  border-radius: 50%;
  transition: transform 0.4s, background-color 0.4s; /* Animate both properties */
}

/* When checked, ONLY the circle changes color */
input:checked + .slider:before {
  background-color: var(--brand-orange);
  transform: translateX(26px);
}

/* Pricing Table */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 50px;
}

.plan {
  background-color: var(--container-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.plan.highlighted {
  border: 2px solid var(--brand-orange);
  position: relative;
  background-color: var(--highlight-color);
}
.plan.highlighted:hover {
  transform: translateY(-5px);
}

.popular-banner {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-orange);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.plan-header h2 { font-size: 24px; margin-top: 0; }
.plan-header p { color: var(--text-light); min-height: 40px; }

.plan-price { margin: 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 20px 0; }
.price-amount { font-size: 42px; font-weight: bold; }
.price-cycle { font-size: 16px; color: var(--text-light); }

.plan-features { list-style: none; padding: 0; margin: 20px 0; flex-grow: 1; }
.plan-features li { margin-bottom: 15px; font-size: 16px; }

.cta-button { width: 100%; padding: 15px; background-color: var(--brand-blue); color: #ffffff; border: none; border-radius: 6px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; margin-top: auto; }
.plan.highlighted .cta-button { background-color: var(--brand-orange); }
.cta-button:hover { opacity: 0.9; }

/* Disclaimer */
.disclaimer-section { max-width: 800px; margin: 80px auto 0; padding: 30px; background-color: var(--container-white); border-radius: 8px; text-align: center; border: 1px solid var(--border-color); }
.disclaimer-section h3 { font-size: 20px; }
.disclaimer-section p { color: var(--text-light); line-height: 1.6; }
.comparison-link { display: inline-block; margin-top: 20px; font-weight: bold; color: var(--brand-orange); text-decoration: none; }
.comparison-link:hover { text-decoration: underline; }

/* Responsive for Mobile */
@media (max-width: 992px) {
  .pricing-table { grid-template-columns: 1fr; max-width: 450px; margin: 40px auto 0; }
  .plan.highlighted { order: -1; }
  .plan.highlighted:hover { transform: translateY(-5px); }
}
