/* ================================================
   BrainBoost — Custom Styles
   Colors: Deep Blue (#1e3a5f), White, Soft Green (#16a34a)
   Mobile-first, performance-focused
   ================================================ */

/* ---------- Base & Utilities ---------- */
.bb-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bb-text-green { color: var(--green); }
.bb-text-blue  { color: var(--blue); }

.bb-required { color: #ef4444; }

/* ---------- Buttons ---------- */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.bb-btn--green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.bb-btn--green:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,163,74,.3);
}

.bb-btn--gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: #d97706;
}
.bb-btn--gold:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217,119,6,.3);
}

.bb-btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.bb-btn--outline:hover {
  background: var(--blue);
  color: #fff;
}

.bb-btn--sm { padding: .4rem 1rem; font-size: .8125rem; }
.bb-btn--lg { padding: .75rem 2rem; font-size: 1.0625rem; }
.bb-btn--block { width: 100%; }

.bb-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Badge ---------- */
.bb-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
}
.bb-badge--red {
  background: #fef2f2;
  color: #dc2626;
}
.bb-badge--green {
  background: var(--green-soft);
  color: var(--green);
}

/* ---------- Section Headers ---------- */
.bb-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.bb-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  margin: .75rem 0 .5rem;
  line-height: 1.25;
}
.bb-section-sub {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  font-size: .9375rem;
}

/* ---------- Navbar ---------- */
.bb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s ease;
}
.bb-nav--scrolled {
  box-shadow: var(--shadow);
}
.bb-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.bb-nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.bb-nav__logo i { color: var(--green); font-size: 1.4rem; }
.bb-nav__logo span { color: var(--green); }

/* ---------- Hero ---------- */
.bb-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 50%, #f0fdf4 100%);
  overflow: hidden;
}
.bb-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.bb-hero__content {
  text-align: center;
}
.bb-hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin: 1rem 0 .75rem;
}
.bb-hero__sub {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.bb-hero__cta {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.bb-hero__trust {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.bb-trust-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-700);
}
.bb-trust-item i {
  color: var(--green);
}

.bb-hero__visual {
  display: flex;
  justify-content: center;
}
.bb-hero__img-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: .5rem;
  box-shadow: var(--shadow-lg);
}
.bb-hero__img-placeholder i { font-size: 3.5rem; }
.bb-hero__img-placeholder span { font-size: 1.125rem; font-weight: 700; }

/* ---------- Problems ---------- */
.bb-problems {
  padding: 4rem 0;
  background: var(--white);
}
.bb-problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.bb-problem-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--gray-200);
}
.bb-problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.bb-problem-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.bb-problem-card__icon--orange { background: #fff7ed; color: #ea580c; }
.bb-problem-card__icon--purple { background: #f5f3ff; color: #7c3aed; }
.bb-problem-card__icon--red    { background: #fef2f2; color: #dc2626; }
.bb-problem-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
}
.bb-problem-card p {
  color: var(--gray-500);
  font-size: .875rem;
}

/* ---------- Products ---------- */
.bb-products {
  padding: 4rem 0;
  background: var(--gray-50);
}
.bb-products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.bb-product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.bb-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.bb-product-card--bundle {
  border-color: #f59e0b;
}
.bb-product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  z-index: 2;
}
.bb-product-card__badge--gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.bb-product-card__img {
  height: 140px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--blue-light);
}
.bb-product-card__img--purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #7c3aed;
}
.bb-product-card__img--teal {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  color: #0d9488;
}
.bb-product-card__img--gold {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
}
.bb-product-card__body {
  padding: 1.25rem;
}
.bb-product-card__body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .4rem;
}
.bb-product-card__desc {
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: .75rem;
}
.bb-product-card__features {
  list-style: none;
  margin-bottom: 1rem;
}
.bb-product-card__features li {
  font-size: .8125rem;
  color: var(--gray-700);
  padding: .2rem 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.bb-product-card__features li i {
  color: var(--green);
  font-size: .75rem;
}
.bb-product-card__features li .fa-gift { color: #f59e0b; }
.bb-product-card__price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: 1rem;
}
.bb-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
}
.bb-price--big { font-size: 1.5rem; }
.bb-price-old {
  font-size: .875rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

/* ---------- Testimonials ---------- */
.bb-testimonials {
  padding: 4rem 0;
  background: var(--white);
}
.bb-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.bb-testi-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
}
.bb-testi-card__stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.bb-testi-card p {
  font-size: .9375rem;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: .75rem;
  line-height: 1.5;
}
.bb-testi-card__author {
  font-size: .8125rem;
  color: var(--gray-500);
}
.bb-testi-card__author strong { color: var(--blue); }

/* ---------- Order Section ---------- */
.bb-order {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
}
.bb-order__wrapper {
  max-width: 640px;
  margin: 0 auto;
}
.bb-order__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.bb-fieldset {
  border: none;
  margin-bottom: 1.5rem;
}
.bb-fieldset legend {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-100);
  width: 100%;
}

