/* ==========================================================================
   Gauss v4.1 — Components Stylesheet
   "Friendly Precision" — warm, clean, Gauss-branded
   Depends on design tokens from tokens.css
   ========================================================================== */

/* ==========================================================================
   1. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 300ms var(--ease-out);
}

.btn:focus-visible {
  outline: 3px solid var(--gauss-cyan-500);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Brand (Primary CTA) --- */
.btn--brand {
  background: var(--gauss-gradient-brand);
  color: var(--gauss-white);
}

.btn--brand:hover {
  background: var(--gauss-gradient-brand-hover);
  transform: scale(1.02);
}

/* --- WhatsApp --- */
.btn--whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--gauss-white);
  box-shadow: var(--shadow-glow-green);
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-glow-green),
    var(--shadow-md);
}

/* --- Dark --- */
.btn--dark {
  background-color: var(--gauss-ink-900);
  color: var(--gauss-white);
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Outline --- */
.btn--outline {
  background-color: transparent;
  border: 1px solid var(--gauss-line-200);
  color: var(--gauss-ink-900);
}

.btn--outline:hover {
  background-color: var(--gauss-sky-100);
}

/* --- Outline Light (for dark / gradient backgrounds) --- */
.btn--outline-light {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--gauss-white);
}

.btn--outline-light:hover {
  background-color: var(--gauss-white);
  color: var(--gauss-ink-900);
}

/* --- White (for gradient backgrounds) --- */
.btn--white {
  background-color: var(--gauss-white);
  color: var(--gauss-blue-700);
}

.btn--white:hover {
  box-shadow: var(--shadow-md);
}

/* --- Sizes --- */
.btn--lg {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   2. BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Subtle --- */
.badge--subtle {
  background-color: var(--gauss-sky-100);
  border: 1px solid var(--gauss-line-200);
  color: var(--gauss-ink-500);
}

/* --- Success --- */
.badge--success {
  background-color: var(--gauss-success);
  color: var(--gauss-white);
}

/* --- Brand --- */
.badge--brand {
  background: var(--gauss-gradient-brand);
  color: var(--gauss-white);
}

/* --- Animated Dot --- */
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gauss-success);
  position: relative;
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background-color: var(--gauss-success);
  opacity: 0.4;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   3. CARDS
   ========================================================================== */

.card {
  background-color: var(--gauss-white);
  border: none;
  border-radius: var(--radius-bell, 8px 24px 8px 24px);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 300ms var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* --- Card Icon --- */
.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__icon--blue {
  background-color: rgba(16, 80, 160, 0.08);
  color: var(--gauss-blue-700);
}

.card__icon--cyan {
  background-color: rgba(63, 164, 229, 0.10);
  color: var(--gauss-cyan-500);
}

.card__icon--green {
  background-color: rgba(24, 169, 87, 0.08);
  color: var(--gauss-success);
}

/* --- Card Typography --- */
.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gauss-ink-500);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Card Variants --- */
.card--large {
  padding: 2.5rem;
}

.card--compact {
  padding: 1.5rem;
}

/* ==========================================================================
   4. PRICING CARDS
   ========================================================================== */

.pricing-card {
  background-color: var(--gauss-white);
  border: none;
  border-radius: 12px 28px 12px 28px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 300ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* --- Featured --- */
.pricing-card--featured {
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(16, 80, 160, 0.06);
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gauss-gradient-brand);
  border-radius: 12px 28px 0 0;
}

.pricing-card--featured:hover {
  box-shadow:
    var(--shadow-card-hover),
    0 0 0 1px rgba(16, 80, 160, 0.08);
}

/* --- Plan Elements --- */
.plan-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gauss-ink-500);
  margin-bottom: 0.75rem;
}

.plan-price {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gauss-ink-900);
  margin-bottom: 0.5rem;
}

.plan-price span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.5;
}

.plan-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gauss-ink-500);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.4rem 0;
  color: var(--gauss-ink-900);
}

.plan-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FA4E5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ==========================================================================
   5. FAQ
   ========================================================================== */

.faq-item {
  padding: 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm, 8px);
  background-color: var(--gauss-white);
  transition: background-color 200ms var(--ease-out);
}

.faq-item:hover {
  background-color: var(--gauss-sky-100, #EFF3FF);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gauss-ink-900);
  text-align: left;
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--gauss-sky-100);
  flex-shrink: 0;
  transition: all 300ms var(--ease-out);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  color: var(--gauss-ink-500);
  transition: color 200ms var(--ease-out);
}

.faq-item.open .faq-icon {
  background-color: var(--gauss-ink-900);
  transform: rotate(45deg);
}

.faq-item.open .faq-icon svg {
  color: var(--gauss-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gauss-ink-500);
  padding-top: 0.75rem;
}

/* ==========================================================================
   6. STATS
   ========================================================================== */

.stat-number {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gauss-ink-900);
}

.stat-number--gradient {
  background: var(--gauss-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gauss-ink-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

/* ==========================================================================
   7. TRUST SIGNALS
   ========================================================================== */

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gauss-ink-500);
}

