/* WorkMesh Components — buttons, cards, badges, forms, icons */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wm-space-2);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: var(--wm-radius-md);
  padding: var(--wm-space-3) var(--wm-space-6);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--wm-accent);
  color: var(--wm-color-white);
  box-shadow: var(--wm-shadow-sm);
}

.btn-primary:hover {
  background: var(--wm-color-navy-600);
  box-shadow: var(--wm-shadow-md);
}

.btn-secondary {
  background: var(--wm-color-white);
  color: var(--wm-brand);
  border: 1px solid var(--wm-color-grey-200);
  box-shadow: var(--wm-shadow-sm);
}

.btn-secondary:hover {
  background: var(--wm-color-grey-50);
  border-color: var(--wm-color-grey-300);
}

.btn-ghost {
  background: transparent;
  color: var(--wm-brand);
}

.btn-ghost:hover {
  background: var(--wm-color-navy-50);
}

.btn-dark {
  background: var(--wm-brand);
  color: var(--wm-color-white);
}

.btn-dark:hover {
  background: var(--wm-color-navy-700);
}

.btn-lg {
  font-size: 1.125rem;
  padding: var(--wm-space-4) var(--wm-space-8);
  border-radius: var(--wm-radius-lg);
}

.btn-sm {
  font-size: 0.875rem;
  padding: var(--wm-space-2) var(--wm-space-4);
}

/* Cards */
.card {
  background: var(--wm-color-white);
  border: 1px solid var(--wm-color-grey-200);
  border-radius: var(--wm-radius-lg);
  padding: var(--wm-space-8);
  box-shadow: var(--wm-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--wm-shadow-md);
  transform: translateY(-2px);
}

.card-dark {
  background: var(--wm-color-navy-900);
  border-color: var(--wm-color-navy-700);
  color: var(--wm-color-white);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--wm-space-3);
  color: var(--wm-brand);
}

.card-dark .card-title {
  color: var(--wm-color-white);
}

.card-text {
  color: var(--wm-color-grey-600);
  line-height: 1.6;
  margin-bottom: 0;
}

.card-dark .card-text {
  color: var(--wm-color-navy-200);
}

/* Icon blocks */
.icon-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--wm-radius-md);
  background: var(--wm-color-navy-100);
  color: var(--wm-accent);
  margin-bottom: var(--wm-space-4);
}

.icon-block svg {
  width: 24px;
  height: 24px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--wm-space-1) var(--wm-space-3);
  border-radius: var(--wm-radius-full);
  background: var(--wm-color-navy-100);
  color: var(--wm-accent);
}

.badge-recommended {
  background: var(--wm-color-success);
  color: var(--wm-color-white);
}

/* Pricing card */
.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wm-color-grey-200);
  border-radius: var(--wm-radius-xl);
  padding: var(--wm-space-8);
  background: var(--wm-color-white);
  box-shadow: var(--wm-shadow-sm);
}

.pricing-card-featured {
  border-color: var(--wm-accent);
  box-shadow: var(--wm-shadow-lg);
  position: relative;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wm-brand);
  margin-bottom: var(--wm-space-2);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--wm-brand);
  letter-spacing: -0.02em;
  margin-bottom: var(--wm-space-2);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--wm-color-grey-600);
  letter-spacing: normal;
}

.pricing-description {
  color: var(--wm-color-grey-600);
  margin-bottom: var(--wm-space-6);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--wm-space-8);
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--wm-space-3);
  margin-bottom: var(--wm-space-3);
  color: var(--wm-color-grey-700);
}

.pricing-features li::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230D9F6F'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--wm-color-grey-200);
  padding: var(--wm-space-6) 0;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wm-brand);
  margin-bottom: var(--wm-space-3);
}

.faq-answer {
  color: var(--wm-color-grey-600);
  line-height: 1.6;
  max-width: 768px;
}

/* Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.brand-logo img {
  height: 100%;
  width: auto;
}

.brand-logo-mark {
  height: 32px;
}

/* Step item */
.step-item {
  display: flex;
  gap: var(--wm-space-5);
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--wm-radius-full);
  background: var(--wm-accent);
  color: var(--wm-color-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--wm-space-2);
}

.step-content p {
  color: var(--wm-color-grey-600);
  margin-bottom: 0;
}
