/* Container til at holde kortene side om side på desktop og under hinanden på mobil */
.ai-comp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Selve kortet */
.ai-comp-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ai-comp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Fremhævet kort (Førstevalg) */
.ai-comp-highlight {
  border: 2px solid #3b82f6;
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.15);
}

.ai-comp-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Logo styring */
.ai-comp-logo {
  height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-comp-logo img {
  max-height: 100%;
  max-width: 150px;
  object-fit: contain;
}

.ai-comp-logo-placeholder {
  display: none; /* Vises kun hvis billedet ikke loader (styres via onerror i HTML) */
  background: #f3f4f6;
  color: #6b7280;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.2rem;
}

.ai-comp-title {
  text-align: center;
  font-size: 1.4rem;
  color: #111827;
  margin: 0 0 10px 0;
}

.ai-comp-price {
  text-align: center;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ai-comp-price span {
  font-weight: 600;
  color: #111827;
}

.ai-comp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.ai-comp-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Grønt flueben før hver feature */
.ai-comp-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.1rem;
}

/* CTA Knapper */
.ai-comp-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: #f3f4f6;
  color: #111827;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ai-comp-btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.ai-comp-btn:hover {
  background: #e5e7eb;
}

.ai-comp-btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* JS Ripple Effekt Element */
.ai-comp-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ai-ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ai-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}