/* Light ("lite") theme for the -2 pages, plus the light/dark slider.
   Switched by html[data-theme="lite"] (see js/theme.js). The site header and footer
   keep their dark brand colours in both themes. */

/* ---------- the slider (top left of every -2 page) ---------- */
.theme-slider {
  position: fixed; left: 16px; top: 110px; z-index: 30;
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid rgba(111, 191, 228, .35); border-radius: 30px;
  background: rgba(4, 8, 24, .78); backdrop-filter: blur(8px);
  color: #dbe7f3; font-size: 15px; line-height: 1; cursor: pointer; user-select: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.theme-slider-icon { cursor: pointer; }
.theme-slider input { -webkit-appearance: none; appearance: none; width: 46px; height: 20px; margin: 0; border-radius: 20px; background: #24304d; cursor: pointer; outline-offset: 3px; }
.theme-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin: 0 2px; border: 0; border-radius: 50%; background: #6fbfe4; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.theme-slider input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #6fbfe4; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.theme-slider input::-moz-range-track { background: transparent; }
.theme-slider input:focus-visible { outline: 2px solid #6fbfe4; }
@media (min-width: 1540px) { .theme-slider { top: 30px; } }           /* room beside the logo on wide screens */
html[data-theme="lite"] .theme-slider { background: rgba(255, 255, 255, .9); border-color: rgba(20, 60, 120, .25); color: #33465c; box-shadow: 0 8px 24px rgba(30, 60, 110, .18); }
html[data-theme="lite"] .theme-slider input { background: #cfd9e6; }
html[data-theme="lite"] .theme-slider input::-webkit-slider-thumb { background: #1b6fb5; }
html[data-theme="lite"] .theme-slider input::-moz-range-thumb { background: #1b6fb5; }
@media (min-width: 1540px) { html[data-theme="lite"] .theme-slider { background: rgba(4, 8, 24, .78); border-color: rgba(111, 191, 228, .35); color: #dbe7f3; } }   /* it sits on the dark header there */

/* ---------- palette ---------- */
html[data-theme="lite"] body { background: #f3f6fa; }
html[data-theme="lite"] .sw {
  --sw-bg: #f3f6fa;
  --sw-cyan: #1b6fb5;
  --sw-pass: #0f9d4d;
  --sw-fail: #d81b45;
  --sw-line: rgba(22, 60, 120, .16);
  --sw-text: #46566a;
  --ad-amber: #b56a00;
  color: #0e1821;
}

/* ---------- shared pieces (software.css) ---------- */
html[data-theme="lite"] .sw-btn { border-color: rgba(14, 24, 33, .3); background: rgba(255, 255, 255, .7); color: #0e1821; }
html[data-theme="lite"] .sw-btn:hover { background: #fff; border-color: #0e1821; }
html[data-theme="lite"] .sw-btn-primary, html[data-theme="lite"] .sw-btn-primary:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, #2f7bff, #04449c); box-shadow: 0 10px 28px rgba(47, 123, 255, .35); }
html[data-theme="lite"] .sw-btn-ghost { background: none; border-color: transparent; color: var(--sw-cyan); }
html[data-theme="lite"] .sw-btn-ghost:hover { color: #0e1821; }
html[data-theme="lite"] .sw-link:hover { color: #0e1821; }
html[data-theme="lite"] .sw-hero { background: radial-gradient(900px 520px at 78% 30%, rgba(47, 123, 255, .16), transparent 65%), radial-gradient(700px 500px at 8% 0%, rgba(111, 191, 228, .28), transparent 60%), var(--sw-bg); }
html[data-theme="lite"] .sw-hero h1 span, html[data-theme="lite"] .ad-card-hero h1 span { background: linear-gradient(90deg, #1b6fb5, #2f4fd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="lite"] .sw-window { box-shadow: 0 0 0 1px rgba(14, 24, 33, .12), 0 30px 70px rgba(30, 60, 110, .28); }
html[data-theme="lite"] .sw-chip { background: rgba(255, 255, 255, .94); box-shadow: 0 14px 34px rgba(30, 60, 110, .2); }
html[data-theme="lite"] .sw-facts { background: rgba(255, 255, 255, .8); }
html[data-theme="lite"] .sw-flow, html[data-theme="lite"] .ap-caps { background: linear-gradient(#f3f6fa, #e7edf5 50%, #f3f6fa); }
html[data-theme="lite"] .sw-step { color: #0e1821; }
html[data-theme="lite"] .sw-step:hover { background: rgba(14, 24, 33, .04); }
html[data-theme="lite"] .sw-step[aria-selected="true"] { background: rgba(47, 123, 255, .1); }
html[data-theme="lite"] .sw-card, html[data-theme="lite"] .ap-mat, html[data-theme="lite"] .ad-col, html[data-theme="lite"] .h2-product { background: linear-gradient(160deg, rgba(47, 123, 255, .08), #fff 55%); color: #0e1821; }
html[data-theme="lite"] .sw-card:hover, html[data-theme="lite"] .ap-mat:hover, html[data-theme="lite"] .h2-product:hover { border-color: rgba(27, 111, 181, .55); box-shadow: 0 20px 48px rgba(30, 60, 110, .18); }
html[data-theme="lite"] .sw-split { background: radial-gradient(800px 480px at 20% 50%, rgba(47, 123, 255, .1), transparent 70%); }
html[data-theme="lite"] .sw-tags span, html[data-theme="lite"] .ap-uses li, html[data-theme="lite"] .ad-card li { background: rgba(255, 255, 255, .7); color: #24364a; }
html[data-theme="lite"] .sw-final-box { background: radial-gradient(600px 300px at 50% 0%, rgba(47, 123, 255, .2), transparent 70%), #fff; border-color: rgba(27, 111, 181, .3); }

/* ---------- sample applications ---------- */
html[data-theme="lite"] .ap-jump a { background: rgba(255, 255, 255, .85); color: #0e1821; }
html[data-theme="lite"] .ap-jump a:hover { background: #fff; }
html[data-theme="lite"] .ap-ring img { border-color: #fff; }
html[data-theme="lite"] .ap-mat li { background: rgba(216, 27, 69, .08); border-color: rgba(216, 27, 69, .3); color: #a3122f; }
html[data-theme="lite"] .ap-svc { background: #fff; }
html[data-theme="lite"] .ad-col li, html[data-theme="lite"] .ap-mat h3 { color: #1c2a3a; }

/* ---------- 3D scene pages ---------- */
html[data-theme="lite"] .ad-story, html[data-theme="lite"] .ad-modules, html[data-theme="lite"] .h2-products { background: var(--sw-bg); }
html[data-theme="lite"] .ad-stage { background: radial-gradient(900px 500px at 60% 55%, rgba(47, 123, 255, .14), transparent 70%), #dde6f0; }
html[data-theme="lite"] .pl-stage { background: #e4e9f0; }
html[data-theme="lite"] .ad-shade { background: linear-gradient(180deg, rgba(243, 246, 250, .55), transparent 20%, transparent 74%, rgba(243, 246, 250, .92)); }
html[data-theme="lite"] .ad-hud div, html[data-theme="lite"] .ad-callout p { background: rgba(255, 255, 255, .9); border-color: rgba(22, 60, 120, .22); color: #0e1821; }
html[data-theme="lite"] .ad-hud span, html[data-theme="lite"] .ad-note, html[data-theme="lite"] .ad-scroll { color: #5a6b80; }
html[data-theme="lite"] .ad-card { background: rgba(255, 255, 255, .86); box-shadow: 0 24px 60px rgba(30, 60, 110, .22); }
/* the hero copy sits on a frosted panel so it stays readable where the scene runs under it */
html[data-theme="lite"] .ad-card-hero { margin-left: -32px; padding: 28px 32px 30px; border-radius: 16px; background: rgba(243, 246, 250, .8); backdrop-filter: blur(10px); box-shadow: none; }
html[data-theme="lite"] .ad-card-hero h1 { text-shadow: 0 2px 30px rgba(243, 246, 250, .95); }
html[data-theme="lite"] .ad-card-hero .sw-sub { color: #24364a; text-shadow: 0 1px 16px rgba(243, 246, 250, 1); }
html[data-theme="lite"] .ad-callout i { background: #1b6fb5; }
html[data-theme="lite"] .ad-card li.ad-cyan { color: var(--sw-cyan); border-color: var(--sw-cyan); }
html[data-theme="lite"] .ad-card li.ad-amber { color: var(--ad-amber); border-color: var(--ad-amber); }
html[data-theme="lite"] .ad-card li.ad-green { color: var(--sw-pass); border-color: var(--sw-pass); }
html[data-theme="lite"] .ad-card li.ad-red { color: var(--sw-fail); border-color: var(--sw-fail); }
html[data-theme="lite"] .h2-shot { background: radial-gradient(closest-side, rgba(27, 111, 181, .14), transparent); }

/* ================= v2 look: light, clear, with a modern technical feel ================= */

/* a faint engineering grid and two soft colour fields behind every light page */
html[data-theme="lite"] .sw {
  background:
    radial-gradient(900px 520px at 88% -4%, rgba(47, 123, 255, .13), transparent 62%),
    radial-gradient(760px 520px at -6% 22%, rgba(111, 191, 228, .16), transparent 60%),
    linear-gradient(rgba(22, 60, 120, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(22, 60, 120, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    #f4f7fb;
}
html[data-theme="lite"] .sw-hero, html[data-theme="lite"] .pg-hero, html[data-theme="lite"] .store-hero,
html[data-theme="lite"] .sw-flow, html[data-theme="lite"] .ap-caps, html[data-theme="lite"] .sw-split,
html[data-theme="lite"] .ad-modules, html[data-theme="lite"] .h2-products { background: transparent; }
html[data-theme="lite"] .sw-hero::before { opacity: 0; }

/* headings: crisp ink, with a short gradient rule under section titles */
html[data-theme="lite"] .sw h1, html[data-theme="lite"] .sw h2, html[data-theme="lite"] .sw h3 { color: #0b1624; }
html[data-theme="lite"] .sw-section h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 4px; background: linear-gradient(90deg, #2f7bff, #6fbfe4); }
html[data-theme="lite"] .sw-final-box h2::after, html[data-theme="lite"] .ad-card h2::after, html[data-theme="lite"] .pg-info h2::after, html[data-theme="lite"] .pg-form h2::after, html[data-theme="lite"] .cart h2::after { display: none; }
html[data-theme="lite"] .sw-final-box h2::after { display: block; margin-inline: auto; }
html[data-theme="lite"] .sw-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
html[data-theme="lite"] .sw-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f7bff; box-shadow: 0 0 0 4px rgba(47, 123, 255, .18); }
html[data-theme="lite"] .sw-sub, html[data-theme="lite"] .sw p { color: #3b4b5f; }
html[data-theme="lite"] .sw a:not(.sw-btn):not(.sw-link):not(.h2-product):not(.store-shot) { color: #1b6fb5; }

/* cards: white glass with a luminous top edge */
html[data-theme="lite"] .sw-card, html[data-theme="lite"] .ap-mat, html[data-theme="lite"] .ad-col, html[data-theme="lite"] .h2-product,
html[data-theme="lite"] .store-card, html[data-theme="lite"] .pg-feature, html[data-theme="lite"] .pg-trio article, html[data-theme="lite"] .pg-state,
html[data-theme="lite"] .pg-info, html[data-theme="lite"] .pg-form, html[data-theme="lite"] .ap-svc, html[data-theme="lite"] .sched-panel {
  position: relative; background: rgba(255, 255, 255, .86); border: 1px solid rgba(22, 60, 120, .13); color: #0b1624;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 14px 34px rgba(30, 60, 110, .09);
  backdrop-filter: blur(6px);
}
html[data-theme="lite"] .sw-card::before, html[data-theme="lite"] .ap-mat::before, html[data-theme="lite"] .ad-col::before, html[data-theme="lite"] .h2-product::before,
html[data-theme="lite"] .store-card::before, html[data-theme="lite"] .pg-feature::before, html[data-theme="lite"] .pg-trio article::before, html[data-theme="lite"] .pg-state::before,
html[data-theme="lite"] .pg-info::before, html[data-theme="lite"] .pg-form::before, html[data-theme="lite"] .cart::before, html[data-theme="lite"] .sched-panel::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #2f7bff 30%, #6fbfe4 70%, transparent); opacity: .75;
}
html[data-theme="lite"] .sw-card:hover, html[data-theme="lite"] .ap-mat:hover, html[data-theme="lite"] .h2-product:hover, html[data-theme="lite"] .pg-feature:hover, html[data-theme="lite"] .store-card:hover {
  border-color: rgba(47, 123, 255, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 22px 50px rgba(47, 123, 255, .18);
}
html[data-theme="lite"] .sw-facts, html[data-theme="lite"] .ap-jump a, html[data-theme="lite"] .cart { background: rgba(255, 255, 255, .88); border-color: rgba(22, 60, 120, .13); box-shadow: 0 14px 34px rgba(30, 60, 110, .09); }
html[data-theme="lite"] .sw-final-box { background: radial-gradient(620px 300px at 50% 0%, rgba(47, 123, 255, .16), transparent 70%), rgba(255, 255, 255, .92); border-color: rgba(47, 123, 255, .28); box-shadow: 0 24px 60px rgba(47, 123, 255, .14); }
html[data-theme="lite"] .pg-price { background: rgba(255, 255, 255, .8); border-color: rgba(47, 123, 255, .3); color: #0b1624; }
html[data-theme="lite"] .pg-row-media img, html[data-theme="lite"] .pg-video, html[data-theme="lite"] .pg-map { box-shadow: 0 24px 60px rgba(30, 60, 110, .2); }
html[data-theme="lite"] .pg-shot { background: radial-gradient(closest-side, rgba(47, 123, 255, .14), transparent 78%); }
html[data-theme="lite"] .pg-form-msg.error { color: #d81b45; }

/* buttons: a little more presence */
html[data-theme="lite"] .sw-btn-primary { background: linear-gradient(135deg, #3d8bff, #0a4fc4 70%); box-shadow: 0 10px 26px rgba(47, 123, 255, .38), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
html[data-theme="lite"] .sw-btn-primary:hover { background: linear-gradient(135deg, #5a9dff, #0d5ae0 70%); box-shadow: 0 14px 36px rgba(47, 123, 255, .5), 0 0 0 1px rgba(255, 255, 255, .3) inset; }

/* schedule page */
html[data-theme="lite"] .schedule { background: radial-gradient(900px 520px at 88% -4%, rgba(47, 123, 255, .13), transparent 62%), linear-gradient(rgba(22, 60, 120, .045) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(22, 60, 120, .045) 1px, transparent 1px) 0 0 / 56px 56px, #f4f7fb; color: #0b1624; }
html[data-theme="lite"] .sched-lead { color: #3b4b5f; }
html[data-theme="lite"] .sched-note, html[data-theme="lite"] .sched-date span, html[data-theme="lite"] .sched-form label span { color: #5a6b80; }
html[data-theme="lite"] .sched-day { border-top-color: rgba(22, 60, 120, .14); }
html[data-theme="lite"] .sched-slot { color: #0b1624; border-color: #2f7bff; }
html[data-theme="lite"] .sched-slot:hover:not(:disabled) { background: rgba(47, 123, 255, .12); }
html[data-theme="lite"] .sched-slot[aria-pressed="true"] { background: #0a4fc4; color: #fff; border-color: #0a4fc4; }
html[data-theme="lite"] .sched-summary { background: rgba(22, 60, 120, .06); color: #46566a; }
html[data-theme="lite"] .sched-summary.chosen { background: rgba(47, 123, 255, .14); color: #0b1624; }
html[data-theme="lite"] .sched-msg.error { color: #d81b45; }
html[data-theme="lite"] .sched-msg.ok { color: #0f9d4d; }
html[data-theme="lite"] .sched-ics { color: #1b6fb5; }
