/* Scrollprise Dark Theme v40.2 — COMPONENT CLEANUP
   EXPERIMENT BRANCH ONLY.
   Presentation-only overrides. No business logic, handlers or data changes.
*/

html.theme-dark-v40 {
  --sp40-2-bg: #070907;
  --sp40-2-panel: #0d100d;
  --sp40-2-card: #111511;
  --sp40-2-card-hi: #151a15;
  --sp40-2-copy: #aab2aa;
  --sp40-2-dim: #7f887f;
  --sp40-2-line: rgba(255,255,255,.09);
  --sp40-2-line-hi: rgba(255,255,255,.16);
  --sp40-2-lime: #b7ff33;
}

/* ==================== BUTTON HIERARCHY ==================== */
html.theme-dark-v40 .secondary-button,
html.theme-dark-v40 .details-button,
html.theme-dark-v40 .artisan-secondary,
html.theme-dark-v40 .text-action,
html.theme-dark-v40 button:not(.primary-button):not(.header-button):not(.amazon-button):not(.floating-surprise):not(.vibe-form button) {
  color: #d4dbd2;
}

html.theme-dark-v40 .secondary-button,
html.theme-dark-v40 .artisan-hero-actions .artisan-secondary {
  background: #111511 !important;
  color: #dce2da !important;
  border: 1px solid var(--sp40-2-line-hi) !important;
  box-shadow: none !important;
}

html.theme-dark-v40 .secondary-button:hover,
html.theme-dark-v40 .artisan-hero-actions .artisan-secondary:hover {
  background: #171c17 !important;
  color: #fff !important;
  border-color: rgba(183,255,51,.28) !important;
}

