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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.pricing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
}

.pricing-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-header .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.pricing-header .nav-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.pricing-header .nav-link:hover {
  color: #333;
}

.pricing-page {
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Controls Row */
.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 48px;
  position: relative;
}

.guarantee-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.guarantee-chip svg {
  flex-shrink: 0;
}

/* Billing Toggle */
.billing-toggle {
  position: absolute;
  right: 0;
}

.billing-toggle-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  padding: 4px;
  background: #f4f4f5;
}

.billing-toggle button {
  padding: 8px 24px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle button.active {
  background: #fff;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.billing-toggle button:not(.active) {
  background: transparent;
  color: #71717a;
}

.billing-toggle button:not(.active):hover {
  color: #52525b;
}

.save-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  background: #eff6ff;
  border-radius: 6px;
  padding: 2px 6px;
}

/* Plan Cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  position: relative;
  border: 1px solid #e4e4e7;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.plan-card.featured {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1), 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.plan-card-header {
  padding: 24px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-description {
  font-size: 0.875rem;
  color: #71717a;
  margin-bottom: 8px;
}
.plan-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.plan-price-value {
  font-size: 2.5rem;
  font-weight: bold;
}

.plan-price-period {
  font-size: 0.875rem;
  color: #71717a;
  margin-top: 4px;
}

.plan-features {
  padding: 0 24px 24px;
  flex: 1;
}

.plan-features ul {
  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.feature-tooltip-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d4d4d8;
  color: #a1a1aa;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  flex-shrink: 0;
  cursor: default;
}

.feature-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #1d1e20;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 250px;
  width: max-content;
  z-index: 10;
}

.feature-tooltip-icon:hover .feature-tooltip {
  display: block;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: #a1a1aa;
  flex-shrink: 0;
}

.plan-card-footer {
  padding: 0 24px 24px;
  margin-top: auto;
}

.plan-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.plan-btn-primary {
  background: #1d1e20;
  color: #fff;
}

.plan-btn-primary:hover {
  background: rgba(29, 30, 32, 0.9);
}

.plan-btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #d4d4d8;
}

.plan-btn-secondary:hover {
  background: #f4f4f5;
}

.plan-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pricing-footer {
  text-align: center;
  margin-top: 48px;
  font-size: 0.875rem;
  color: #71717a;
}

/* FAQ */
.pricing-faq {
  max-width: 700px;
  margin: 64px auto 0;
}

.pricing-faq h2 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 24px;
}

.pricing-faq details {
  border-bottom: 1px solid #e4e4e7;
}

.pricing-faq details:last-child {
  border-bottom: none;
}

.pricing-faq summary {
  cursor: pointer;
  font-weight: 500;
  color: #333;
  padding: 16px 0;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.pricing-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: #a1a1aa;
  flex-shrink: 0;
  margin-left: 16px;
}

.pricing-faq details[open] summary::after {
  content: '\2212';
}

.pricing-faq details p {
  padding: 0 0 16px;
  color: #52525b;
  line-height: 1.7;
  font-size: 0.925rem;
}

.pricing-faq details a {
  color: #333;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pricing-page {
    padding: 100px 16px 60px;
  }

  .pricing-title {
    font-size: 1.8rem;
  }

  .pricing-controls {
    flex-direction: column;
    gap: 16px;
  }

  .billing-toggle {
    position: static;
  }

  .plan-cards {
    grid-template-columns: 1fr;
  }
}
