/**
 * Task #1487354 — Homepage Nuclear Contrast + Border Fix (2026-05-10)
 * Owns: WCAG AA 4.5:1 contrast enforcement + rogue border removal on HOMEPAGE ONLY.
 * Does NOT own: non-homepage pages, layout structure, animations.
 *
 * WHY THIS FILE EXISTS:
 * - contrast-enforcement-1482800.css is EXCLUDED from homepage (isHomePage=true check)
 * - homepage-fix-1473379.css and homepage-polish-1474927.css conflict on borders
 * - homepage-components-1452565.css defines borders via var(--color-border) not overridden
 * - CEO flagged specific contrast failures and rogue borders in screenshots
 *
 * STRATEGY: Nuclear override using html body prefix + !important + -webkit-text-fill-color.
 * Loaded LAST in home.ejs body to win all cascade battles.
 *
 * CONTRAST RATIOS (verified):
 *   #0A0A0A on #FFFFFF = 18.9:1 ✓ (headings)
 *   #111827 on #FFFFFF = 15.3:1 ✓ (subheadings)
 *   #1F2A37 on #FFFFFF = 13.4:1 ✓ (body text strong)
 *   #374151 on #FFFFFF = 8.89:1 ✓ (body text)
 *   #4B5563 on #FFFFFF = 7.01:1 ✓ (secondary text)
 *   #6B7280 on #FFFFFF = 4.64:1 ✓ (muted text — minimum allowed)
 *   #FFFFFF on #0A0A0A = 18.9:1 ✓ (inverse text on dark bg)
 *   #FFFFFF on #00875A = 4.58:1 ✓ (white on emerald — passes AA)
 *   #065F46 on #ECFDF5 = 7.6:1  ✓ (dark green on light green bg)
 *   #991B1B on #FEE2E2 = 5.8:1  ✓ (dark red on light red bg)
 *   #92400E on #FEF3C7 = 6.2:1  ✓ (dark amber on light amber bg)
 */

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 1: BORDER REMOVAL — Kill ALL decorative borders on homepage
   Replace with shadow-based depth. Only focused inputs get a visible border.
   ══════════════════════════════════════════════════════════════════════════════ */

