/* ===================================
   Components — Buttons (matched to prototype)
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  border: 0.8px solid transparent;
  outline: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Sizes — match prototype's measured dimensions */
.btn-sm {
  height: 2.25rem;        /* 36px */
  padding: 0 0.75rem;     /* 0 12px */
  font-size: 0.875rem;
  border-radius: var(--radius-md); /* 8 */
}

.btn-md {
  height: 3rem;           /* 48px */
  padding: 0 2rem;        /* 0 32px */
  font-size: 1rem;
  border-radius: var(--radius-lg); /* 10 */
}

.btn-lg {
  height: 3.5rem;         /* 56px */
  padding: 0 2.5rem;      /* 0 40px */
  font-size: 1rem;
  border-radius: var(--radius-xl); /* 14 */
}

.btn-full {
  width: 100%;
}

/* Variants */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(36, 97, 219, 0.3);
}

/* Outline blue (used at compare CTA "Book a Demo") */
.btn-outline-blue {
  border: 0.8px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-blue:hover {
  background: var(--primary-light);
}

/* Outline subtle — used for "Explore All Features", "View Full Comparison", "Learn More" etc. */
.btn-outline-subtle {
  border: 0.8px solid var(--border);
  background: var(--card);
  color: var(--foreground);
}

.btn-outline-subtle:hover {
  background: var(--secondary);
}

/* Ghost — header "Book a Demo" */
.btn-ghost {
  color: var(--foreground);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--secondary);
}

/* Hero secondary "Book a Demo" — light grey filled */
.btn-ghost-light {
  background: #F3F5F7;
  color: var(--foreground);
  border-color: transparent;
}

.btn-ghost-light:hover {
  background: #E9ECF0;
}

/* White button (final CTA banner primary) */
.btn-white {
  background: #fff;
  color: var(--foreground);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* Outline white (final CTA banner secondary) */
.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn svg {
  flex-shrink: 0;
}
