* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f9fafb;
  color: #111827;
}

a { text-decoration: none; }

/* ---------- Header ---------- */

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
}

.pricing-logo span {
  color: #2563eb;
}

.pricing-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.nav-cta {
  background: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-cta:hover { background: #1d4ed8; }

/* ---------- Hero ---------- */

.pricing-hero {
  text-align: center;
  padding: 64px 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-hero h1 {
  font-size: 40px;
  margin: 0 0 12px;
  color: #111827;
}

.pricing-hero p {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 32px;
}

/* ---------- Billing toggle ---------- */

.billing-toggle {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.toggle-option {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}

.toggle-option.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-save {
  color: #16a34a;
  font-size: 12px;
  margin-left: 4px;
}

/* ---------- Plan cards ---------- */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 340px));
  gap: 24px;
  justify-content: center;
  padding: 32px 24px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 28px;
}

.plan-card.popular {
  border: 2px solid #2563eb;
  transform: translateY(-8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
}

.plan-name {
  font-size: 20px;
  margin: 0 0 4px;
  color: #111827;
}

.plan-tagline {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 20px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-amount {
  font-size: 40px;
  font-weight: 800;
  color: #111827;
}

.plan-period {
  font-size: 14px;
  color: #6b7280;
}

.plan-annual-note {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 20px;
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin: 20px 0 24px;
}

.plan-btn:hover { background: #1d4ed8; }

.plan-card.popular .plan-btn { background: #111827; }
.plan-card.popular .plan-btn:hover { background: #000000; }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
}

.feature-check {
  color: #16a34a;
  font-weight: 700;
}

.feature-x {
  color: #d1d5db;
  font-weight: 700;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.check-circle {
  width: 18px;
  height: 18px;
  background: rgb(37, 99, 235);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-circle.green {
  background: rgb(22, 163, 74);
}

.check-circle svg {
  width: 12px;
  height: 12px;
}

/* ---------- Comparison table ---------- */

.comparison-section {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
  text-align: center;
}

.comparison-toggle {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.comparison-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  color: #374151;
  font-weight: 600;
}

.comparison-table th {
  background: #f9fafb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

/* ---------- Guarantee ---------- */

.guarantee-section {
  max-width: 560px;
  margin: 0 auto 64px;
  text-align: center;
  padding: 0 24px;
}

.guarantee-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.guarantee-section h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #111827;
}

.guarantee-section p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */

.faq-section {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.faq-section h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 32px;
  color: #111827;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 20px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

.faq-arrow {
  transition: transform 0.15s;
  color: #9ca3af;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 4px 20px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- Footer ---------- */

.pricing-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pricing-footer-links {
  display: flex;
  gap: 16px;
}

.pricing-footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.pricing-footer-links a:hover {
  color: #111827;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .plan-card.popular {
    transform: none;
  }
}
