/* Light/dark mode text fixes (requested by Kenzo, 2026-11-02).
 *
 * The theme toggle switches <body> between "neo" (light) and "neo-dark" (dark),
 * and the Webflow stylesheet swaps its colour variables accordingly. These rules
 * fix the places where text kept a colour that only works in one of the modes.
 * Colours are the site's own values from the Webflow stylesheet. Loaded after it
 * on every page.
 */

/* Areas that stay dark in light mode (.bg-dark sections, and the qualifier's
 * left panel, painted black by .left-silhoutte-bg) keep the dark-mode accent
 * blue, link and theme-toggle colours. In light mode they turned dark blue/grey
 * on a dark background. */
.body.neo .bg-dark,
.body.neo aside.section-column {
  --_color-scheme---text--text-accent-color: #4b6bff;
  --_color-scheme---text-color-multi-mode--accent: #4b6bff;
  --_color-scheme---general--accent-color: #4b6bff;
  --_color-scheme---general--accent-subtle-color: #43689d;
  --_elements---button-link-text--text-color: #4b6bff;
  --_elements---button-link-text--text-hover-color: #4b6bff;
  --_color-scheme---circle-ghost--outline-color: #23232b;
  --_color-scheme---circle-ghost--font-color: #f2f1ee;
  --_color-scheme---circle-hoverable--ghost-outline-color: #4b6bff;
  --_color-scheme---circle-hoverable--ghost-font-color: #4b6bff;
}

/* Grey "dark subtle" text on dark title bars (the "01 / 01" counter): it was
 * black on black in dark mode. Use the light-mode grey in both modes. */
.bg-dark .text-dark-subtle-color {
  color: #6b6b6b;
}

/* Home page mockup: the plain boxes (Stripe, Clerk, Typeform on the right)
 * turn white in light mode, but their text stayed white. */
.body.neo .misc.ui-element.flow-node:not(.blue):not(.bg-text-color-multi-mode) {
  color: var(--_color-scheme---text-color-multi-mode--main);
}

/* Home page mockup: the inverted "Backend" box is light in dark mode, so its
 * grey caption needs the darker grey there. */
.body.neo-dark .misc.ui-element.flow-node.bg-text-color-multi-mode .text-color-muted {
  color: #6b6b6b;
}

/* Home page mockup: green/orange status chips on their pale light-mode tint
 * use the darker green/orange the stylesheet already uses for card borders. */
.body.neo .misc.chip.ui-element-chip.ok {
  color: #1c965a;
}
.body.neo .misc.chip.ui-element-chip.warn {
  color: #b47220;
}

/* Qualifier: step titles ("About you", ...) were always white, even on the
 * light background of light mode. */
.body.neo .form-page-header .text-color-light {
  color: var(--_color-scheme---text-color-multi-mode--main);
}

/* Qualifier: keep the light label on the blue Continue button in light mode
 * (it turned dark on blue). */
.body.neo .button:not(.ghost) {
  color: #f2f1ee;
}

/* Qualifier: Webflow's error box is light pink in both modes, so its text
 * stays dark (it turned light on light in dark mode). */
.w-form-fail {
  color: #1a1a1a;
}
