/* ============================================================
   Business Games — Landing Page Styles
   /static/business-games/css/landing.css
   ============================================================ */

/* ---------- Root / reset ---------- */
.bg-landing,
.bg-landing * {
  font-family: var(--font-primary, 'Helvetica Neue', Helvetica, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.bg-landing {
  --bg:     #05060a;
  --fg:     #f0f6fc;
  --muted:  rgba(240,246,252,.70);
  --muted2: rgba(240,246,252,.42);
  --border: rgba(255,255,255,.12);
  --surface: rgba(255,255,255,.03);
  --blue:   #1f6feb;
  --blue2:  #388bfd;

  color: var(--fg);
  padding: 40px 0 3rem; /* 40px top clears the fixed nav */
}

/* Reset Bootstrap link interference inside the module */
.bg-landing a,
.bg-landing a:hover,
.bg-landing a:focus {
  text-decoration: none;
}

/* If a .content-container wrapper is injected, neutralise it */
.bg-landing .content-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* ---------- Layout ---------- */
.bg-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bg-section {
  padding: 2.75rem 0;
}

.bg-section:first-child {
  padding-top: 1rem;
}

.bg-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---------- Eyebrow label ---------- */
.bg-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 0.75rem;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */

.bg-h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 560px;
}

.bg-subhead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 66ch;
}

/* Pill tags */
.bg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.bg-pill {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.22rem 0.7rem;
}

/* Hero CTAs */
.bg-hero-ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS (shared)
   ============================================================ */

.bg-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.58rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
  font-family: inherit;
}

.bg-btn-primary:hover {
  background: var(--blue2);
  color: #fff;
}

.bg-btn-primary:disabled {
  opacity: .45;
  cursor: default;
}

.bg-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.bg-btn-secondary:hover {
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.05);
  color: var(--fg);
}

/* ============================================================
   SECTION 2 — HOW IT WORKS
   ============================================================ */

.bg-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
}

.bg-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.bg-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue2);
  margin-top: 1px;
}

.bg-step-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.2rem;
}

.bg-step-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   SECTION 3 — SCENARIO CARDS
   ============================================================ */

.bg-section-intro {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 72ch;
}

.bg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
}

.bg-card-tag {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  padding: 0.18rem 0.5rem;
  margin-bottom: 0.8rem;
}

.bg-card-quote {
  font-style: italic;
  font-size: 0.87rem;
  color: var(--fg);
  line-height: 1.6;
  border-left: 2px solid var(--blue2);
  padding-left: 0.75rem;
  margin: 0 0 0.85rem;
}

.bg-card-mechanic {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   SECTION 4 — METRICS
   ============================================================ */

.bg-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.bg-metric {
  padding: 1.6rem 1.25rem;
  text-align: center;
}

.bg-metric + .bg-metric {
  border-left: 1px solid var(--border);
}

.bg-metric-num {
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.bg-metric-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   SECTION 5 — FREE PREVIEW
   ============================================================ */

.bg-preview-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

/* 5-column × 2-row industry tile grid */
.bg-ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.bg-ind-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  width: 100%;
  display: block;
  line-height: 1.3;
}

.bg-ind-tile:hover {
  border-color: rgba(56,139,253,.40);
  background: rgba(56,139,253,.07);
  color: var(--fg);
}

.bg-ind-tile.selected {
  border-color: rgba(56,139,253,.70);
  background: rgba(56,139,253,.13);
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(56,139,253,.28);
}

.bg-preview-ctas {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.bg-no-login {
  font-size: 0.78rem;
  color: var(--muted2);
}

#bg-start-error {
  font-size: 0.82rem;
  color: #e05252;
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .bg-metrics-grid {
    grid-template-columns: 1fr;
  }

  .bg-metric + .bg-metric {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .bg-ind-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .bg-cards-grid {
    grid-template-columns: 1fr;
  }

  .bg-ind-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-hero-ctas,
  .bg-preview-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}
