/* Master page backdrop (fx.js): one fixed layer behind the page carries the chapter colour and the requests
   animation of the closing chapter; the sections drop their own flat backgrounds
   so the layer shows through. */
@property --d-text { syntax: '<color>'; inherits: true; initial-value: #F4F2EC; }
@property --d-text2 { syntax: '<color>'; inherits: true; initial-value: #BDB9AE; }
@property --d-muted { syntax: '<color>'; inherits: true; initial-value: #8F8B82; }
@property --d-card { syntax: '<color>'; inherits: true; initial-value: #201F1C; }
@property --d-card2 { syntax: '<color>'; inherits: true; initial-value: #2B2A26; }
@property --d-line { syntax: '<color>'; inherits: true; initial-value: #34322D; }
@property --fx-bg { syntax: '<color>'; inherits: true; initial-value: #141412; }
@property --fx-accent { syntax: '<color>'; inherits: true; initial-value: #FFD21F; }

.fx-layer { position: fixed; z-index: -1; inset: 0; pointer-events: none; background: var(--fx-bg); }
.fx-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease-out; }
html[data-tone="net"] .fx-layer canvas { opacity: 1; }
html.fx-on body { background: transparent; color: var(--d-text); }
html.fx-on :is(.mhero, .how, .price, .why, .trade, .faq) { background: transparent; }

/* ---------- chapters: dark, then one light chapter (pricing + benefits), then dark again ---------- */
html.fx-on { transition: --fx-bg .8s var(--ease), --fx-accent .8s, --d-text .8s, --d-text2 .8s, --d-muted .8s, --d-card .8s, --d-card2 .8s, --d-line .8s; }
html.fx-on[data-tone="paper"] { --fx-bg: #F4F3EF; --fx-accent: #141412; --d-text: #141412; --d-text2: #45423A; --d-muted: #6F6B62; --d-card: #FFFFFF; --d-card2: #ECEAE4; --d-line: #E2DFD6; }
html.fx-on .more { color: var(--fx-accent); }
html.fx-on .step.is-active .step__n { color: var(--ink); }
html.fx-on .dots { color: var(--d-text); }
html.fx-instant { transition: none !important; }

/* white section pages (How it works, Pricing, Benefits): a white ground, and surfaces one tone step below it */
html.fx-on.fx-white[data-tone="paper"] { --fx-bg: #FFFFFF; --d-card: #F4F3EF; --d-card2: #EAE8E2; }
html.fx-white { background: #FFFFFF; color-scheme: light; }
/* on a light ground the offer price is ink: honey text on a pale surface does not read */
html.fx-on[data-tone="paper"] .stepper__val { color: var(--ink); }
/* the bar, its menus and the phone menu stay dark on the light chapter: they keep the dark tones whatever the page does */
html.fx-on :is(.nav, .nav-panel, .dl-pop, .menu-sheet) { --d-text: #F4F2EC; --d-text2: #BDB9AE; --d-muted: #8F8B82; --d-card: #201F1C; --d-card2: #2B2A26; --d-line: #34322D; }
html.fx-white .nav { background: rgba(28, 27, 25, .94); }
/* contact icons on a light ground: ink on a honey tint, as on the client pages */
html.fx-on[data-tone="paper"] .help a .i { background: var(--honey-soft); color: var(--ink); }
html.fx-on[data-tone="paper"] .help a:hover { color: #8a6400; }
/* the "you are here" tile stays ink in every chapter, so its line stays light */
.duo__tile.is-here small { color: #BDB9AE; }
