/* Career Fixx — home page: one brand palette and one background rhythm.
   Loaded after the section stylesheets, so it has the last word on colour. */

:root {
    --cf-violet: #9b3cf6;
    --cf-plum: #7c3aed;
    --cf-pink: #a855f7;
    --cf-orange: #5b21b6;
    --cf-violet-deep: #5b21b6;
    --cf-night: #1e0a4a;
    --cf-tint: #f7f5fc;
    --cf-surface: #ffffff;
}
html[data-theme="dark"] {
    --cf-tint: #151029;
    --cf-surface: #0e0b1a;
}

/* ── Background rhythm: plain → tinted with dots → plain … ──────────── */
html body section.cfx-sl-why,
html body section.cfx-sl-choose,
html body section.cfx-sl-founders,
html body .cfx-sl-media,
html body .cfx-sl-train,
html body .cfx-sl-skills {
    background: var(--cf-surface);
}
html body section.cfx-sl-plans,
html body section.cfx-mgr,
html body section.cfx-sl-team,
html body .cfx-sl-reviews,
html body .cfx-sl-faq {
    background:
        radial-gradient(rgba(155, 60, 246, .13) 1px, transparent 1.6px) 0 0 / 24px 24px,
        var(--cf-tint);
}
/* the extra rings and glows each section had on its own */
html body .cfx-sl-media::before,
html body .cfx-sl-media::after,
html body .cfx-mgr-bg { display: none; }
html body .cfx-sl-media { border: 0; }

/* ── Course packages: shades of the brand only ──────────────────────── */
html body .cfx-sl-plan { --a: var(--cf-violet-deep); --b: var(--cf-violet); }
html body .cfx-sl-plan[style*="--tone: 1"] { --a: #6d28d9; --b: var(--cf-plum); }
html body .cfx-sl-plan[style*="--tone: 2"] { --a: #6d28d9; --b: #7c3aed; }
html body .cfx-sl-plan[style*="--tone: 3"] { --a: var(--cf-violet); --b: var(--cf-orange); }
html body .cfx-sl-plan[style*="--tone: 4"] { --a: #6d28d9; --b: var(--cf-pink); }
html body .cfx-sl-plan[style*="--tone: 5"] { --a: #4c1d95; --b: var(--cf-orange); }

/* ── Why Career Fixx tiles ──────────────────────────────────────────── */
html body .cfx-sl-tile.is-hero { background: linear-gradient(145deg, var(--cf-night) 0%, var(--cf-violet-deep) 55%, var(--cf-plum) 100%); }
html body .cfx-sl-tile.is-wide { background: linear-gradient(135deg, var(--cf-night), var(--cf-violet-deep)); }
html body .cfx-sl-tile.is-courses { background: linear-gradient(145deg, var(--cf-violet), var(--cf-plum)); }
html body .cfx-sl-tile.is-warm { background: linear-gradient(145deg, var(--cf-pink), var(--cf-orange)); }

/* ── Why Choose Us cards ────────────────────────────────────────────── */
html body .cfx-sl-reason { --a: var(--cf-violet); }
html body .cfx-sl-reason[style*="--tone: 1"] { --a: var(--cf-plum); }
html body .cfx-sl-reason[style*="--tone: 2"] { --a: #7c3aed; }
html body .cfx-sl-reason[style*="--tone: 3"] { --a: #4c1d95; }

/* ── Media cards: window dots in brand colours ──────────────────────── */
html body .cfx-sl-cine-bar > i { background: var(--cf-violet); }
html body .cfx-sl-cine-bar > i:nth-child(2) { background: var(--cf-pink); }
html body .cfx-sl-cine-bar > i:nth-child(3) { background: var(--cf-orange); }

/* ── Same violet theme as the user dashboard, header and footer included ── */
:root {
    --color-primary: #7c3aed;
    --color-secondary: #5b21b6;
}
html body .cfx-hdr {
    --hdr-ink: #16122b;
    --hdr-accent: #7c3aed;
    --hdr-hover: rgba(124, 58, 237, .08);
    --hdr-grad: linear-gradient(135deg, #9b3cf6 0%, #6d28d9 100%);
}
html body .cfx-foot {
    --f-grad: linear-gradient(100deg, #c4b5fd 0%, #a855f7 50%, #8b5cf6 100%);
    --f-btn: linear-gradient(135deg, #9b3cf6 0%, #6d28d9 100%);
}
html body .cfx-foot .cfx-foot-bg {
    background:
        radial-gradient(560px 320px at 6% 0%, rgba(155, 60, 246, .32), transparent 60%),
        radial-gradient(520px 320px at 100% 100%, rgba(91, 33, 182, .34), transparent 60%),
        radial-gradient(440px 260px at 60% 45%, rgba(168, 85, 247, .12), transparent 60%);
}
html body .cfx-theme button[aria-pressed="true"] { background: linear-gradient(135deg, #9b3cf6, #6d28d9); }
html body .cfx-dd-ico { color: #7c3aed; background: rgba(124, 58, 237, .12); }
html body .cfx-dd-item:hover .cfx-dd-ico { background: var(--hdr-grad); color: #fff; }
html body .cfx-foot .cfx-foot-cta { background: linear-gradient(120deg, rgba(155, 60, 246, .42) 0%, rgba(124, 58, 237, .3) 55%, rgba(91, 33, 182, .34) 100%); }

/* ── Course packages keep the colours they had before the violet theme ── */
html body section.cfx-sl-plans {
    background:
        radial-gradient(rgba(123, 47, 247, .13) 1px, transparent 1.6px) 0 0 / 24px 24px,
        #f8f5ff;
}
html[data-theme="dark"] body section.cfx-sl-plans {
    background:
        radial-gradient(rgba(123, 47, 247, .13) 1px, transparent 1.6px) 0 0 / 24px 24px,
        #151029;
}
html body section.cfx-sl-plans .cfx-sl-plan { --a: #5b21b6; --b: #7b2ff7; }
html body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 1"] { --a: #6d28d9; --b: #9c389c; }
html body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 2"] { --a: #86198f; --b: #c2388f; }
html body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 3"] { --a: #7b2ff7; --b: #f26f38; }
html body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 4"] { --a: #b0276f; --b: #e45bb0; }
html body section.cfx-sl-plans .cfx-sl-plan[style*="--tone: 5"] { --a: #c2410c; --b: #f26f38; }
html body section.cfx-sl-plans .cfx-sl-plan.is-featured { background: linear-gradient(var(--sl-card), var(--sl-card)) padding-box, linear-gradient(110deg, #7b2ff7, #ff8a4c, #e45bb0, #7b2ff7) border-box; background-size: 100% 100%, 300% 100%; }
