/* Scrollprise Dark Theme v40 — EXPERIMENT BRANCH ONLY
   Presentation layer only. No functional behaviour lives in this file.
   Intended for Cloudflare preview on design/dark-theme-experiment-v40.
*/

html.theme-dark-v40 {
  color-scheme: dark;
  --sp40-page: #080a08;
  --sp40-page-deep: #050705;
  --sp40-void: #000000;
  --sp40-surface: #111511;
  --sp40-surface-2: #171b17;
  --sp40-surface-3: #1d221d;
  --sp40-text: #f4f7f2;
  --sp40-muted: #9aa29a;
  --sp40-soft: #737b73;
  --sp40-border: rgba(255,255,255,.085);
  --sp40-border-strong: rgba(255,255,255,.14);
  --sp40-lime: #b7ff33;
  --sp40-lime-soft: rgba(183,255,51,.12);
  --sp40-shadow: 0 28px 80px rgba(0,0,0,.34);
}

html.theme-dark-v40,
html.theme-dark-v40 body {
  background: var(--sp40-page) !important;
  color: var(--sp40-text) !important;
}

html.theme-dark-v40 body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px circle at 15% 4%, rgba(183,255,51,.035), transparent 58%),
    radial-gradient(760px circle at 88% 22%, rgba(94,120,255,.035), transparent 62%),
    linear-gradient(180deg, #090b09 0%, #070907 54%, #050705 100%);
}