/* On dark / gradient backgrounds */
.trust-signals--light .trust-item {
  color: rgba(255, 255, 255, 0.6);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   8. QUOTE
   ========================================================================== */

.quote-mark {
  font-size: 1.5rem;
  color: var(--gauss-cyan-500);
  opacity: 0.4;
  user-select: none;
}

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--gauss-ink-700);
}

.quote-author {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gauss-ink-500);
}

/* ==========================================================================
   9. BREADCRUMBS
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--gauss-ink-500);
}

.breadcrumb a {
  color: var(--gauss-ink-500);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--gauss-blue-700);
}

/* ==========================================================================
   10. COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--gauss-white);
  box-shadow: 0 -4px 24px rgba(21, 88, 160, 0.08);
  padding: 1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gauss-ink-500);
  flex: 1;
}

.cookie-banner__text a {
  color: var(--gauss-blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   11. LEAD CAPTURE MODAL
   ========================================================================== */

/* --- Overlay --- */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 18, 32, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 250ms var(--ease-out),
    visibility 250ms var(--ease-out);
}

.lead-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Modal --- */
.lead-modal {
  background-color: var(--gauss-white);
  border-radius: var(--radius-xl, 28px);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform 350ms var(--ease-spring);
}

.lead-modal-overlay.active .lead-modal {
  transform: scale(1) translateY(0);
}

/* --- Close Button --- */
.lead-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  color: var(--gauss-ink-500);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}

.lead-modal__close:hover {
  background-color: var(--gauss-sky-100);
  color: var(--gauss-ink-900);
}

.lead-modal__close svg {
  width: 18px;
  height: 18px;
}

/* --- Badge --- */
.lead-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--gauss-success);
  background-color: rgba(24, 169, 87, 0.08);
  border: 1px solid rgba(24, 169, 87, 0.15);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

.lead-modal__badge .badge__dot {
  width: 8px;
  height: 8px;
  background-color: var(--gauss-success);
  border-radius: 50%;
}

/* --- Title & Subtitle --- */
.lead-modal__title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--gauss-ink-900);
  margin-bottom: 0.5rem;
}

.lead-modal__subtitle {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gauss-ink-500);
  margin-bottom: 1.25rem;
}

/* --- Features --- */
.lead-modal__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.lead-modal__features li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gauss-ink-900);
  padding: 0.25rem 0;
  padding-left: 1.75rem;
  position: relative;
}

.lead-modal__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FA4E5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* --- Form --- */
.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-modal__form input[type="text"],
.lead-modal__form input[type="email"],
.lead-modal__form input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gauss-line-200);
  border-radius: 999px;
  background-color: var(--gauss-white);
  color: var(--gauss-ink-900);
  outline: none;
  transition:
    border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.lead-modal__form input:focus {
  border-color: var(--gauss-cyan-500);
  box-shadow: 0 0 0 3px rgba(63, 164, 229, 0.15);
}

.lead-modal__form input::placeholder {
  color: var(--gauss-ink-500);
  opacity: 0.5;
}

/* --- Submit Button --- */
.lead-modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--gauss-gradient-brand);
  color: var(--gauss-white);
  cursor: pointer;
  transition: all 300ms var(--ease-out);
}

.lead-modal__submit:hover {
  background: var(--gauss-gradient-brand-hover);
  transform: scale(1.02);
}

.lead-modal__submit:active {
  transform: scale(0.98);
}

.lead-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Spinner --- */
.lead-modal__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--gauss-white);
  border-radius: 50%;
  animation: modal-spin 0.6s linear infinite;
  display: none;
}

.lead-modal__submit--loading .lead-modal__spinner {
  display: block;
}

@keyframes modal-spin {
  to { transform: rotate(360deg); }
}

/* --- Success State --- */
.lead-modal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.lead-modal__success.active {
  display: flex;
}

.lead-modal__success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(24, 169, 87, 0.10);
  color: var(--gauss-success);
  margin-bottom: 1rem;
  animation: success-pop 0.4s var(--ease-spring);
}

.lead-modal__success-icon svg {
  width: 32px;
  height: 32px;
}

@keyframes success-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.lead-modal__success h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gauss-ink-900);
  margin-bottom: 0.5rem;
}

.lead-modal__success p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gauss-ink-500);
  line-height: 1.5;
}

/* --- Already Submitted --- */
.lead-modal__already {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.lead-modal__already.active {
  display: flex;
}

.lead-modal__already p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gauss-ink-500);
  line-height: 1.5;
}

/* --- Trust --- */
.lead-modal__trust {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gauss-ink-500);
  text-align: center;
  margin-top: 0.75rem;
  opacity: 0.7;
}

.lead-modal__trust svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 0.25rem;
}

/* --- Modal Responsive --- */
@media (max-width: 768px) {
  .lead-modal {
    max-width: 100%;
    padding: 1.75rem;
    border-radius: var(--radius-lg, 20px);
  }

  .lead-modal__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .lead-modal {
    padding: 1.5rem;
    border-radius: var(--radius-md, 14px);
  }
}

/* ==========================================================================
   12. RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }

  .card--large {
    padding: 2rem;
  }

  .pricing-card {
    padding: 1.75rem;
  }

  .quote-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
  }

  .btn--lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .pricing-card {
    padding: 1.5rem;
    border-radius: 8px 20px 8px 20px;
  }

  .plan-price {
    font-size: 2rem;
  }
}
