/* umbrette: demo and contrast tweaks for the modern landing (family/modern.css does the rest). */
:root { --accent-text: #5b4bc4; --solid: #5b4bc4; --on-solid: #ffffff; --ok: #1f9d55; --ok-text: #14733d; --bad: #e0453a; --bad-text: #b3261e; --warn-text: #a85a00; --demo-shadow: 0 30px 70px rgba(0,0,0,.18); }
@media (prefers-color-scheme: dark) { :root { --accent-text: #b3a4f5; --solid: #b3a4f5; --on-solid: #1e1a30; --ok: #4ade80; --ok-text: #6ee7a0; --bad: #ff6b60; --bad-text: #ff8d84; --warn-text: #ffb454; --demo-shadow: 0 30px 70px rgba(0,0,0,.5); } }
.hero-pill, .comp-table th.highlight-col, .comp-table td.highlight-col, body:has(.shot) .card ul > li > strong:first-child, .card ul.feature-list > li > strong:first-child { color: var(--accent-text) !important; }
.card a { color: var(--accent-text); }
.demo-wrapper { position: relative; max-width: 900px; margin: -120px auto 40px; }
.demo-wrapper ~ .shot { margin-top: 0; }
.demo-note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: none; text-align: center; }
.um-desktop + .demo-note { margin-top: 14px; }
@media (max-width: 640px) { .demo-wrapper { margin-top: -88px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Umbrette demo: a small desktop with three windows; the ones that are not in focus take the shade. */
.um-desktop { --dim: .65; position: relative; height: 430px; padding: 16px; overflow: hidden; border-radius: 22px;
  background: linear-gradient(135deg, #1c1427 0%, #0d0a14 100%); border: 1.5px solid color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--demo-shadow); }
.um-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 16px; border-radius: 12px; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; font-weight: 600; }
.um-slider { display: flex; align-items: center; gap: 10px; }
.um-slider input { width: 150px; accent-color: #b3a4f5; }
.um-slider output { min-width: 3ch; font-variant-numeric: tabular-nums; }
.um-win { position: absolute; padding: 14px 16px; border-radius: 12px; color: #fff; cursor: pointer; user-select: none; text-align: left;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 40px rgba(0,0,0,.4);
  opacity: max(.1, calc(1 - var(--dim))); filter: blur(calc(var(--dim) * 3px));
  transition: opacity .35s cubic-bezier(.16,1,.3,1), filter .35s, transform .25s, border-color .25s; }
.um-win strong { display: block; font-size: 14px; letter-spacing: -.2px; margin-bottom: 4px; }
.um-win p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.78); max-width: none; }
.um-win.active { z-index: 5; opacity: 1; filter: none; transform: scale(1.02); border: 2px solid #b3a4f5; box-shadow: 0 22px 55px rgba(0,0,0,.5), 0 0 22px rgba(179,164,245,.35); }
.um-win:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.um-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.um-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f56; }
.um-dots i:nth-child(2) { background: #ffbd2e; } .um-dots i:nth-child(3) { background: #27c93f; }
.um-w1 { width: 340px; height: 200px; top: 84px; left: 28px; background: #2a2038; }
.um-w2 { width: 410px; height: 215px; top: 130px; left: 230px; background: #241c32; }
.um-w3 { width: 350px; height: 190px; top: 160px; right: 28px; background: #2f2040; }
@media (max-width: 760px) {
  .um-desktop { height: auto; display: flex; flex-direction: column; gap: 12px; }
  .um-win { position: static; width: auto; height: auto; }
  .um-slider input { width: 120px; }
}
