/* BackBox vendor page (partner/backbox.php) */

:root {
  --bb-green: #00DD93;
  --bb-green-dark: #00c081;
  --bb-navy: #002857;
  --bb-navy-deep: #001a3a;
  --bb-ink: #0b1b33;
  --bb-muted: #546179;
  --bb-light: #f3f6fa;
  --bb-radius: 18px;
  --bb-shadow: 0 10px 30px rgba(0, 40, 87, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

#kilter-platform {
  scroll-margin-top: 80px;
}

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

.bb-light {
  background: var(--bb-light);
}

.bb-section {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.bb-h1 {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bb-h2 {
  margin-bottom: 0.75rem;
  color: var(--bb-ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.bb-h3 {
  margin-bottom: 0.5rem;
  color: var(--bb-ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.backbox-page p {
  font-size: 1rem;
  line-height: 1.7;
}

.bb-lead {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--bb-muted);
  font-size: 1.1rem;
}

.bb-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(0, 221, 147, 0.5);
  border-radius: 999px;
  background: rgba(0, 221, 147, 0.12);
  color: var(--bb-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* hero */
.bb-hero {
  padding: 4.5rem 0 7rem;
  background:
    radial-gradient(55% 80% at 90% 10%, rgba(0, 221, 147, 0.22) 0%, transparent 65%),
    linear-gradient(160deg, var(--bb-navy) 0%, var(--bb-navy-deep) 100%);
  color: #fff;
}

.backbox-page .bb-hero p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
}

.bb-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

/* buttons */
.bb-btn,
.bb-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bb-btn {
  border: 2px solid var(--bb-green);
  background: var(--bb-green);
  color: var(--bb-navy-deep);
}

.bb-btn:hover {
  border-color: var(--bb-green-dark);
  background: var(--bb-green-dark);
  color: var(--bb-navy-deep);
}

.bb-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.bb-btn:hover i {
  transform: translateX(4px);
}

.bb-btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.bb-btn-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--bb-navy);
}

.bb-btn:focus-visible,
.bb-btn-ghost:focus-visible {
  outline: 3px solid #7ff0c9;
  outline-offset: 3px;
}

/* stats */
.bb-stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
}

.bb-stats {
  padding: 2rem 1.5rem 2.25rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 26, 58, 0.22);
}

.backbox-page .bb-stats-label {
  margin: 0 0 1.25rem;
  color: var(--bb-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.bb-stat-num {
  color: var(--bb-navy);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
}

.bb-stat-text {
  margin-top: 0.4rem;
  color: var(--bb-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* capability cards */
.bb-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid #e6ebf2;
  border-radius: var(--bb-radius);
  background: #fff;
  box-shadow: var(--bb-shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.bb-card:hover {
  transform: translateY(-5px);
  border-color: var(--bb-green);
  box-shadow: 0 18px 44px rgba(0, 221, 147, 0.2);
}

.bb-card img {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  object-fit: contain;
}

.backbox-page .bb-card p {
  margin: 0;
  color: var(--bb-muted);
  font-size: 0.95rem;
}

/* kilter platform */
.bb-eyebrow-ink {
  border-color: rgba(0, 40, 87, 0.25);
  background: rgba(0, 221, 147, 0.18);
  color: var(--bb-navy);
}

.backbox-page .bb-body {
  margin: 0 0 1.5rem;
  color: var(--bb-muted);
  font-size: 1.05rem;
}

.bb-layers {
  display: block;
  width: 100%;
  height: auto;
}

.bb-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.bb-outcomes li {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 3rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 40, 87, 0.07);
  color: var(--bb-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bb-outcomes li::before {
  content: '\f00c';
  position: absolute;
  top: 1.15rem;
  left: 1.1rem;
  color: var(--bb-green-dark);
  font-family: 'Font Awesome 6 Free';
  font-size: 0.85rem;
  font-weight: 900;
}

.bb-tier {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  border: 1px solid #e6ebf2;
  border-radius: var(--bb-radius);
  background: #fff;
  box-shadow: var(--bb-shadow);
}

.bb-tier-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bb-green) 0%, #00a874 100%);
  color: var(--bb-navy-deep);
  font-weight: 800;
}

.backbox-page .bb-tier p {
  margin: 0 0 1.1rem;
  color: var(--bb-muted);
  font-size: 0.95rem;
}

.bb-tier ul {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid #e8edf4;
  list-style: none;
}

.bb-tier li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  color: var(--bb-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.bb-tier li::before {
  content: '\f00c';
  position: absolute;
  top: 0.12rem;
  left: 0;
  color: var(--bb-green-dark);
  font-family: 'Font Awesome 6 Free';
  font-size: 0.75rem;
  font-weight: 900;
}

.bb-tier .bb-btn-sm {
  align-self: flex-start;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

@media (max-width: 991px) {
  .bb-outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .bb-outcomes {
    grid-template-columns: 1fr;
  }
}

/* responsible ai */
.bb-dark {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(0, 221, 147, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, var(--bb-navy) 0%, var(--bb-navy-deep) 100%);
  color: #fff;
}

.bb-dark .bb-h2 {
  color: #fff;
}

.backbox-page .bb-lead-light {
  max-width: 46rem;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

/* next step */
.bb-cta {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 767px) {
  .bb-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .bb-hero {
    padding: 3rem 0 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }


  .bb-btn,
  .bb-btn i,
  .bb-btn-ghost,
  .bb-card {
    transition: none;
  }

  .bb-card:hover,
  .bb-btn:hover i {
    transform: none;
  }
}
