.hero {
  background-color: var(--background-secondary);
  padding: 140px 0 60px;
  border-radius: 20px;
  margin: 10px;
}

.hero-content {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
}

.hero-text {
  margin-bottom: 60px;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.26;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 484px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.26;
  color: var(--text-secondary);
  max-width: 558px;
  margin: 0 auto;
}

.hero-badge {
  position: absolute;
    top: 118%;
    right: 41%;
  /* top: 72px;
  right: 40px; */
  background-color: #ed3e3e;
  padding: 4px 12px;
  border-radius: 100px;
}

.badge-text {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  color: var(--text-white);
  letter-spacing: 0.12px;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 290px;
  margin: 0 auto 40px;
}

.billing-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.billing-option.active {
  border-bottom: 1.5px solid var(--text-primary);
  padding-bottom: 6px;
}

.billing-text {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
  color: #888888;
  transition: all 0.3s ease;
}

.billing-option.active .billing-text {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.hero-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: var(--primary-color);
  color: var(--text-white);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(237, 62, 62, 0.2);
}

.hero-cta .btn-primary:hover {
  background-color: #d63333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 62, 62, 0.3);
}

.hero-cta .btn-primary.large {
  padding: 18px 36px;
  font-size: 20px;
  font-weight: 700;
}

.hero-badge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-badge-mobile {
  display: none;
}

/* Modern Billing Toggle Styles */
.billing-toggle-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--background-primary, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2px;
  margin: 0 auto 12px auto;
  max-width: 340px;
  position: relative;
  border: none;
}

.billing-toggle-btn {
  border: none;
  background: none;
  color: var(--text-secondary, #888);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  min-width: 90px;
}

.billing-toggle-btn.active {
  background: var(--primary-color, #ed3e3e);
  color: var(--text-white, #fff);
  box-shadow: 0 2px 8px rgba(237,62,62,0.08);
}

.billing-savings {
  margin: 16px auto 0 auto;
  color: var(--primary-color, #ed3e3e);
  font-size: 15px;
  font-weight: 600;
  background: #fff4f4;
  border-radius: 8px;
  padding: 6px 14px;
  display: block;
  vertical-align: middle;
  text-align: center;
  max-width: 340px;
}

/* Pill-style Billing Toggle */
.billing-toggle-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 48px;
  background: var(--background-light, #f6f8fa);
  border-radius: 32px;
  margin: 0 auto 16px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.billing-toggle-pill input[type="radio"] {
  display: none;
}
.billing-toggle-pill label {
  flex: 1 1 0;
  z-index: 2;
  text-align: center;
  line-height: 48px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-color, #ed3e3e);
  cursor: pointer;
  border-radius: 32px;
  transition: color 0.2s;
  user-select: none;
  position: relative;
}
.billing-toggle-pill input#billingMonthly:checked + label[for="billingMonthly"],
.billing-toggle-pill input#billingAnnual:checked + label[for="billingAnnual"] {
  color: var(--text-light, #fff);
}
.billing-toggle-pill .toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 130px;
  height: 40px;
  background: var(--primary-color, #ed3e3e);
  border-radius: 28px;
  transition: left 0.25s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.billing-toggle-pill input#billingAnnual:checked ~ label[for="billingAnnual"] ~ .toggle-slider {
  left: 136px;
}
.billing-toggle-pill input#billingMonthly:checked ~ label[for="billingMonthly"] ~ input#billingAnnual ~ label[for="billingAnnual"] ~ .toggle-slider {
  left: 4px;
}

.billing-savings {
  display: block;
  margin: 0 auto 0 auto;
  color: var(--text-primary, #161616);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 340px;
}
.billing-savings b {
  color: var(--text-primary, #161616);
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 40px;
    margin: 5px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 36px;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-badge-wrapper {
    display: none !important;
  }
  .hero-badge-mobile {
    display: flex !important;
    position: absolute;
    top: -38px;
    right: 0;
    left: auto;
    margin: 0;
    transform: translateY(0);
    z-index: 2;
  }
  .billing-toggle {
    position: relative;
    z-index: 1;
  }
  .hero-badge {
    position: absolute;
    top: -38px;
    right: 0;
    left: auto;
    margin: 0;
    transform: translateY(0);
    display: inline-flex;
  }

  .billing-toggle {
    flex-direction: row !important;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
  }

  .billing-option {
    width: 100%;
    padding: 12px;
    background-color: var(--background-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }

  .billing-option.active {
    border: 1px solid var(--primary-color);
    border-top: 1px solid var(--primary-color);
    background-color: var(--primary-color);
  }

  .billing-option.active .billing-text {
    color: var(--text-white);
  }

  .hero-cta {
    margin-top: 30px;
  }

  .hero-cta .btn-primary {
    padding: 14px 28px;
    font-size: 16px;
  }

  .hero-cta .btn-primary.large {
    padding: 16px 32px;
    font-size: 18px;
  }

  .billing-toggle-modern {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 2px;
    max-width: 100%;
  }
  .billing-toggle-btn {
    width: auto;
    min-width: 90px;
    padding: 10px 8px;
    font-size: 15px;
    border-radius: 8px;
  }
  .billing-savings {
    margin: 10px 0 0 0;
    font-size: 14px;
    width: 100%;
    text-align: center;
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  .hero-badge-wrapper {
    display: flex !important;
  }
  .hero-badge-mobile {
    display: none !important;
  }
  .hero-badge {
    position: absolute;
    top: 118%;
    right: 41%;
    margin: 0;
    display: inline-flex;
  }
}

@media (max-width: 400px) {
  .billing-toggle-pill {
    width: 98vw;
    min-width: 0;
    max-width: 100%;
  }
  .billing-toggle-pill .toggle-slider {
    width: 48vw;
    min-width: 0;
    max-width: 48vw;
  }
}
