/* moneybug.app dark mode and the Clock Bug look (2026-11-12): follows the visitor's system setting, nothing to switch.
   The site's colors come from the app icon (MoneyBug.icon): by day a cobalt hero, mint rows (the icon's face, #CDEFE3),
   ink text (the bug's head, #2E241D) and gold; at night graphite (the dark icon's face, #1C1C1E), lavender (the night
   beetle) and gold. Day colors are set in the page builder and the theme options; this file only does the night, plus
   the icon swap. Loaded from the child theme's functions.php (versioned by the file's date), with the color-scheme meta
   and a first-paint background there so a page never flashes white before this file arrives.

   Home page classes, set in the page builder (a row's class, a column's or image's Extra class name):
     mb-hero          the hero row (its night wallpaper is Images/hero-bubbles-night-navy.jpg)
     mb-mint          rows that are mint by day
     mb-dark-page     the pale mint row at the bottom
     mb-card-cobalt, mb-dark-card, mb-card-gold      the three feature cards: cobalt, the bug's ink, gold (the user's pick)
     mb-pricing, mb-price-card                       the launch price row (its bug border) and its card
     mb-box-download, mb-box-support                 the two boxes at the bottom
     mb-icon-light, mb-icon-dark                     the app icon, twice: one for each appearance
   Never select Salient elements by their inline colors: Salient rewrites a column's style attribute in a real browser
   (#ffffff becomes rgb(255, 255, 255)), so attribute selectors matched in captures and failed in the user's Firefox. */

/* The app icon: the light Clock Bug by day, the graphite one at night. */
@media not (prefers-color-scheme: dark) { .mb-icon-dark { display: none !important; } }