/* Product Selection in Form */
.bb-product-select {
  display: grid;
  gap: .5rem;
}
.bb-product-option {
  cursor: pointer;
}
.bb-product-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bb-product-option__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  transition: all .2s ease;
}
.bb-product-option__inner i {
  font-size: 1.25rem;
  color: var(--gray-500);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.bb-product-option__inner strong {
  display: block;
  font-size: .875rem;
  color: var(--blue);
}
.bb-product-option__inner span {
  font-size: .8125rem;
  color: var(--gray-500);
}
.bb-product-option input:checked + .bb-product-option__inner {
  border-color: var(--green);
  background: var(--green-soft);
}
.bb-product-option input:checked + .bb-product-option__inner i {
  color: var(--green);
}
.bb-product-option--bundle input:checked + .bb-product-option__inner {
  border-color: #f59e0b;
  background: #fffbeb;
}
.bb-product-option--bundle input:checked + .bb-product-option__inner i {
  color: #d97706;
}

.bb-order__total {
  margin-top: .75rem;
  padding: .75rem 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--gray-700);
  text-align: right;
}
.bb-order__total strong {
  color: var(--green);
  font-size: 1.125rem;
}

/* Form Inputs */
.bb-form-group {
  margin-bottom: 1rem;
}
.bb-form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .35rem;
}
.bb-form-group input {
  width: 100%;
  padding: .65rem .875rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9375rem;
  color: var(--gray-700);
  transition: border-color .2s;
  background: var(--white);
  outline: none;
}
.bb-form-group input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.bb-form-group input.bb-input--error {
  border-color: #ef4444;
}
.bb-form-hint {
  font-size: .75rem;
  color: var(--gray-500);
  margin-top: .25rem;
  display: block;
}
.bb-form-disclaimer {
  text-align: center;
  font-size: .75rem;
  color: var(--gray-500);
  margin-top: .75rem;
}
.bb-form-disclaimer i { color: var(--green); }

/* Alert */
.bb-alert {
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  margin-top: 1rem;
}
.bb-alert--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ---------- Confirmation ---------- */
.bb-confirmation {
  max-width: 640px;
  margin: 0 auto;
}
.bb-confirmation__inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.bb-confirmation__icon {
  font-size: 3.5rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.bb-confirmation__inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .5rem;
}
.bb-confirmation__inner > p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.bb-confirmation__details {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  border: 1px solid var(--gray-200);
}
.bb-confirmation__details h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
}
.bb-conf-row {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .875rem;
  color: var(--gray-700);
}

.bb-confirmation__bank {
  text-align: left;
  margin-bottom: 1.5rem;
}
.bb-confirmation__bank h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .4rem;
  text-align: center;
}
.bb-confirmation__bank > p {
  font-size: .8125rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  text-align: center;
}

.bb-bank-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: .5rem;
}
.bb-bank-card__name {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--blue);
}
.bb-bank-card__number {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gray-700);
  letter-spacing: 1px;
  margin: .15rem 0;
}
.bb-bank-card__holder {
  font-size: .75rem;
  color: var(--gray-500);
}

.bb-confirmation__wa {
  margin-top: 1.5rem;
}
.bb-confirmation__wa p {
  font-size: .875rem;
  color: var(--gray-700);
  margin-bottom: .75rem;
}

/* ---------- Footer ---------- */
.bb-footer {
  background: var(--blue);
  color: #cbd5e1;
  padding-top: 3rem;
}
.bb-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.bb-footer__brand .bb-nav__logo {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.bb-footer__brand p {
  font-size: .875rem;
  line-height: 1.6;
}
.bb-footer__links h4 {
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.bb-footer__links ul {
  list-style: none;
}
.bb-footer__links li {
  font-size: .875rem;
  padding: .2rem 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.bb-footer__links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color .2s;
}
.bb-footer__links a:hover { color: #fff; }
.bb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
}
.bb-footer__bottom p {
  font-size: .8125rem;
  text-align: center;
}

/* ---------- Loading Spinner (on submit button) ---------- */
.bb-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bb-spin .6s linear infinite;
}
@keyframes bb-spin {
  to { transform: rotate(360deg); }
}

/* ================================================
   RESPONSIVE — Tablet (≥640px)
   ================================================ */
@media (min-width: 640px) {
  .bb-section-title { font-size: 2rem; }
  .bb-hero__title { font-size: 2.5rem; }

  .bb-problems__grid { grid-template-columns: repeat(3, 1fr); }
  .bb-products__grid { grid-template-columns: repeat(2, 1fr); }
  .bb-testimonials__grid { grid-template-columns: repeat(3, 1fr); }

  .bb-order__form { padding: 2rem; }
  .bb-confirmation__inner { padding: 2.5rem 2rem; }

  .bb-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* ================================================
   RESPONSIVE — Desktop (≥1024px)
   ================================================ */
@media (min-width: 1024px) {
  .bb-container { padding: 0 2rem; }
  .bb-section-title { font-size: 2.25rem; }

  .bb-hero { padding: 7rem 0 4rem; }
  .bb-hero__inner {
    flex-direction: row;
    text-align: left;
  }
  .bb-hero__content { text-align: left; flex: 1; }
  .bb-hero__title { font-size: 2.75rem; }
  .bb-hero__sub { margin-left: 0; }
  .bb-hero__cta { justify-content: flex-start; }
  .bb-hero__trust { justify-content: flex-start; }
  .bb-hero__visual { flex-shrink: 0; }
  .bb-hero__img-placeholder { width: 300px; height: 300px; }
  .bb-hero__img-placeholder i { font-size: 5rem; }
  .bb-hero__img-placeholder span { font-size: 1.375rem; }

  .bb-products__grid { grid-template-columns: repeat(4, 1fr); }
  .bb-product-card__img { height: 160px; }
}
