@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-link-hover-color: #1d4ed8;

  --an-bg: #ffffff;
  --an-bg-subtle: #f8fafc;
  --an-bg-muted: #f1f5f9;
  --an-border: #e2e8f0;
  --an-text: #0f172a;
  --an-text-muted: #64748b;
  --an-accent: #2563eb;
  --an-accent-light: #dbeafe;
  --an-accent-dark: #1e40af;
  --an-success: #16a34a;
  --an-danger: #dc2626;
  --an-warning: #f59e0b;

  --an-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --an-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --an-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --an-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --an-radius: 0.5rem;
  --an-radius-lg: 0.75rem;
  --an-radius-xl: 1rem;
}

body {
  background-color: var(--an-bg);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--an-text);
}

/* Card */
.an-card {
  background: white;
  border: 1px solid var(--an-border);
  border-radius: var(--an-radius-lg);
  box-shadow: var(--an-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.an-card:hover {
  box-shadow: var(--an-shadow);
  border-color: #cbd5e1;
}

/* Waveform animation */
.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 120px;
}
.waveform .bar {
  width: 4px;
  border-radius: 2px;
  animation: wave 2s ease-in-out infinite alternate;
}
@keyframes wave {
  0% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.5); }
}

/* Feature icon circle */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--an-accent-light);
  color: var(--an-accent);
}

/* Pricing card */
.pricing-card {
  background: white;
  border: 1px solid var(--an-border);
  border-radius: var(--an-radius-lg);
  box-shadow: var(--an-shadow-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.pricing-card.highlight {
  border: 2px solid var(--an-accent);
  box-shadow: var(--an-shadow-md);
}
.pricing-card .badge-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--an-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  background-color: var(--an-bg-muted);
  border: 1px solid var(--an-border);
  border-radius: 50rem;
  padding: 4px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  border-radius: 50rem;
  padding: 0.25rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--an-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.billing-toggle button.active {
  background: white;
  color: var(--an-text);
  box-shadow: var(--an-shadow-sm);
}
.billing-toggle .save-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 50rem;
  margin-left: 0.35rem;
}
.billing-toggle button.active .save-badge {
  background-color: var(--an-success);
  color: white;
}
.billing-toggle button:not(.active) .save-badge {
  background-color: var(--an-bg-muted);
  color: var(--an-text-muted);
}

/* Feature list in pricing */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.feature-list li.excluded {
  color: var(--an-text-muted);
  opacity: 0.5;
}
.feature-list .icon-check {
  color: var(--an-success);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list .icon-x {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Screenshot carousel */
.carousel-viewport {
  position: relative;
  border-radius: var(--an-radius-xl);
  overflow: hidden;
  box-shadow: var(--an-shadow-lg);
  background: var(--an-bg-muted);
  aspect-ratio: 16 / 9;
  min-height: 200px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  margin-top: 0.5rem;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--an-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dots button.active {
  background: var(--an-accent);
  transform: scale(1.3);
}
.carousel-caption {
  min-height: 1.5em;
  transition: opacity 0.4s ease;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Interest button pulse */
.btn-interest {
  transition: transform 0.15s;
}
.btn-interest:active {
  transform: scale(0.97);
}
