/* ─────────────────────────────────────────────────────
   AnyBiz: Pricing Cards Widget
   Values taken directly from Figma via API
   ───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

.ab-pricing-cards {
  padding: 40px 0;
  background-color: unset!important;
}

.ab-pricing-cards__inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* Grid — gap: 32px (Figma) */
.ab-pricing-cards__grid {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

/* Card — gradient border (top visible → fades out) */
.ab-pricing-card {
  flex: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  background:
    linear-gradient(181deg, #222231 -39.27%, #010209 72.61%) padding-box,
    radial-gradient(ellipse at 100% 0%, rgba(196, 163, 255, 0.7) 0%, transparent 50%) border-box;
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Featured card — radial glow top-left + border + shadow */
.ab-pricing-card--featured {
  border-radius: 8px;
  border: 2px solid #C4A3FF;
  background:
  radial-gradient(ellipse 90% 30% at 0% 0%, rgba(210, 30, 220, 0.9) 0%, rgba(140, 20, 210, 0.4) 40%, transparent 65%),
  linear-gradient(181deg, #100d25 0%, #04020d 100%);
  box-shadow: 0 0 20px 0 rgba(151, 71, 255, 0.23), 0 0 0.781px 0 #FFE5FF;
}

/* ── Header ── */
.ab-pricing-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

/* Plan name — font Android 101 (fallback: Share Tech Mono), 24px, gradient #c4b5fd → #38bdf8 */
.ab-pricing-card__name {
  font-family: 'Android 101', 'Share Tech Mono', monospace;
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  background: linear-gradient(135deg, #c4b5fd 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline — Space Grotesk 14px weight 500 #94a3b8 */
.ab-pricing-card__tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #94a3b8;
}

/* ── Price block ── */
.ab-pricing-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

/* Price — Space Grotesk 48px weight 700 #cbd5e1 */
.ab-pricing-card__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #cbd5e1;
}

/* Suffix /mo — Space Grotesk 32px weight 500 #94a3b8 */
.ab-pricing-card__price-suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: #94a3b8;
}

/* Billing info — Space Grotesk 20px weight 400 #cbd5e1 */
.ab-pricing-card__billing {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #cbd5e1;
  margin-bottom: 40px;
}

/* ── Button — bg #8b5cf6, radius 4px, padding 8 16 ── */
.ab-pricing-card__btn {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background-color: #8b5cf6;
  color: #f8fafc !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none !important;
  border-radius: 4px;
  transition: opacity 0.2s ease;
  margin-bottom: 40px;
}

.ab-pricing-card__btn:hover {
  opacity: 0.85;
}

/* ── What's included label ── */
.ab-pricing-card__included-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

/* ── Stats ── */
.ab-pricing-card__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ab-pricing-card__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* Stat value — Space Grotesk 16px weight 700 #cbd5e1 */
.ab-pricing-card__stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #cbd5e1;
  white-space: nowrap;
  min-width: 56px;
  width: 56px;
  flex-shrink: 0;
}

/* Stat label — Space Grotesk 16px weight 500 #94a3b8 */
.ab-pricing-card__stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #94a3b8;
}

/* ── Features ── */
.ab-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #94a3b8;
}

/* Checkmark — teal #0d9488 (Figma), circle */
.ab-pricing-card__feature-icon {
  width: 16px;
  height: 16px;
  margin-right: 48px; /* 28px icon + 18px margin = 46px ≈ 56px stat-value width */
  border-radius: 50%;
  background-color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.ab-pricing-card__feature-icon::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #f8fafc;
  border-bottom: 2px solid #f8fafc;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ── Tabs (mobile only) ── */
.ab-pricing-tabs {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 960px) {

  /* Show tabs, hide all cards except active */
  .ab-pricing-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #0f172a;
    border-radius: 6px;
    padding: 0 4px;
    margin-bottom: 24px;
    height: 48px;
  }

  .ab-pricing-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    text-align: center;
  }

  .ab-pricing-tab--active {
    background-color: #8b5cf6;
    color: #f1f5f9;
  }

  /* Hide all cards, show only active */
  .ab-pricing-cards__grid {
    display: block;
  }

  .ab-pricing-card {
    display: none;
    width: 100%;
    padding: 32px 24px;
    gap: 0;
  }

  .ab-pricing-card--visible {
    display: flex;
  }

  /* Reduce gaps on mobile */
  .ab-pricing-card__header {
    margin-bottom: 32px;
  }

  .ab-pricing-card__billing {
    margin-bottom: 32px;
  }

  .ab-pricing-card__btn {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .ab-pricing-cards__inner {
    padding: 0 16px;
  }

  .ab-pricing-cards {
    padding: 60px 0;
  }

  .ab-pricing-card__price {
    font-size: 38px;
  }

  .ab-pricing-card__price-suffix {
    font-size: 24px;
  }
}
