/* ClawBrain — unified patch for legacy pages
   Aligns non-index pages with the new design language without rewriting them.
   Covers: nav logo pill, dropdown hover-bridge, hero accent highlight, primary button feel. */

/* === Brand logo pill — matches homepage .nav-brand === */
.nav-logo,
.topbar-logo,
.logo,
a.logo,
.brand {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 4px 10px !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  text-decoration: none;
}

/* === Dropdown hover-bridge fix (kills the 1px gap that closes the menu) === */
.nav-dropdown,
.nav-drop {
  position: relative;
}
.nav-dropdown::after,
.nav-drop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  background: transparent;
  pointer-events: auto;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-drop:hover .nav-drop-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* === Hero: purple accent highlight on h1 key phrase === */
.hero h1 .accent,
.hero h1 em,
.hero h1 mark,
.page-hero h1 .accent,
.page-hero h1 em,
.page-hero h1 mark {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0 10px;
  border-radius: 6px;
  font-style: normal;
  white-space: nowrap;
}

/* === Light-hero variant (for pages with white hero) === */
.hero-light h1 em,
.hero-light h1 mark {
  background: #eef2ff;
  color: #3730a3;
  padding: 0 10px;
  border-radius: 6px;
  font-style: normal;
  white-space: nowrap;
}

/* === Kicker (small label above headings) === */
.kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: #4f46e5;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 3px;
}

/* === Button refinements (matches index.html) === */
.btn-primary,
.nav-btn {
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.12);
}
.btn-primary:hover,
.nav-btn:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

/* === Focus ring (accessibility + brand) === */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Section rhythm: subtle alternating surfaces === */
.section-alt {
  background: #fafaf9;
}
