/* Public site themes: dark (default), light and pink. Same choice as the dashboard (saved as sp_theme). */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4fb; --bg2: #ffffff; --ink: #17152e; --muted: #5f5b7d; --line: rgba(60, 50, 160, .14);
  --violet: #6a58f5; --cyan: #0b9e82; --pink: #e0429f; --grad: linear-gradient(100deg, #7c6bff, #2fd3b0);
  --card: #ffffff; --field: #ffffff; --glow1: rgba(124, 107, 255, .14); --glow2: rgba(47, 211, 176, .1); --shadow: rgba(80, 60, 200, .3); --btn-ink: #0b0a1a;
}
[data-theme="pink"] {
  color-scheme: light;
  --bg: #fff4f9; --bg2: #ffffff; --ink: #2e1028; --muted: #87577a; --line: rgba(214, 51, 132, .18);
  --violet: #d63384; --cyan: #b5179e; --pink: #ff5fa2; --grad: linear-gradient(100deg, #ff6fb1, #b56cff);
  --card: #ffffff; --field: #ffffff; --glow1: rgba(255, 111, 177, .18); --glow2: rgba(181, 108, 255, .12); --shadow: rgba(214, 51, 132, .3); --btn-ink: #ffffff;
}
:is([data-theme="light"], [data-theme="pink"]) body {
  background: radial-gradient(1200px 700px at 78% -10%, var(--glow1), transparent 60%), radial-gradient(900px 600px at -10% 30%, var(--glow2), transparent 60%), var(--bg);
}
:is([data-theme="light"], [data-theme="pink"]) :is(.card, .feature, .steps li, .faq details, .tier, .chips span, .btn-ghost, .audit-box, .tool-card, .t-kpis div, .t-issue, .t-chain li, .t-notes li, .t-ai, .t-steps li, .t-copy, .tool, .panel) {
  background: var(--card); box-shadow: 0 1px 2px rgba(30, 20, 80, .04), 0 12px 30px -24px var(--shadow);
}
:is([data-theme="light"], [data-theme="pink"]) :is(input, select, textarea) { background: var(--field); color: var(--ink); }
:is([data-theme="light"], [data-theme="pink"]) :is(input, textarea)::placeholder { color: #9a96b8; }
:is([data-theme="light"], [data-theme="pink"]) select option { background: #fff; color: var(--ink); }
:is([data-theme="light"], [data-theme="pink"]) .t-bar { background: rgba(40, 30, 120, .09); }
:is([data-theme="light"], [data-theme="pink"]) :is(.btn-primary, .num, .tier .badge, .tp-steps li::before, .t-run, .t-n, .t-bigage) { color: var(--btn-ink); }
:is([data-theme="light"], [data-theme="pink"]) .rank { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
:is([data-theme="light"], [data-theme="pink"]) .tool { --ok: #0b9a7d; --warn: #b86e00; --bad: #d92d55; --note: #6a58f5; }
[data-theme="pink"] .tool { --ok: #13946f; --bad: #d6264f; --note: #a346d6; }
[data-theme="pink"] .logo stop:first-child { stop-color: #ff6fb1; } [data-theme="pink"] .logo stop:last-child { stop-color: #b56cff; }
:is([data-theme="light"], [data-theme="pink"]) ::-webkit-scrollbar-thumb { background: rgba(60, 50, 160, .2); }

/* switcher (injected into the top navigation by theme.js) */
.themes { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: color-mix(in srgb, var(--ink) 5%, transparent); vertical-align: middle; }
.themes button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none; display: grid; place-items: center; cursor: pointer; }
.themes button[aria-pressed="true"] { border-color: var(--violet); }
.themes i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.themes .th-dark i { background: linear-gradient(135deg, #0b0a1a 50%, #8b7bff 50%); }
.themes .th-light i { background: linear-gradient(135deg, #ffffff 50%, #6a58f5 50%); border: 1px solid #ccc; }
.themes .th-pink i { background: linear-gradient(135deg, #ffe3f0 50%, #ff5fa2 50%); }
.nav-cta { align-items: center; }
.nav .brand, .nav-cta a { white-space: nowrap; }
@media (max-width: 640px) {
  /* Small screens: the switcher floats in the corner so the header keeps one line. */
  .nav-cta .themes { position: fixed; right: 14px; bottom: 14px; z-index: 50; background: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); padding: 4px; }
}