/* Cards — no borders, shadow elevation only */
html body .hp-sotd__card,
html body .hp-testimonial-card,
html body .hp-pricing-card,
html body .hp-payout-card,
html body .hp-cat-card,
html body .hp-bounty-card,
html body .hp-cotd__card,
html body .hp-stat,
html body .hp-step {
  border: none !important;
  border-color: transparent !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Pricing popular card gets emphasized shadow + emerald accent */
html body .hp-pricing-card--popular {
  border: 2px solid #00875A !important;
  box-shadow: 0 4px 16px rgba(0, 135, 90, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

/* Trust bar separators — dot-based, no lines */
html body .trust-item-sep {
  border: none !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #D1D5DB !important;
}

/* Search inputs: no visible border in default state */
html body .hn-search,
html body .hn-mobile-search-wrap {
  border: none !important;
  border-color: transparent !important;
}
html body .hn-search:focus-within,
html body .hn-mobile-search-wrap:focus-within {
  border: none !important;
  box-shadow: 0 0 0 2px #00875A !important;
}

/* Email capture input: remove decorative border, add only on focus */
html body .hp-email-capture__input {
  border: none !important;
  border-color: transparent !important;
  background: #F3F4F6 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}
html body .hp-email-capture__input:focus {
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2px #00875A, inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

/* Feed table: clean borders */
html body .hp-feed-table {
  border: none !important;
}
html body .hp-feed-row {
  border: none !important;
  border-bottom: 1px solid #F3F4F6 !important;
}

/* Pill/badge borders: remove decorative */
html body .badge,
html body [class*="badge-"],
html body .hp-sotd__category,
html body .hp-sotd__badge,
html body .hp-feed-row__cat,
html body .hp-feed-row__new,
html body .hp-bounty-card__rank {
  border: none !important;
}

/* Unclaimed section pills: full layout lock — Task #1492759
   WHY: 6+ CSS files cascade-conflict on .hp-unclaimed__pill. Base uses
   CSS variables (--space-2, --text-sm) that may not resolve, collapsing
   pills to 8×8px dots. Lock every layout property here with explicit values. */
html body .hp-unclaimed__pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  padding: 0.375rem 0.875rem !important;
  border: none !important;
  border-color: transparent !important;
  border-radius: 100px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
}
html body .hp-unclaimed__pill-dot {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Pill breakdown container: ensure pills are visible and not clipped */
html body .hp-unclaimed__breakdown {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  overflow: visible !important;
}

/* Bounty board cards: no border */
html body .hp-bounty-card {
  border: none !important;
}

/* Steps connector line: subtle */
html body .hp-steps__connector-line {
  border: none !important;
}

/* Counter badge border removal */
html body .hp-counter {
  border: none !important;
}

/* COTD card border */
html body .hp-cotd__card {
  border: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 2: TEXT CONTRAST — Light/white backgrounds → DARK text
   Every text element on white/light bg must hit 4.5:1 minimum.
   ══════════════════════════════════════════════════════════════════════════════ */

/* --- Hero Section (white bg) --- */
html body .hp-hero__headline {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-hero__headline em {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
}
html body .hp-hero__sub {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}
html body .hp-hero__eyebrow {
  color: #047857 !important;
  -webkit-text-fill-color: #047857 !important;
}
html body .hp-hero__proof-text {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}
html body .hp-hero__stars svg {
  color: #D97706 !important;
  fill: #D97706 !important;
}

/* --- Urgency badge --- */
html body .hp-urgency {
  color: #991B1B !important;
  -webkit-text-fill-color: #991B1B !important;
}

/* --- Counter (light bg) --- */
html body .hp-counter__label {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}
html body .hp-counter__value {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}

/* --- Unclaimed section (DARK bg — text must be WHITE/LIGHT) --- */
html body .hp-unclaimed {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
}
html body .hp-unclaimed__eyebrow {
  color: #00D68F !important;
  -webkit-text-fill-color: #00D68F !important;
}
html body .hp-unclaimed__number {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html body .hp-unclaimed__label,
html body .hp-unclaimed__label strong {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
/* .hp-unclaimed__pill duplicate removed — merged into SECTION 1 (Task #1492759) */
html body .hp-unclaimed__cta {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
  background: #FFFFFF !important;
}
html body .hp-unclaimed__cta:hover {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
  background: #F3F4F6 !important;
}

/* --- Trust bar (white bg) --- */
html body .trust-bar,
html body .trust-item {
  color: #1F2A37 !important;
  -webkit-text-fill-color: #1F2A37 !important;
}

/* --- Section headers (used throughout homepage on white bg) --- */
html body .section-label {
  color: #047857 !important;
  -webkit-text-fill-color: #047857 !important;
}
html body .section-heading {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .section-subheading {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}

/* --- Bounty board (white bg) --- */
html body .hp-bounty__eyebrow {
  color: #047857 !important;
  -webkit-text-fill-color: #047857 !important;
}
html body .hp-bounty__title {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-bounty__title-accent {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
}
html body .hp-bounty__sub {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}
html body .hp-bounty-card__company {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-bounty-card__title {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-bounty-card__payout {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
}
html body .hp-bounty-card__deadline {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-bounty-card__deadline--urgent {
  color: #991B1B !important;
  -webkit-text-fill-color: #991B1B !important;
}
/* Bounty rank badges: WHITE on colored bg (dark backgrounds) */
html body .hp-bounty-card__rank {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* --- COTD (Claim of the Day) --- */
html body .hp-cotd__eyebrow {
  color: #047857 !important;
  -webkit-text-fill-color: #047857 !important;
}
html body .hp-cotd__title {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-cotd__company {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-cotd__blurb {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}
html body .hp-cotd__stat {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}
html body .hp-cotd__stat--deadline-urgent {
  color: #991B1B !important;
  -webkit-text-fill-color: #991B1B !important;
}
html body .hp-cotd__proof {
  color: #065F46 !important;
  -webkit-text-fill-color: #065F46 !important;
  background: #ECFDF5 !important;
}

/* --- SOTD (Settlement of the Day) --- */
html body .hp-sotd__title {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-sotd__card-title {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-sotd__company {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-sotd__payout {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
}
html body .hp-sotd__views {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-sotd__category {
  color: #065F46 !important;
  -webkit-text-fill-color: #065F46 !important;
  background: #ECFDF5 !important;
}
html body .hp-sotd__badge {
  color: #065F46 !important;
  -webkit-text-fill-color: #065F46 !important;
  background: #ECFDF5 !important;
}

/* --- How It Works Steps (white bg) --- */
html body .hp-step__num {
  color: #00875A !important;
  -webkit-text-fill-color: #00875A !important;
}
html body .hp-step__title {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-step__desc {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}
html body .hp-step__icon {
  color: #00875A !important;
}

/* --- Live Settlement Feed (white bg) --- */
html body .hp-feed__live {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-feed-table__head th {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-feed-row__company span {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-feed-row .text-muted,
html body .hp-feed-row .text-xs {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-feed-row__payout {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
}
html body .hp-feed-row__cat {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
  background: #F3F4F6 !important;
}
html body .hp-feed-row__new {
  color: #065F46 !important;
  -webkit-text-fill-color: #065F46 !important;
  background: #ECFDF5 !important;
}

/* --- Categories (white bg) --- */
html body .hp-cat-card__name {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-cat-card__count {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-cat-card__icon {
  color: #00875A !important;
  background: #ECFDF5 !important;
  border: none !important;
}

/* --- Testimonials (white bg) --- */
html body .hp-testimonial-card__quote {
  color: #1F2A37 !important;
  -webkit-text-fill-color: #1F2A37 !important;
}
html body .hp-testimonial-card__name {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-testimonial-card__location {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}

/* --- Pricing (white bg) --- */
html body .hp-pricing-card__name {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-pricing-card__amount {
  color: #00875A !important;
  -webkit-text-fill-color: #00875A !important;
}
html body .hp-pricing-card__period {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-pricing-card__features li {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}
html body .hp-pricing__note {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-pricing-card__badge {
  color: #065F46 !important;
  -webkit-text-fill-color: #065F46 !important;
  background: #ECFDF5 !important;
}

/* --- Stats (white bg) --- */
html body .hp-stat__value {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-stat__label {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}

/* --- Payout cards (white bg) --- */
html body .hp-payout-card__name {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-payout-card__settlement {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-payout-card__amount {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
}
html body .hp-payout-card__label {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .hp-payout-card__avatar {
  color: #065F46 !important;
  -webkit-text-fill-color: #065F46 !important;
  background: #ECFDF5 !important;
  border: none !important;
}

/* --- Email capture (white bg) --- */
html body .hp-email-capture__headline {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-email-capture__sub {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}
html body .hp-email-capture__note {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}

/* --- Final CTA (white bg) --- */
html body .hp-final-cta__headline {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-final-cta__note,
html body .hp-final-cta__note span {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}

/* --- For Business section --- */
html body .hp-for-business__title {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-for-business__desc {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 3: BADGES / PILLS — Verified contrast combinations
   ══════════════════════════════════════════════════════════════════════════════ */

/* Green badges: dark green on light green */
html body .badge-success,
html body .badge-accent,
html body .badge-deadline-green {
  background: #DCFCE7 !important;
  color: #166534 !important;
  -webkit-text-fill-color: #166534 !important;
  border: none !important;
}

/* Warning/yellow badges: dark amber on light amber */
html body .badge-warning,
html body .badge-deadline-yellow {
  background: #FEF3C7 !important;
  color: #92400E !important;
  -webkit-text-fill-color: #92400E !important;
  border: none !important;
}

/* Error/red badges: dark red on light red */
html body .badge-error,
html body .badge-danger,
html body .badge-deadline-red {
  background: #FEE2E2 !important;
  color: #991B1B !important;
  -webkit-text-fill-color: #991B1B !important;
  border: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 4: BUTTONS — Correct contrast on all CTA buttons
   ══════════════════════════════════════════════════════════════════════════════ */

/* Primary buttons: WHITE text on emerald bg */
html body .btn-primary {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: #00875A !important;
  border: none !important;
}
html body .btn-primary:hover {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: #006B4D !important;
  border: none !important;
}

/* Secondary buttons: dark green text on light green bg */
html body .btn-secondary {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
  background: #f0fdf4 !important;
  border: none !important;
}
html body .btn-secondary:hover {
  color: #00643E !important;
  -webkit-text-fill-color: #00643E !important;
  background: #d1fae5 !important;
  border: none !important;
}

/* Ghost buttons: dark text, no border */
html body .btn-ghost {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
  border: none !important;
}
html body .btn-ghost:hover {
  color: #00875A !important;
  -webkit-text-fill-color: #00875A !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 5: INLINE STYLE ATTRIBUTE CATCHES — homepage-specific
   Catch any inline styles that slip through on the homepage
   ══════════════════════════════════════════════════════════════════════════════ */

/* Catch any remaining light gray text on white bg in homepage */
html body main#main-content [style*="color:#9ca3af"],
html body main#main-content [style*="color:#9CA3AF"],
html body main#main-content [style*="color: #9ca3af"],
html body main#main-content [style*="color: #9CA3AF"] {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}

html body main#main-content [style*="color:#94a3b8"],
html body main#main-content [style*="color:#94A3B8"],
html body main#main-content [style*="color: #94a3b8"],
html body main#main-content [style*="color: #94A3B8"] {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 6: B2B / FOR BUSINESS SECTION (white bg)
   ══════════════════════════════════════════════════════════════════════════════ */

html body .hp-for-business__card,
html body .b2b-cta-card {
  border: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
html body .hp-for-business__card:hover,
html body .b2b-cta-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}
html body .hp-for-business__eyebrow {
  color: #047857 !important;
  -webkit-text-fill-color: #047857 !important;
}
html body .hp-for-business__title,
html body .b2b-cta-card__title {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
html body .hp-for-business__card-name {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-for-business__card-desc,
html body .b2b-cta-card__desc {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}
html body .hp-for-business__card-link {
  color: #00875A !important;
  -webkit-text-fill-color: #00875A !important;
}

/* Resume banner */
html body .hp-resume-banner__label {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .hp-resume-banner__text {
  color: #4B5563 !important;
  -webkit-text-fill-color: #4B5563 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 7: SOCIAL PROOF TICKER (if it appears on homepage)
   ══════════════════════════════════════════════════════════════════════════════ */

html body .spt-stat-value {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
html body .spt-stat-label {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
html body .spt-item-text {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}
html body .spt-item-time {
  color: #6B7280 !important;
  -webkit-text-fill-color: #6B7280 !important;
}
