/* ============================================================
   BIPPA — Main Stylesheet
   Imports all partials in dependency order
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@import 'tokens.css';
@import 'base.css';
@import 'typography.css';
@import 'layout.css';
@import 'buttons.css';
@import 'cards.css';
@import 'nav.css';
@import 'hero.css';
@import 'modules.css';
@import 'market.css';
@import 'demo.css';
@import 'integrations.css';

/* ============================================================
   Error Page
   ============================================================ */
.error-page {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
}

.error-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-xl, 32px);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.16), transparent 48%),
    var(--bg-card);
  box-shadow: var(--shadow-xl, 0 32px 80px rgba(15, 23, 42, 0.28));
}

.error-code {
  margin: 20px 0 8px;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.18);
}

.error-copy {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  justify-content: center;
}

/* ============================================================
   Animations (shared across sections)
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.2); }
}

@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70%  { box-shadow: 0 0 0 20px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Customers Section
   ============================================================ */
.customers__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.customer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  min-width: 200px;
}

.customer-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.customer-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.customer-card__info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.customer-card__info p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.customer-card--placeholder {
  border-style: dashed;
  opacity: 0.5;
  cursor: default;
}

.customer-card--placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
  background: var(--bg-card);
}

/* ============================================================
   Testimonials Section
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.testimonial-card__quote {
  font-size: 2rem;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.6;
}

.testimonial-card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.testimonial-card__stars span {
  color: #fbbf24;
  font-size: 0.9rem;
}

/* ============================================================
   Pricing Teaser (index.html mini section)
   ============================================================ */
.pricing-teaser {
  text-align: center;
}

.pricing-teaser__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.pricing-teaser__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  transition: all var(--transition);
}

.pricing-teaser__card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.pricing-teaser__card.highlight {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}

.pricing-teaser__plan {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-teaser__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-teaser__price sup {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: super;
}

.pricing-teaser__price sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-teaser__cta {
  margin-top: 24px;
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 500;
}

.pricing-teaser__cta:hover {
  text-decoration: underline;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand p {
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer__heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ============================================================
   Pricing Page — Full Pricing
   ============================================================ */
.pricing-hero {
  padding: 140px 0 80px;
  text-align: center;
}

.pricing-hero p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); align-items: center; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-card--featured {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.18);
  transform: scale(1.04);
  z-index: 1;
}

.pricing-card--featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
}

.pricing-card__plan {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-card__price sup {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 700;
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-card__features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%234ade80' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.pricing-card__features li.disabled {
  opacity: 0.4;
}

.pricing-card__features li.disabled::before {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%236b6889' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pricing__faq {
  max-width: 720px;
  margin: 80px auto 0;
}

.pricing__faq h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.9rem;
}

/* ============================================================
   CTA Banner (shared)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
