/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn:active {
  transform: translateY(1px);
}

.btn--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--lobster-red);
  color: #fff;
  border-color: var(--lobster-red);
}
.btn--primary:hover {
  background: #c0392b;
  border-color: #c0392b;
  transform: scale(1.02);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(236, 240, 241, 0.35);
}
.btn--secondary:hover {
  border-color: var(--lobster-red);
  color: #fff;
}

.btn--ghost {
  background: rgba(236, 240, 241, 0.08);
  color: var(--text-primary);
  border-color: transparent;
}
.btn--ghost:hover {
  background: rgba(236, 240, 241, 0.14);
}

.link-arrow {
  color: var(--lobster-red);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

/* Price cards */
.price-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(231, 76, 60, 0.15);
}
@media (prefers-reduced-motion: reduce) {
  .price-card {
    transition: border-color 0.2s;
  }
  .price-card:hover {
    transform: none;
  }
  .btn--primary:hover {
    transform: none;
  }
}
.price-card--featured {
  border-color: rgba(231, 76, 60, 0.5);
  box-shadow: var(--shadow-soft), 0 0 40px rgba(231, 76, 60, 0.08);
}
.price-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--lobster-red);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}
.price-card__name {
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  margin-bottom: 0.5rem;
}
.price-card__price {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.price-card__currency { font-size: 1.25rem; vertical-align: super; }
.price-card__from {
  font-size: 0.85rem;
  font-weight: var(--fw-regular);
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.price-card__period {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}
.price-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}
.price-card__features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--quality-green);
  font-weight: var(--fw-bold);
  font-size: 0.85rem;
}
.price-card__cta {
  width: 100%;
  margin-top: auto;
}

/* Activity feed */
.activity-feed {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 200px;
}

.activity-feed__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.activity-item.is-new {
  animation: slideIn 0.45s ease-out;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--dept-color, var(--lobster-red));
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.activity-item__icon {
  font-size: 1.25rem;
  line-height: 1;
}
.activity-item__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.activity-item__action {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: 0.95rem;
}
.activity-item__details {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.activity-feed__status {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-width: 640px;
  width: 100%;
  max-height: min(90vh, 800px);
  overflow: auto;
  box-shadow: var(--shadow-soft);
  transform: translateY(16px);
  transition: transform 0.25s;
}
.modal-overlay.is-visible .modal {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
  .modal {
    border-radius: var(--radius-lg);
  }
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.modal__title {
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  margin: 0;
}

.modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
}
.modal__close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.modal__close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.modal__body {
  padding: 0 1.25rem 1.5rem;
}

.modal__section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}
.modal__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.modal__list li { margin-bottom: 0.35rem; }

.minion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.lobster-minion {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  border: 1px solid var(--border-subtle);
}
.lobster-minion__emoji { font-size: 1.25rem; line-height: 1; }
.lobster-minion__action { color: var(--text-muted); font-size: 0.72rem; }

/* Warehouse feed modal animation strip */
.warehouse-strip {
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, 
    var(--lab-blue) 0%, 
    var(--assembly-yellow) 16%, 
    var(--quality-green) 33%, 
    var(--marketing-purple) 50%, 
    var(--automation-orange) 66%, 
    var(--night-lavender) 83%, 
    var(--slm-tech) 100%);
  opacity: 0.35;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}
.warehouse-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(0, 0, 0, 0.15) 40px,
    rgba(0, 0, 0, 0.15) 41px
  );
  animation: stripMove 12s linear infinite;
}

@keyframes stripMove {
  from { transform: translateX(0); }
  to { transform: translateX(-41px); }
}

@media (prefers-reduced-motion: reduce) {
  .warehouse-strip::after { animation: none; }
}

/* Contact form (standalone page) */
.contact-form label {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.contact-form__input {
  width: 100%;
  max-width: 32rem;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.contact-form__input:focus {
  outline: none;
  border-color: var(--lobster-red);
  box-shadow: var(--focus-ring);
}
textarea.contact-form__input {
  resize: vertical;
  min-height: 6rem;
}