@media (prefers-color-scheme: dark) {
  :root {
    --mb-bg: #121A33;      /* page: navy night (the user's pick of four, 2026-11-12: less grey; was graphite #1C1C1E) */
    --mb-card: #1C2747;    /* cards on the page */
    --mb-text: #C5CDE3;
    --mb-heading: #F2F4FB;
    --mb-muted: #8B95B3;
    --mb-line: #2A3658;
    --mb-link: #B9A7F6;    /* the night beetle's lavender, the app's night accent */
  }

  .mb-icon-light { display: none !important; }

  html, body, #ajax-content-wrap, .container-wrap, .ocm-effect-wrap { background-color: var(--mb-bg) !important; }
  #footer-outer, #footer-outer #copyright { background-color: #0B1122 !important; }

  /* Inner pages (news, posts, changelog, privacy): the home page sets its own colors per row. */
  body:not(.home) .container-wrap :is(p, li, td, th, dd, dt, blockquote, .wpb_text_column) { color: var(--mb-text); }
  body:not(.home) .container-wrap :is(h1, h2, h3, h4, h5, h6) { color: var(--mb-heading) !important; }
  body:not(.home) .container-wrap a:not(.nectar-button) { color: var(--mb-link); }
  body:not(.home) .container-wrap :is(hr, .divider-border) { border-color: var(--mb-line) !important; background-color: var(--mb-line); }

  /* The news list and a post: titles, the date blocks, meta lines, separators, the category badge, the author box. */
  body:not(.home) .post-area .post-header :is(.title, h2) a,
  body:not(.home) .post-area .post-header :is(.title, h2),
  body.single .entry-title, body.single #single-below-header ~ * h1 { color: var(--mb-heading) !important; }
  body:not(.home) .post-area :is(.post-meta, .post-meta *, .post-date, .post-date *, .meta-author, .meta-category, .meta-category a, .excerpt + span),
  body.single #single-below-header, body.single #single-below-header * { color: var(--mb-muted) !important; border-color: var(--mb-line) !important; }
  body:not(.home) .post-area :is(.post-meta .date, .post-meta .date span) { color: var(--mb-heading) !important; }
  body:not(.home) .post-area :is(.excerpt, .post-content, .content-inner, .article-content-wrap) { color: var(--mb-text) !important; }
  body:not(.home) #sidebar :is(.widget, .widget li, .widget a, .widget p) { color: var(--mb-text); }
  body:not(.home) #sidebar input[type="text"], body:not(.home) #sidebar input[type="search"] { background-color: var(--mb-card) !important; color: var(--mb-heading) !important; border-color: var(--mb-line) !important; }
  body:not(.home) .post-area :is(article.post, .post .content-inner, .post-meta, .post-meta .date) { border-color: var(--mb-line) !important; }
  body.single :is(.meta-category a, .single-post-category a, .nectar-post-cat a) { color: var(--mb-heading) !important; border-color: var(--mb-heading) !important; }
  body.single :is(#author-bio, #author-bio *) { color: var(--mb-heading) !important; border-color: var(--mb-line) !important; background-color: transparent !important; }

  /* Home: the hero's wallpaper at night, navy with mid-purple bubbles (#5A48A8; the user, 2026-11-12, after
     #9986E0, #7E6BC6 and #3C2F74), made from the day one: the blue scaled by brightness to navy. */
  .home .mb-hero > .row-bg-wrap .row-bg { background-image: url('../Images/hero-bubbles-night-navy.jpg') !important; background-color: #142042 !important; }
  /* Everything at a Glance at night: navy bubbles (the page's media 326 is the graphite one, kept for reference). */
  html .home .mb-glance > .row-bg-wrap .row-bg { background-image: url('../Images/glance-bubbles-navy.jpg') !important; background-color: #18233F !important; }

  /* The mint rows and the pale mint bottom row are the page's graphite, and so are the waves between rows. */
  .home :is(.mb-mint, .mb-dark-page) > .row-bg-wrap .row-bg { background-color: var(--mb-bg) !important; }
  .home .nectar-shape-divider { fill: var(--mb-bg) !important; }
  .home :is(.mb-mint, .mb-dark-page) :is(h1, h2, h3, h4, h5, h6, .vc_custom_heading):not(.nectar-gradient-text):not(:is(.mb-card-cobalt, .mb-dark-card, .mb-card-gold, .mb-box-download, .mb-box-support) *) { color: var(--mb-heading) !important; }
  .home :is(.mb-mint, .mb-dark-page) :is(p, li, .nectar-responsive-text, .wpb_text_column):not(:is(.mb-card-cobalt, .mb-dark-card, .mb-card-gold, .mb-box-download, .mb-box-support) *) { color: var(--mb-text) !important; }
  .home :is(.mb-mint, .mb-dark-page) .wpb_text_column a:not(.nectar-button) { color: var(--mb-link) !important; }
  .home .mb-mint .nectar-cta a { color: var(--mb-text) !important; border-color: var(--mb-text) !important; }

  /* Cards: cobalt becomes the night beetle's indigo, the Download box its lavender (#7E6BC6: white on it is 4.4:1,
     the app's night fill), the Support box a graphite card; the gold card stays gold. */
  .home .mb-card-cobalt .column-bg-overlay { background-color: #3E2E78 !important; }
  .home .mb-box-download .column-bg-overlay { background-color: #7E6BC6 !important; }
  .home .mb-box-support .column-bg-overlay { background-color: var(--mb-card) !important; }

  /* "No Account Please" (the bug's ink by day) becomes a graphite card. */
  .home .mb-dark-card .column-bg-overlay { background-color: var(--mb-card) !important; }
  .home .mb-dark-card :is(h1, h2, h3, h4, h5, h6, .vc_custom_heading) { color: var(--mb-heading) !important; }
  .home .mb-dark-card :is(p, li) { color: var(--mb-text) !important; }

  /* The launch price: a graphite card in the bug border, whose bugs have the dark icon's lavender heads and legs
     (the ink ones vanished on graphite). `html` outranks the day rules below, which come later in this file. */
  html .home .mb-price-card > .vc_column-inner { background: var(--mb-card); box-shadow: none; }
  html .home .mb-price-card .mb-price-note { color: var(--mb-text); }
  html .home .mb-price-card :is(.nectar-gradient-text, .nectar-gradient-text *) { background: none !important; -webkit-text-fill-color: var(--mb-heading) !important; color: var(--mb-heading) !important; }
  html body.home .mb-pricing .mb-price-card .mb-price-cta a { background: #7E6BC6; box-shadow: none; color: #FFFFFF !important; } /* the app's night fill: white on it is 4.4:1 */
  html .home .mb-price-card .mb-price-cta a:hover { background: #8E7BE0; }
  html .home .mb-pricing > .row-bg-wrap .row-bg {
    background-image: url('../Images/bug-field-night.png') !important; }
  html .home .mb-glance .nectar-shape-divider-wrap[data-position="bottom"]::after { background-image: url('../Images/bug-field-night.png'); }
  /* Latest Updates keeps the ink at night; so do the waves either side of it. */
  html .home :is(.mb-pricing, .mb-dark-page) .nectar-shape-divider { fill: #2E241D !important; }
}

/* The launch price row (class mb-pricing; the user, 2026-11-12): one field of bugs over the whole row, sparser
   around the card (Images/bug-field[-night].png, 2880 x 1100 CSS px at 2x, centred on the card; the calendar
   Lottie's Clock Bug with its eyes, at random sizes and angles, never overlapping; generated, not drawn). Separate
   strips per edge were tried first and piled up where they met. It reaches 100px up into the screenshot row's wave
   (below) and is cut at the bottom by this row's wave into Latest Updates. The price sits on a white card (class
   mb-price-card) with the price in its one line (the user: no big number) and a cobalt Download pill. */
/* The top strip is 320px and starts 100px above the row (--mb-wave: the screenshot row's bottom wave, Salient's
   "mountains", 100px; 75% of it below 1000px, 33% below 691px, as Salient sizes it): that part is drawn again in the
   wave (below), cut to the wave's solid layer, so the bugs run up into the wave instead of stopping at a straight
   line. The two must stay aligned: same image, same size, both centred on the full width. */
:root { --mb-wave: 100px; }
@media (max-width: 999px) { :root { --mb-wave: 75px; } }
@media (max-width: 690px) { :root { --mb-wave: 33px; } }
.home .mb-pricing > .row-bg-wrap .row-bg {
  background-image: url('../Images/bug-field.png') !important;
  background-size: 2880px 1100px !important;
  background-position: center calc(-1 * var(--mb-wave)) !important;
  background-repeat: no-repeat !important;
}
.home .mb-glance .nectar-shape-divider-wrap[data-position="bottom"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--mb-wave); pointer-events: none;
  background: url('../Images/bug-field.png') center top / 2880px 1100px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201000%20300%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M%20-12%20201%20s%2070%2083%20194%2057%20s%20160.29%20-36.77%20274%206%20c%20109%2041%20184.82%2024.36%20265%20-15%20c%2055%20-27%20116.5%20-57.69%20214%204%20c%2049%2031%2095%2026%2095%2026%20l%20-6%20151%20l%20-1036%2010%20z%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201000%20300%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M%20-12%20201%20s%2070%2083%20194%2057%20s%20160.29%20-36.77%20274%206%20c%20109%2041%20184.82%2024.36%20265%20-15%20c%2055%20-27%20116.5%20-57.69%20214%204%20c%2049%2031%2095%2026%2095%2026%20l%20-6%20151%20l%20-1036%2010%20z%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* Latest Updates (class mb-news; the user, 2026-11-12: "color 2", the bug's ink #2E241D, day and night): set in the
   page builder with the waves either side (the price row's bottom, the last row's top curve). White titles, a warm
   grey for the rest, the gold link. */
.home .mb-news :is(h1, h2, h3, h4, h5, .title, .title a, .post-header a, .blog-recent h3 a) { color: #FFFFFF !important; }
.home .mb-news :is(p, .excerpt, .meta-category, .meta-category a, .date, .post-meta, .post-meta *, .blog-recent span) { color: #CDBFB3 !important; }
.home .mb-news .nectar-cta :is(a, .link_text) { color: #FFD04C !important; }
.home .mb-news .nectar-cta :is(.arrow, .link_wrap) { border-color: #FFD04C !important; color: #FFD04C !important; }
.home .mb-pricing { padding-top: 260px !important; padding-bottom: 330px !important; }
.home .mb-price-card .column-bg-overlay-wrap, .home .mb-price-card .divider-wrap { display: none !important; }
.home .mb-price-card > .vc_column-inner { max-width: 680px; margin: 0 auto; border-radius: 28px; padding: 48px 48px 52px !important; background: #FFFFFF; box-shadow: 0 24px 60px rgba(46, 36, 29, .14); }
/* Layout B (the user's pick of three, 2026-11-12): "Celebrating MoneyBug v1.0" as the card's heading in the hero
   title's font, the price line under it, the pill; WordPress's bottom margins on text blocks removed, which had left
   the card bottom-heavy. */
.home .mb-price-card :is(.wpb_text_column, .wpb_text_column p, .nectar-gradient-text) { margin-bottom: 0 !important; }
.home .mb-price-card :is(.nectar-gradient-text, .nectar-gradient-text *) { font: 600 30px/1.2 "Noto Sans", sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; background: none !important; -webkit-text-fill-color: #2E241D !important; color: #2E241D !important; }
.home .mb-price-card .mb-price-note { font: 400 19px/1.45 "Noto Sans", sans-serif; color: #4F5E59; margin: 10px 0 0 !important; padding: 0; }
/* Its call to action: a cobalt pill, not a second App Store badge (the hero and the Try row have those; the user). */
.home .mb-price-card .mb-price-cta { margin: 26px 0 0 !important; padding: 0; }
.home .mb-price-card .mb-price-cta a { display: inline-block; padding: 14px 30px; border-radius: 999px; background: #3A62D6; color: #FFFFFF !important; font: 600 17px/1.2 "Noto Sans", sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(58, 98, 214, .28); transition: background-color .2s ease, transform .2s ease; }
.home .mb-price-card .mb-price-cta a:hover { background: #2A4CB8; transform: translateY(-1px); }
@media (max-width: 690px) {
  .home .mb-pricing { padding-top: 150px !important; padding-bottom: 210px !important; }
  .home .mb-pricing > .row-bg-wrap .row-bg { background-size: 1920px 733px !important; }
  .home .mb-glance .nectar-shape-divider-wrap[data-position="bottom"]::after { background-size: 1920px 733px; }
  .home .mb-price-card > .vc_column-inner { margin: 0 24px; padding: 40px 24px !important; }
  .home .mb-price-card :is(.nectar-gradient-text, .nectar-gradient-text *) { font-size: 24px !important; }
  .home .mb-price-card .mb-price-note { font-size: 16px; }
}

/* Everything at a Glance below 1000px, where the toggle and screenshots are hidden (the user, 2026-11-12): more room
   above and below the text, and the waves never take clicks. The row's bottom wave is drawn in front of its content
   (Salient's data-front="true", z-index 50), and on short phone and tablet layouts it lay over the App Store badge,
   which then couldn't be tapped. */
.home .nectar-shape-divider-wrap { pointer-events: none; }
@media (max-width: 999px) {
  .home .mb-glance { padding-top: 140px !important; padding-bottom: 160px !important; }
}
@media (max-width: 690px) {
  .home .mb-glance { padding-top: 110px !important; padding-bottom: 130px !important; }
}
/* Below 1000px the light wallpaper layer (the page's own CSS, desktop only) is off, which left the row graphite by day:
   the cobalt bubbles go on the row itself, by day only. */
@media (max-width: 999px) and (not (prefers-color-scheme: dark)) {
  .home .mb-glance > .row-bg-wrap .row-bg { background-image: url('/wp-content/uploads/2026/11/glance-bubbles-light.jpg') !important; background-color: #3A62D6 !important; }
}
.home .mb-price-card .mb-price-cta a { white-space: nowrap; }