/* ==================== HOMEPAGE HERO WALL ==================== */
html.theme-dark-v40 body[data-page="home"] .editorial-hero.artisan-market-hero {
  background:
    radial-gradient(760px 520px at 78% 42%, rgba(183,255,51,.035), transparent 66%),
    radial-gradient(520px 420px at 20% 32%, rgba(90,78,255,.03), transparent 72%),
    #050705 !important;
  color: #f5f7f3 !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-hero-title {
  color: #f5f7f3 !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-hero-title span {
  color: #8f968f !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-hero-lede {
  color: #929a92 !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-wall-stage {
  background: #070907 !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-wall-stage::before {
  background:
    linear-gradient(90deg,#050705 0,rgba(5,7,5,.66) 7%,transparent 18%,transparent 84%,rgba(5,7,5,.52) 94%,#050705 100%),
    linear-gradient(180deg,#050705 0,transparent 11%,transparent 88%,#050705 100%) !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-wall-stage::after {
  box-shadow: inset 0 0 90px 30px rgba(0,0,0,.34) !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-wall-caption {
  color: #8d968d !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-product-card::before {
  background: linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025),0 12px 30px rgba(0,0,0,.20) !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-product-card:hover::before,
html.theme-dark-v40 body[data-page="home"] .artisan-product-card:focus-visible::before {
  border-color: rgba(183,255,51,.25) !important;
  background: linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.026)) !important;
}

html.theme-dark-v40 body[data-page="home"] .artisan-product-card::after {
  background: radial-gradient(ellipse at center,rgba(0,0,0,.34),rgba(0,0,0,0) 72%) !important;
}

/* ==================== CATALOGUE CARDS ==================== */
html.theme-dark-v40 .product-card,
html.theme-dark-v40 .catalogue-lite-card,
html.theme-dark-v40 .traditional-categories-page .product-card {
  background: var(--sp40-2-card) !important;
  border: 1px solid var(--sp40-2-line) !important;
  color: #f3f6f1 !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.22) !important;
  overflow: hidden;
}

html.theme-dark-v40 .product-card::before,
html.theme-dark-v40 .product-card::after,
html.theme-dark-v40 .catalogue-lite-card::before,
html.theme-dark-v40 .catalogue-lite-card::after {
  background: none !important;
  box-shadow: none !important;
}

/* Only the photography well stays neutral/light. */
html.theme-dark-v40 .product-card .card-media,
html.theme-dark-v40 .catalogue-lite-card .card-media,
html.theme-dark-v40 .traditional-categories-page .product-card .card-media {
  background: #eef0eb !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.theme-dark-v40 .product-card .card-copy,
html.theme-dark-v40 .catalogue-lite-card .card-copy,
html.theme-dark-v40 .traditional-categories-page .product-card .card-copy {
  background: var(--sp40-2-card) !important;
  color: #f3f6f1 !important;
  border-top: 1px solid rgba(255,255,255,.045) !important;
}

html.theme-dark-v40 .product-card:hover .card-copy,
html.theme-dark-v40 .catalogue-lite-card:hover .card-copy {
  background: var(--sp40-2-card-hi) !important;
}

html.theme-dark-v40 .product-card h3,
html.theme-dark-v40 .product-card h3 button,
html.theme-dark-v40 .catalogue-lite-card h3,
html.theme-dark-v40 .catalogue-lite-card h3 button {
  color: #f5f7f3 !important;
  -webkit-text-fill-color: #f5f7f3 !important;
}

html.theme-dark-v40 .product-card .card-story,
html.theme-dark-v40 .catalogue-lite-card .card-story {
  color: #9ca59c !important;
  -webkit-text-fill-color: #9ca59c !important;
}

html.theme-dark-v40 .product-card .card-hook,
html.theme-dark-v40 .catalogue-lite-card .card-hook {
  color: var(--sp40-2-lime) !important;
  -webkit-text-fill-color: var(--sp40-2-lime) !important;
}

html.theme-dark-v40 .product-card .best-for,
html.theme-dark-v40 .catalogue-lite-card .best-for {
  background: #0c0f0c !important;
  border-color: rgba(255,255,255,.075) !important;
}

html.theme-dark-v40 .product-card .best-for span,
html.theme-dark-v40 .catalogue-lite-card .best-for span,
html.theme-dark-v40 .product-card .paid-note,
html.theme-dark-v40 .catalogue-lite-card .paid-note {
  color: #788178 !important;
}

html.theme-dark-v40 .product-card .best-for strong,
html.theme-dark-v40 .catalogue-lite-card .best-for strong {
  color: #d9dfd7 !important;
}

html.theme-dark-v40 .product-card .details-button,
html.theme-dark-v40 .catalogue-lite-card .details-button {
  background: #171b17 !important;
  color: #e4e9e2 !important;
  border-color: rgba(255,255,255,.11) !important;
}

html.theme-dark-v40 .product-card .amazon-button,
html.theme-dark-v40 .catalogue-lite-card .amazon-button {
  background: var(--sp40-2-lime) !important;
  color: #071000 !important;
  border-color: var(--sp40-2-lime) !important;
}

/* ==================== ALL PRODUCTS SORT / SEARCH ==================== */
html.theme-dark-v40 .all-products-page [data-catalogue-sort],
html.theme-dark-v40 [data-catalogue-sort] {
  background: #121612 !important;
  color: #aeb6ae !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  box-shadow: none !important;
}

html.theme-dark-v40 [data-catalogue-sort]:hover,
html.theme-dark-v40 [data-catalogue-sort].active,
html.theme-dark-v40 [data-catalogue-sort][aria-pressed="true"] {
  background: #171c17 !important;
  color: #fff !important;
  border-color: rgba(183,255,51,.28) !important;
}

html.theme-dark-v40 .all-products-page #catalogueSearch,
html.theme-dark-v40 .traditional-categories-page #traditionalSearch {
  background: #0c0f0c !important;
  color: #f2f5f0 !important;
  border-color: rgba(255,255,255,.11) !important;
}

/* ==================== CATEGORY TILES ==================== */
html.theme-dark-v40 .traditional-category-card {
  background:
    radial-gradient(180px circle at 92% 4%,rgba(183,255,51,.055),transparent 64%),
    #111511 !important;
  color: #f1f4ef !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  box-shadow: none !important;
}

html.theme-dark-v40 .traditional-category-card span {
  color: #f3f6f1 !important;
  -webkit-text-fill-color: #f3f6f1 !important;
}

html.theme-dark-v40 .traditional-category-card small {
  color: #929b92 !important;
  -webkit-text-fill-color: #929b92 !important;
}

html.theme-dark-v40 .traditional-category-card:hover {
  background:
    radial-gradient(220px circle at 92% 2%,rgba(183,255,51,.10),transparent 65%),
    #151a15 !important;
  border-color: rgba(183,255,51,.25) !important;
}

html.theme-dark-v40 .traditional-category-card.active {
  background: #151a15 !important;
  border-color: rgba(183,255,51,.42) !important;
  box-shadow: inset 0 0 0 1px rgba(183,255,51,.08) !important;
}

html.theme-dark-v40 .trad-sub-pill {
  background: #101410 !important;
  color: #b6beb6 !important;
  border-color: rgba(255,255,255,.085) !important;
}

html.theme-dark-v40 .trad-sub-pill.active,
html.theme-dark-v40 .trad-sub-pill:hover {
  background: #151a15 !important;
  color: #fff !important;
  border-color: rgba(183,255,51,.28) !important;
}

/* ==================== READ MY MIND CLEANUP ==================== */
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-shell {
  background: #020302 !important;
}

html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-intro,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-console {
  background: #020302 !important;
}

html.theme-dark-v40 body[data-page="read-my-mind"] .bundle-presets button,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-starters button,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-refinements button,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-start-over {
  background: #0d100d !important;
  color: #b8c0b8 !important;
  -webkit-text-fill-color: #b8c0b8 !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  box-shadow: none !important;
}

html.theme-dark-v40 body[data-page="read-my-mind"] .bundle-presets button:hover,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-starters button:hover,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-refinements button:hover {
  background: #151a15 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(183,255,51,.25) !important;
}

/* Current RMM conversation uses Gemini after deterministic product integrity.
   Hide the legacy last trust chip that says no external AI call; presentation only. */
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-trust span:last-child {
  display: none !important;
}

html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-trust span {
  background: #0b0e0b !important;
  color: #8f988f !important;
  border-color: rgba(255,255,255,.075) !important;
}

html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-form {
  background: #070907 !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* ==================== CONTRAST FIXES ==================== */
html.theme-dark-v40 .catalogue-page p,
html.theme-dark-v40 .traditional-categories-page p,
html.theme-dark-v40 .all-products-page p {
  color: #98a198 !important;
}

html.theme-dark-v40 .catalogue-page [class*="result"],
html.theme-dark-v40 .traditional-categories-page [class*="result"] {
  color: #838c83 !important;
}

@media (max-width:700px) {
  html.theme-dark-v40 .traditional-category-card {
    background: #111511 !important;
  }

  html.theme-dark-v40 .product-card .card-copy,
  html.theme-dark-v40 .catalogue-lite-card .card-copy {
    background: #111511 !important;
  }
}