/* Header / disclosure strip */
html.theme-dark-v40 .top-note {
  background: #0d110d !important;
  color: #8e978e !important;
  border-color: var(--sp40-border) !important;
}
html.theme-dark-v40 .top-note strong { color: #d6ddd3 !important; }

html.theme-dark-v40 .site-header {
  background: rgba(8,10,8,.88) !important;
  border-bottom-color: var(--sp40-border) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}
html.theme-dark-v40 .site-header .header-row { color: var(--sp40-text) !important; }
html.theme-dark-v40 .main-nav a,
html.theme-dark-v40 .main-nav summary,
html.theme-dark-v40 .mobile-category-link,
html.theme-dark-v40 .mobile-swipe-link {
  color: #c9d0c7 !important;
}
html.theme-dark-v40 .main-nav a:hover,
html.theme-dark-v40 .main-nav summary:hover { color: #fff !important; }
html.theme-dark-v40 .header-button,
html.theme-dark-v40 .primary-button {
  background: var(--sp40-lime) !important;
  color: #091000 !important;
  border-color: var(--sp40-lime) !important;
  box-shadow: 0 10px 30px rgba(183,255,51,.08) !important;
}
html.theme-dark-v40 .secondary-button,
html.theme-dark-v40 .text-action {
  color: #e9ede7 !important;
  border-color: var(--sp40-border-strong) !important;
}

/* Keep logo legible on dark preview without replacing assets. */
html.theme-dark-v40 .brand-image img,
html.theme-dark-v40 .footer-logo {
  filter: brightness(0) invert(1) !important;
}

/* Shared dark surfaces */
html.theme-dark-v40 .glass,
html.theme-dark-v40 .search-card,
html.theme-dark-v40 .home-search-results,
html.theme-dark-v40 .instagram-card,
html.theme-dark-v40 .about-content article,
html.theme-dark-v40 .disclosure-card,
html.theme-dark-v40 .contact-form,
html.theme-dark-v40 .modal-card {
  background: rgba(17,21,17,.82) !important;
  border-color: var(--sp40-border) !important;
  color: var(--sp40-text) !important;
  box-shadow: var(--sp40-shadow) !important;
}

html.theme-dark-v40 input,
html.theme-dark-v40 textarea,
html.theme-dark-v40 select {
  background: #0d100d !important;
  color: var(--sp40-text) !important;
  border-color: var(--sp40-border-strong) !important;
  caret-color: var(--sp40-lime);
}
html.theme-dark-v40 input::placeholder,
html.theme-dark-v40 textarea::placeholder { color: #687068 !important; }
html.theme-dark-v40 input:focus,
html.theme-dark-v40 textarea:focus,
html.theme-dark-v40 select:focus {
  border-color: rgba(183,255,51,.48) !important;
  box-shadow: 0 0 0 3px rgba(183,255,51,.07) !important;
}

html.theme-dark-v40 h1,
html.theme-dark-v40 h2,
html.theme-dark-v40 h3,
html.theme-dark-v40 h4,
html.theme-dark-v40 strong { color: var(--sp40-text); }
html.theme-dark-v40 p { color: var(--sp40-muted); }
html.theme-dark-v40 .eyebrow { color: var(--sp40-lime) !important; }
html.theme-dark-v40 .text-action { color: #d9dfd7 !important; }

/* ========================= HOME ========================= */
html.theme-dark-v40 body[data-page="home"] .hero,
html.theme-dark-v40 body[data-page="home"] .artisan-market-hero,
html.theme-dark-v40 body[data-page="home"] .hero-frost-stage {
  background: #050705 !important;
}
html.theme-dark-v40 body[data-page="home"] .hero-under-glass,
html.theme-dark-v40 body[data-page="home"] .hero-frost-surface {
  opacity: .34 !important;
  filter: saturate(.6) brightness(.48) !important;
}
html.theme-dark-v40 body[data-page="home"] .hero-noise { opacity: .18 !important; }
html.theme-dark-v40 body[data-page="home"] #heroTitle,
html.theme-dark-v40 body[data-page="home"] #heroTitle .hero-solid-line { color: #f8faf7 !important; }
html.theme-dark-v40 body[data-page="home"] #heroTitle .hero-outline-line {
  color: transparent !important;
  -webkit-text-stroke-color: rgba(244,247,242,.38) !important;
}
html.theme-dark-v40 body[data-page="home"] .hero-lede,
html.theme-dark-v40 body[data-page="home"] .scroll-cue { color: #919991 !important; }
html.theme-dark-v40 body[data-page="home"] .hero-tagline em { color: var(--sp40-lime) !important; }

html.theme-dark-v40 .scrollprise-marquee {
  background: #0c0f0c !important;
  color: #d5dad3 !important;
  border-color: var(--sp40-border) !important;
}
html.theme-dark-v40 .scrollprise-marquee b { color: var(--sp40-lime) !important; }

html.theme-dark-v40 .editorial-drop,
html.theme-dark-v40 .traditional-home-section,
html.theme-dark-v40 .discovery-hub,
html.theme-dark-v40 .picks,
html.theme-dark-v40 .instagram-section,
html.theme-dark-v40 .about-section,
html.theme-dark-v40 .disclosure-block,
html.theme-dark-v40 .contact-section {
  background: transparent !important;
  color: var(--sp40-text) !important;
}

html.theme-dark-v40 .search-band {
  background: rgba(5,7,5,.72) !important;
  border-color: var(--sp40-border) !important;
}
html.theme-dark-v40 .search-card button {
  background: var(--sp40-lime) !important;
  color: #071000 !important;
}

html.theme-dark-v40 .traditional-window-rail > a {
  background:
    radial-gradient(180px circle at 92% 5%, rgba(183,255,51,.10), transparent 64%),
    linear-gradient(145deg,#151915,#0e110e) !important;
  border-color: var(--sp40-border) !important;
  color: var(--sp40-text) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.18) !important;
}
html.theme-dark-v40 .traditional-window-rail > a:hover {
  border-color: rgba(183,255,51,.28) !important;
  background:
    radial-gradient(210px circle at 92% 4%, rgba(183,255,51,.15), transparent 62%),
    linear-gradient(145deg,#181d18,#101310) !important;
}
html.theme-dark-v40 .traditional-window-rail em { color: #747d74 !important; }
html.theme-dark-v40 .traditional-window-rail span { color: #949d94 !important; }
html.theme-dark-v40 .traditional-window-rail b,
html.theme-dark-v40 .traditional-window-rail i { color: var(--sp40-lime) !important; }

/* Product cards: dark outer shell, neutral image stage so products stay readable. */
html.theme-dark-v40 .product-card,
html.theme-dark-v40 .editorial-product-stage .product-card,
html.theme-dark-v40 .home-search-results .product-card,
html.theme-dark-v40 .catalogue-page .product-card {
  background: var(--sp40-surface-2) !important;
  border-color: var(--sp40-border) !important;
  color: var(--sp40-text) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.22) !important;
}
html.theme-dark-v40 .product-card:hover {
  border-color: rgba(183,255,51,.22) !important;
  box-shadow: 0 25px 62px rgba(0,0,0,.36) !important;
}
html.theme-dark-v40 .product-card .product-image,
html.theme-dark-v40 .product-card .product-image-wrap,
html.theme-dark-v40 .product-card [class*="image-stage"] {
  background: #f2f3ef !important;
}
html.theme-dark-v40 .product-card p,
html.theme-dark-v40 .product-card small,
html.theme-dark-v40 .product-card .product-meta { color: #919991 !important; }
html.theme-dark-v40 .card-save,
html.theme-dark-v40 .vibe-result-save {
  background: rgba(11,14,11,.78) !important;
  border-color: var(--sp40-border-strong) !important;
  color: #f2f5f0 !important;
}

html.theme-dark-v40 .instagram-profile-shell,
html.theme-dark-v40 .instagram-feed-item,
html.theme-dark-v40 .about-principles > div {
  background: #0f130f !important;
  border-color: var(--sp40-border) !important;
  color: var(--sp40-text) !important;
}
html.theme-dark-v40 blockquote { color: #dce2d9 !important; border-color: rgba(183,255,51,.28) !important; }

/* ========================= READ MY MIND ========================= */
html.theme-dark-v40 body[data-page="read-my-mind"] {
  background: var(--sp40-void) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"]::before {
  background:
    radial-gradient(820px circle at 75% 23%, rgba(86,80,255,.06), transparent 60%),
    radial-gradient(760px circle at 30% 78%, rgba(183,255,51,.035), transparent 64%),
    #000 !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-section {
  background: transparent !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-shell {
  background: rgba(5,7,5,.66) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 35px 100px rgba(0,0,0,.50) !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: transparent !important;
  color: var(--sp40-text) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-intro h2,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-intro h2 em {
  color: #f5f7f3 !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-intro > p,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-bubble p { color: #a0a8a0 !important; }
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-console-topline {
  border-color: var(--sp40-border) !important;
  color: #aab2aa !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-bubble-guide {
  background: rgba(18,22,18,.82) !important;
  border-color: var(--sp40-border) !important;
  color: var(--sp40-text) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-bubble-user {
  background: #e9eee5 !important;
  color: #0d110d !important;
  border-color: #e9eee5 !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-bubble-user p { color: #0d110d !important; }
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-form {
  background: rgba(12,15,12,.90) !important;
  border-color: var(--sp40-border-strong) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.25) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-form:focus-within {
  border-color: rgba(183,255,51,.45) !important;
  box-shadow: 0 0 0 4px rgba(183,255,51,.055),0 24px 64px rgba(0,0,0,.34) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-form input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-form button {
  background: var(--sp40-lime) !important;
  color: #071000 !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-starters button,
html.theme-dark-v40 body[data-page="read-my-mind"] .bundle-presets 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: #101410 !important;
  border-color: var(--sp40-border) !important;
  color: #c5ccc3 !important;
}
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"] .bundle-presets button:hover,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-refinements button:hover {
  color: #fff !important;
  border-color: rgba(183,255,51,.28) !important;
  background: #151a15 !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-guide-trust span {
  background: rgba(14,17,14,.72) !important;
  border-color: var(--sp40-border) !important;
  color: #8d968d !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-results {
  border-top-color: var(--sp40-border) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-result-card {
  background: #111511 !important;
  border-color: var(--sp40-border) !important;
  color: var(--sp40-text) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.28) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-result-card:first-child {
  border-color: rgba(183,255,51,.24) !important;
  box-shadow: 0 26px 66px rgba(0,0,0,.36), inset 0 1px 0 rgba(183,255,51,.09) !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-result-image {
  background: #eef1ec !important;
}
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-result-meta,
html.theme-dark-v40 body[data-page="read-my-mind"] .buying-mini-block,
html.theme-dark-v40 body[data-page="read-my-mind"] .vibe-why-this p { color: #8f988f !important; }

/* ========================= CATALOGUE PAGES ========================= */
html.theme-dark-v40 body.catalogue-page {
  background: var(--sp40-page) !important;
  color: var(--sp40-text) !important;
}
html.theme-dark-v40 body.catalogue-page .catalogue-hero,
html.theme-dark-v40 body.catalogue-page .categories-hero,
html.theme-dark-v40 body.catalogue-page .category-hero,
html.theme-dark-v40 body.catalogue-page .catalogue-toolbar,
html.theme-dark-v40 body.catalogue-page .catalogue-controls,
html.theme-dark-v40 body.catalogue-page .category-sidebar,
html.theme-dark-v40 body.catalogue-page .filters-panel {
  background: #0d100d !important;
  border-color: var(--sp40-border) !important;
  color: var(--sp40-text) !important;
}
html.theme-dark-v40 body.catalogue-page button,
html.theme-dark-v40 body.catalogue-page .filter-chip,
html.theme-dark-v40 body.catalogue-page .category-chip {
  border-color: var(--sp40-border-strong) !important;
}
html.theme-dark-v40 body.catalogue-page .filter-chip.active,
html.theme-dark-v40 body.catalogue-page .category-chip.active {
  background: var(--sp40-lime) !important;
  color: #071000 !important;
  border-color: var(--sp40-lime) !important;
}

/* Dropdowns are already dark, but harmonize borders/text. */
html.theme-dark-v40 .mega-menu,
html.theme-dark-v40 .traditional-mega-menu {
  background: #080b08 !important;
  border-color: rgba(183,255,51,.12) !important;
  box-shadow: 0 35px 110px rgba(0,0,0,.72) !important;
}
html.theme-dark-v40 .mega-menu p,
html.theme-dark-v40 .mega-links a { color: #aeb6ae !important; }
html.theme-dark-v40 .mega-links a:hover { color: #fff !important; }

/* Modals / footer */
html.theme-dark-v40 .modal { background: rgba(0,0,0,.76) !important; }
html.theme-dark-v40 .modal-card { background: #111511 !important; }
html.theme-dark-v40 .site-footer {
  background: #050705 !important;
  color: #8d958d !important;
  border-top-color: var(--sp40-border) !important;
}
html.theme-dark-v40 .site-footer a { color: #aeb6ae !important; }
html.theme-dark-v40 .site-footer a:hover { color: #fff !important; }

/* Accessibility: preserve clear keyboard focus in the dark preview. */
html.theme-dark-v40 :focus-visible {
  outline: 2px solid var(--sp40-lime) !important;
  outline-offset: 3px !important;
}

@media (max-width: 700px) {
  html.theme-dark-v40 body::before { opacity: .75; }
  html.theme-dark-v40 .site-header { background: rgba(7,9,7,.95) !important; }
}
