/* =========================================================
   MAIN PAGE POLISH LAYER
   Uses Home page as the nav baseline and tightens hero scale
========================================================= */

/* NAV BASELINE: make all main pages align like Home */
nav {
  padding: 18px 0 !important;
  min-height: 78px;
}

nav .bb-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 24px;
}

nav .logo img {
  height: 45px !important;
  width: auto !important;
}

nav ul {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  margin: 0;
}

nav ul li a {
  font-size: max(15px, 0.95rem) !important;
  line-height: 1.2 !important;
}

/* HERO SCALE: reduce roughly 25% from oversized versions */
section.hero {
  padding-top: 135px !important;
  padding-bottom: 90px !important;
  min-height: 72vh !important;
}

.hero-text {
  max-width: 820px !important;
  padding: 34px !important;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -2px !important;
}

.hero-text p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Tighten oversized sections that visually amplify the hero */
.panel,
.terminal-body,
.redacted-file,
.dossier-card {
  padding: 34px !important;
}

/* INTEL / newsletter page needs extra calming */
#newsletterHero {
  padding-top: 125px !important;
  padding-bottom: 80px !important;
  min-height: 68vh !important;
}

#newsletterHero .hero-text {
  max-width: 760px !important;
  padding: 28px !important;
}

/* Intel coming-soon page */
.coming-soon-wrapper {
  min-height: calc(100vh - 80px) !important;
  align-items: flex-start !important;
  padding: 130px 20px 70px !important;
}

.redacted-file {
  max-width: 760px !important;
  margin-left: auto;
  margin-right: auto;
  padding: 28px !important;
  transform: none !important;
}

.file-header {
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  font-size: max(14px, 0.95rem) !important;
  letter-spacing: 1px !important;
}

.visible-intel {
  font-size: clamp(1.8rem, 5vw, 2.8rem) !important;
  letter-spacing: 4px !important;
  margin: 24px 0 !important;
  padding: 16px !important;
}

@media (max-width: 900px) {
  nav .bb-container {
    flex-direction: column !important;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  section.hero,
  #newsletterHero {
    padding-top: 110px !important;
    padding-bottom: 65px !important;
    min-height: auto !important;
  }

  .hero-text,
  #newsletterHero .hero-text {
    max-width: 100% !important;
    padding: 20px !important;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -1px !important;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  border-top: 4px solid var(--bb-kelly);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.pricing-card h4 {
  margin: 10px 0;
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.pricing-tier-label {
  font-size: 14px;
  color: var(--bb-kelly);
  letter-spacing: 1px;
}

.pricing-price {
  font-size: 2rem;
  color: var(--bb-text);
  margin-bottom: 4px;
}

.pricing-price small {
  font-size: max(15px, 1rem);
}

.pricing-bill-note {
  font-size: 15px;
  color: var(--theme-component-muted-16);
  margin-bottom: 18px;
}

.pricing-list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  color: var(--theme-component-muted-17);
  font-size: max(14px, 0.95rem);
  line-height: 1.9;
  flex-grow: 1;
}

.pricing-btn {
  width: 100%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: auto;
}

.pricing-card-featured {
  box-shadow: var(--bb-glow-primary);
  transform: scale(1.03);
  z-index: 2;
  background: var(--bb-panel-bg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 12px;
  background: var(--bb-kelly);
  color: var(--theme-component-on-primary-3);
  padding: 3px 10px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-featured {
    transform: none;
  }
}

/* Mobile QA pass: keep the command bar compact and stop nav links from
   wrapping over hero content on phone-width screens. */
@media (max-width: 768px) {
  nav {
    height: auto !important;
    min-height: 72px !important;
    padding: 10px 0 !important;
  }

  nav .bb-container,
  nav > .bb-container {
    width: 92% !important;
    min-height: 52px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
  }

  nav .logo,
  nav .logo a {
    flex: 0 0 auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  nav .logo img {
    height: 38px !important;
    max-height: 38px !important;
  }

  nav .bb-container > div:last-child {
    min-height: 0 !important;
    flex: 0 1 auto !important;
    justify-content: flex-end !important;
    gap: 0 !important;
  }

  nav ul {
    display: none !important;
  }

  .bb-footer-actions {
    gap: 12px !important;
    padding: 0 16px;
  }

  .bb-footer-actions a,
  .bb-footer-actions button {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
  }

  .quick-nav a,
  .clearance-links a,
  .btn-sm,
  #resetQuizBtn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
