/* The picture on the Desktop app card of the pricing page: one native app, "Projects", on a Mac (macOS Sequoia)
   and on Windows (Windows 11). The markup is scripts/pricing-visuals-desktop.mjs; the frame it sits in (.pps,
   the 26 by 19 em .pps__box, the drifting .pps__layer) is in pricing.css, and this file is linked right after it.

   - Mac: a soft wallpaper, the menu bar across the top (the apple, the app and its menus; the battery, Wi-Fi,
     Spotlight, Control Centre and the date and time), the app's window (sidebar, toolbar, the list of projects, the
     selected project's tasks and due date) and the Dock with its apps.
   - Windows: the bloom wallpaper, the app's window (Mica title bar, navigation pane, the page with its button,
     search box and project cards) and the taskbar with the tray and the two-line clock.

   Switching: both systems are drawn; --off is 1 for the one whose platform radio is not checked (the Mac radio
   is checked in the markup, so CSS alone shows the Mac without scripts). Switching plays a short morph: the Mac
   window sinks into its Dock and the menu bar slides up; the Windows window rises from its taskbar; the bloom
   fades over the Mac wallpaper. Windows are wiped by clip-path and moved by transform, never faded, so their
   text keeps its contrast at every step; the system that is off ends up visibility: hidden (after its morph),
   so nothing of it is read or scanned. The one coming in waits a beat (its delay is read from the new --off).

   Text is real, in the page's language ({{pricing.visual.desk.*}}, filled by the build). Every text sits on a
   solid colour of its own (the menu bar, the window surfaces, the taskbar), so it reaches 4.5:1 in both themes;
   single-line labels truncate with an ellipsis in long languages. The platform switch floats over the top
   middle of the picture just under the menu bar; the windows start below it. */

/* ---------------------------------------------------------------- tokens */

.pps--desktop {
  --ppd-mac-sky:
    radial-gradient(90% 70% at 86% 0%, #f6e3f1 0%, transparent 60%),
    radial-gradient(80% 60% at 8% 18%, #dbe9fb 0%, transparent 65%),
    linear-gradient(175deg, #e7eefb 0%, #bfd2f2 55%, #8fadde 100%);
  --ppd-wave-1: #a9c3ee;
  --ppd-wave-2: #7f9fdc;
  --ppd-wave-3: #5f7fc8;
  --ppd-win-sky:
    radial-gradient(70% 80% at 50% 72%, #cfe3fa 0%, transparent 70%),
    linear-gradient(180deg, #f2f7fd, #dbe8f7);
  --ppd-petal-1: #2a78e4;
  --ppd-petal-2: #0f5fd0;
  --ppd-petal-3: #6aaef5;
  --ppd-menubar: #e9eef8;
  --ppd-menu-ink: #1d1d1f;
  --ppd-glass: rgb(255 255 255 / 0.42);
  --ppd-glass-rim: rgb(255 255 255 / 0.62);
  --ppd-sep: rgb(29 29 31 / 0.2);
  --ppd-run: #3a3f46;
  --ppd-frame-line: rgb(16 24 40 / 0.14);
  --ppd-shadow: 0 0.15em 0.4em rgb(16 24 40 / 0.1), 0 1.4em 2.6em -1em rgb(16 24 40 / 0.4);
  --ppd-side: #eceff3;
  --ppd-pick: #d9dee4;
  --ppd-mac-accent: #0a72e8;
  --ppd-surface: #ffffff;
  --ppd-ink: #1f2329;
  --ppd-ink-2: #5c6670;
  --ppd-line: rgb(31 35 41 / 0.1);
  --ppd-field: #eef1f4;
  --ppd-row-pick: #e4eefa;
  --ppd-track: #e1e6eb;
  --ppd-ok: #2f9a5c;
  --ppd-due-bg: #fdecd9;
  --ppd-due-ink: #8a4b0f;
  --ppd-c1: #2f86d6;
  --ppd-c2: #e8853d;
  --ppd-c3: #2fa66a;
  --ppd-c4: #8b6cd9;
  --ppd-mica: #eef2f6;
  --ppd-nav-pick: #e1e6ec;
  --ppd-card: #f5f7f9;
  --ppd-accent: #005fb8;
  --ppd-on-accent: #ffffff;
  --ppd-taskbar: #eef2f6;
  --ppd-task-on: #ffffff;
  --ppd-task-dot: #8a929b;
  --ppd-search: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .pps--desktop {
    --ppd-mac-sky: radial-gradient(90% 70% at 86% 0%, rgb(120 84 160 / 0.45) 0%, transparent 60%), radial-gradient(80% 60% at 8% 18%, rgb(60 96 170 / 0.5) 0%, transparent 65%), linear-gradient(175deg, #1c2444 0%, #161d38 55%, #10152b 100%);
    --ppd-wave-1: #2c3f7a; --ppd-wave-2: #24356c; --ppd-wave-3: #1c2a5a;
    --ppd-win-sky: radial-gradient(60% 70% at 50% 72%, rgb(30 90 200 / 0.35) 0%, transparent 70%), linear-gradient(180deg, #0a1126, #0d1934);
    --ppd-petal-1: #2a6fd8; --ppd-petal-2: #1a55b8; --ppd-petal-3: #4a90ea;
    --ppd-menubar: #1b2130; --ppd-menu-ink: #f2f5f7;
    --ppd-glass: rgb(48 54 70 / 0.5); --ppd-glass-rim: rgb(255 255 255 / 0.14); --ppd-sep: rgb(242 245 247 / 0.22); --ppd-run: #e6e9ee;
    --ppd-frame-line: rgb(255 255 255 / 0.12);
    --ppd-shadow: 0 0.15em 0.4em rgb(0 0 0 / 0.3), 0 1.4em 2.6em -1em rgb(0 0 0 / 0.75);
    --ppd-side: #262b32; --ppd-pick: #353c45; --ppd-mac-accent: #3d9bff;
    --ppd-surface: #1f2328; --ppd-ink: #eef1f4; --ppd-ink-2: #a9b3bd; --ppd-line: rgb(238 241 244 / 0.1);
    --ppd-field: #2c3239; --ppd-row-pick: #233447; --ppd-track: #363d46; --ppd-ok: #6fd39a;
    --ppd-due-bg: #3b2a18; --ppd-due-ink: #f3b877;
    --ppd-c1: #5aa9f0; --ppd-c2: #f0a062; --ppd-c3: #5cc98e; --ppd-c4: #a990ee;
    --ppd-mica: #1b2026; --ppd-nav-pick: #2a3038; --ppd-card: #2b3138;
    --ppd-accent: #60cdff; --ppd-on-accent: #0b1a24;
    --ppd-taskbar: #1c2229; --ppd-task-on: #2e353e; --ppd-task-dot: #9aa3ad; --ppd-search: #2a3038;
  }
}
:root[data-theme='dark'] .pps--desktop {
  --ppd-mac-sky: radial-gradient(90% 70% at 86% 0%, rgb(120 84 160 / 0.45) 0%, transparent 60%), radial-gradient(80% 60% at 8% 18%, rgb(60 96 170 / 0.5) 0%, transparent 65%), linear-gradient(175deg, #1c2444 0%, #161d38 55%, #10152b 100%);
  --ppd-wave-1: #2c3f7a; --ppd-wave-2: #24356c; --ppd-wave-3: #1c2a5a;
  --ppd-win-sky: radial-gradient(60% 70% at 50% 72%, rgb(30 90 200 / 0.35) 0%, transparent 70%), linear-gradient(180deg, #0a1126, #0d1934);
  --ppd-petal-1: #2a6fd8; --ppd-petal-2: #1a55b8; --ppd-petal-3: #4a90ea;
  --ppd-menubar: #1b2130; --ppd-menu-ink: #f2f5f7;
  --ppd-glass: rgb(48 54 70 / 0.5); --ppd-glass-rim: rgb(255 255 255 / 0.14); --ppd-sep: rgb(242 245 247 / 0.22); --ppd-run: #e6e9ee;
  --ppd-frame-line: rgb(255 255 255 / 0.12);
  --ppd-shadow: 0 0.15em 0.4em rgb(0 0 0 / 0.3), 0 1.4em 2.6em -1em rgb(0 0 0 / 0.75);
  --ppd-side: #262b32; --ppd-pick: #353c45; --ppd-mac-accent: #3d9bff;
  --ppd-surface: #1f2328; --ppd-ink: #eef1f4; --ppd-ink-2: #a9b3bd; --ppd-line: rgb(238 241 244 / 0.1);
  --ppd-field: #2c3239; --ppd-row-pick: #233447; --ppd-track: #363d46; --ppd-ok: #6fd39a;
  --ppd-due-bg: #3b2a18; --ppd-due-ink: #f3b877;
  --ppd-c1: #5aa9f0; --ppd-c2: #f0a062; --ppd-c3: #5cc98e; --ppd-c4: #a990ee;
  --ppd-mica: #1b2026; --ppd-nav-pick: #2a3038; --ppd-card: #2b3138;
  --ppd-accent: #60cdff; --ppd-on-accent: #0b1a24;
  --ppd-taskbar: #1c2229; --ppd-task-on: #2e353e; --ppd-task-dot: #9aa3ad; --ppd-search: #2a3038;
}

/* -------------------------------------------------- wallpapers and switch */

.pps--desktop { background: var(--pps-stage); }
.ppd-wall { position: absolute; inset: 0; display: block; overflow: hidden; }
.ppd-wall--mac { background: var(--ppd-mac-sky); }
.ppd-wall--windows {
  background: var(--ppd-win-sky);
  opacity: 0;
  transition: opacity 560ms var(--ease);
}
.pricing-product--desktop:has(#pricing-platform-windows:checked) .ppd-wall--windows { opacity: 1; }
.ppd-wall__art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ppd-wave { fill-opacity: 0.55; }
.ppd-wave--1 { fill: var(--ppd-wave-1); }
.ppd-wave--2 { fill: var(--ppd-wave-2); }
.ppd-wave--3 { fill: var(--ppd-wave-3); }
.ppd-petal { fill-opacity: 0.5; }
.ppd-petal--1 { fill: var(--ppd-petal-1); }
.ppd-petal--2 { fill: var(--ppd-petal-2); }
.ppd-petal--3 { fill: var(--ppd-petal-3); }

/* The two systems. The one going off turns hidden once its morph has played (700ms); the one coming on is
   visible at once. */
.ppd-os { position: absolute; inset: 0; --off: 0; transition: visibility 0s linear 0s; }
.ppd-os--windows { --off: 1; visibility: hidden; transition-delay: 700ms; }
.pricing-product--desktop:has(#pricing-platform-windows:checked) .ppd-os--mac { --off: 1; visibility: hidden; transition-delay: 700ms; }
.pricing-product--desktop:has(#pricing-platform-windows:checked) .ppd-os--windows { --off: 0; visibility: visible; transition-delay: 0s; }
/* The morph of each part: by transform, and the windows by a clip-path wipe (inset -3em when on, so their
   shadow is not cut; the top edge moves to 100% when off). */
.ppd-menubar, .ppd-mac__frame, .ppd-dock__bar, .ppd-win__frame, .ppd-taskbar {
  transition:
    transform 640ms var(--ease) calc((1 - var(--off)) * 140ms),
    clip-path 520ms var(--ease) calc((1 - var(--off)) * 140ms);
}

/* Shared drawing: line icons, a project's colour, a progress bar, a team, the app's icon. */
.ppd-ico { display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ppd-tone-1 { --ppd-tone: var(--ppd-c1); }
.ppd-tone-2 { --ppd-tone: var(--ppd-c2); }
.ppd-tone-3 { --ppd-tone: var(--ppd-c3); }
.ppd-tone-4 { --ppd-tone: var(--ppd-c4); }
.ppd-dot { flex: none; display: block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--ppd-tone); }
.ppd-bar { position: relative; flex: none; display: block; width: 3.4em; height: 0.22em; overflow: hidden; border-radius: 999px; background: var(--ppd-track); }
.ppd-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit; background: var(--ppd-tone); transform-origin: 0 50%; }
.ppd-bar--accent i { background: var(--ppd-accent); }
.ppd-team { flex: none; display: flex; width: 1.6em; }
.ppd-team i {
  --ppd-face: #f0a37a;
  flex: none; width: 0.68em; height: 0.68em; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgb(255 255 255 / 0.9) 0 0.13em, transparent 0.14em),
    radial-gradient(circle at 50% 112%, rgb(255 255 255 / 0.9) 0 0.27em, transparent 0.28em),
    var(--ppd-face);
  box-shadow: 0 0 0 0.07em var(--ppd-ring, var(--ppd-surface));
}
.ppd-team i + i { margin-left: -0.24em; }
.ppd-team i:nth-child(2) { --ppd-face: #6fb3d9; }
.ppd-team i:nth-child(3) { --ppd-face: #9b8be0; }
.ppd-appicon { display: block; background: linear-gradient(160deg, #7fbfdd, #3b7d9a 55%, #245d76); }
.ppd-appicon__glyph { display: block; width: 100%; height: 100%; fill: #ffffff; }

/* ------------------------------------------------------------------- Mac */

/* The menu bar: the menus at the left wrap onto a hidden second line when they run out of room (long
   languages), so the apple, the app's name and the right side always show. */
.ppd-menubar {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 0.7em; height: 1.35em; padding: 0 0.6em;
  background: var(--ppd-menubar); color: var(--ppd-menu-ink);
  box-shadow: inset 0 -1px 0 var(--ppd-line);
  transform: translateY(calc(var(--off) * -110%));
}
.ppd-menubar__menus {
  flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 0.72em;
}
.ppd-menubar__apple { flex: none; display: block; width: 0.6em; height: 0.69em; margin-block: 0.33em; fill: currentColor; }
.ppd-menubar__app, .ppd-menubar__menu, .ppd-menubar__clock {
  font-size: 0.62em; font-weight: 500; line-height: 2.18; letter-spacing: -0.005em; white-space: nowrap;
}
.ppd-menubar__app { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ppd-menubar__menu { flex: none; }
.ppd-menubar__status { flex: none; display: flex; align-items: center; gap: 0.5em; }
.ppd-menubar__icon { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ppd-menubar__icon--control { width: 0.66em; height: 0.57em; stroke-width: 1.2; }
.ppd-menubar__icon--wifi { width: 0.76em; height: 0.57em; stroke-width: 1.6; }
.ppd-menubar__icon--battery { width: 1em; height: 0.5em; stroke-width: 1.1; }
.ppd-menubar__icon--spotlight { width: 0.56em; height: 0.56em; stroke-width: 1.6; }

/* The window: traffic lights over a sidebar (the selection is its own element), a unified toolbar, the list
   of projects (the first one selected) and the selected project's tasks and due date at the foot. */
.ppd-mac { left: 0.6em; top: 5.2em; width: 24.8em; height: 11.1em; }
.ppd-mac__frame {
  display: flex; width: 100%; height: 100%; overflow: hidden; border-radius: 0.75em;
  box-shadow: 0 0 0 1px var(--ppd-frame-line), var(--ppd-shadow);
  transform-origin: 50% 150%;
  transform: translateY(calc(var(--off) * 3.4em)) scale(calc(1 - var(--off) * 0.55), calc(1 - var(--off) * 0.85));
  clip-path: inset(calc(var(--off) * (100% + 3em) - 3em) -3em -3em);
}
.ppd-mac__side {
  flex: none; width: 6.3em; display: flex; flex-direction: column; gap: 0.85em; padding: 0.62em 0.45em;
  background: var(--ppd-side); border-right: 1px solid var(--ppd-line);
}
.ppd-mac__lights { display: flex; gap: 0.3em; padding-left: 0.15em; }
.ppd-mac__lights i { width: 0.5em; height: 0.5em; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.04em rgb(0 0 0 / 0.12); }
.ppd-mac__lights i:nth-child(2) { background: #febc2e; }
.ppd-mac__lights i:nth-child(3) { background: #28c840; }
.ppd-mac__nav { position: relative; display: flex; flex-direction: column; gap: 0.12em; }
.ppd-mac__pick {
  position: absolute; left: 0; right: 0; top: 0; height: 1.2em; border-radius: 0.35em;
  background: var(--ppd-pick);
  transform: translateY(1.32em);
}
.ppd-mac__item { position: relative; display: flex; align-items: center; gap: 0.38em; min-width: 0; height: 1.2em; padding: 0 0.38em; color: var(--ppd-ink); }
.ppd-mac__icon { flex: none; width: 0.62em; height: 0.62em; color: var(--ppd-mac-accent); }
.ppd-mac__label, .ppd-mac__title, .ppd-mac__hint, .ppd-mac__name, .ppd-mac__tasks, .ppd-due__text {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3;
}
.ppd-mac__label { font-size: 0.58em; font-weight: 500; }
.ppd-mac__main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--ppd-surface); }
.ppd-mac__toolbar {
  flex: none; display: flex; align-items: center; gap: 0.45em; height: 2.05em; padding: 0 0.6em 0 0.75em;
  border-bottom: 1px solid var(--ppd-line);
}
.ppd-mac__title { flex: 1 1 auto; font-size: 0.8em; font-weight: 700; letter-spacing: -0.01em; color: var(--ppd-ink); }
.ppd-mac__search {
  flex: 0 1 5.6em; min-width: 2.4em; display: flex; align-items: center; gap: 0.3em; height: 1.1em; padding: 0 0.4em;
  border-radius: 0.35em; background: var(--ppd-field); color: var(--ppd-ink-2);
}
.ppd-mac__find { flex: none; width: 0.55em; height: 0.55em; stroke-width: 1.6; }
.ppd-mac__hint { font-size: 0.55em; }
.ppd-mac__add { flex: none; display: grid; place-items: center; width: 1.1em; height: 1.1em; border-radius: 0.3em; color: var(--ppd-ink-2); }
.ppd-mac__plus { width: 0.62em; height: 0.62em; stroke-width: 1.6; }
.ppd-mac__list { flex: none; display: flex; flex-direction: column; gap: 0.1em; padding: 0.35em 0.45em 0; }
.ppd-mac__row { display: flex; align-items: center; gap: 0.45em; height: 1.55em; padding: 0 0.5em; border-radius: 0.38em; }
.ppd-mac__row--on { --ppd-ring: var(--ppd-row-pick); background: var(--ppd-row-pick); }
.ppd-mac__name { flex: 1 1 auto; font-size: 0.6em; font-weight: 500; color: var(--ppd-ink); }
.ppd-mac__pct { flex: none; width: 2.2em; font-size: 0.55em; font-weight: 500; line-height: 1.3; text-align: right; white-space: nowrap; color: var(--ppd-ink-2); }
.ppd-mac__detail {
  flex: none; display: flex; align-items: center; gap: 0.4em; height: 1.65em; margin-top: auto; padding: 0 0.75em 0 0.95em;
  border-top: 1px solid var(--ppd-line);
}
.ppd-mac__done { flex: none; width: 0.66em; height: 0.66em; color: var(--ppd-ok); stroke-width: 1.4; }
.ppd-mac__tasks { flex: 0 1 auto; font-size: 0.56em; font-weight: 500; color: var(--ppd-ink-2); }
.ppd-due {
  flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.25em; height: 1.05em; margin-left: auto; padding: 0 0.45em;
  border-radius: 999px; background: var(--ppd-due-bg); color: var(--ppd-due-ink);
}
.ppd-due__icon { flex: none; width: 0.5em; height: 0.5em; stroke-width: 1.5; }
.ppd-due__text { font-size: 0.52em; font-weight: 600; }

/* The Dock: glass, centred at the foot; each icon a rounded tile, a dot under the running apps. */
.ppd-dock { left: 0; right: 0; top: 16.75em; width: max-content; margin-inline: auto; }
.ppd-dock__bar {
  display: flex; align-items: center; gap: 0.2em; padding: 0.24em 0.3em 0.32em;
  border-radius: 0.62em; background: var(--ppd-glass);
  box-shadow: inset 0 0 0 1px var(--ppd-glass-rim), 0 0.5em 1.2em -0.5em rgb(16 24 40 / 0.4);
  -webkit-backdrop-filter: blur(0.5em) saturate(1.4);
  backdrop-filter: blur(0.5em) saturate(1.4);
  transform: translateY(calc(var(--off) * 3.8em));
}
.ppd-dock__app { position: relative; flex: none; display: block; }
.ppd-dock__tile {
  position: relative; display: block; width: 1.5em; height: 1.5em; overflow: hidden; border-radius: 0.36em;
  box-shadow: 0 0.06em 0.16em rgb(16 24 40 / 0.22);
}
.ppd-dock__glyph { display: block; width: 100%; height: 100%; }
.ppd-dock__app--finder .ppd-dock__tile { background: #dff0fc; }
.ppd-dock__app--launchpad .ppd-dock__tile { background: linear-gradient(180deg, #f4f5f7, #cfd4da); }
.ppd-dock__app--safari .ppd-dock__tile { background: linear-gradient(180deg, #ffffff, #e4e9ef); }
.ppd-dock__app--messages .ppd-dock__tile { background: linear-gradient(180deg, #6cf57c, #16c037); }
.ppd-dock__app--mail .ppd-dock__tile { background: linear-gradient(180deg, #52b6ff, #1769e6); }
.ppd-dock__app--photos .ppd-dock__tile { background: #ffffff; }
.ppd-dock__app--notes .ppd-dock__tile { background: #ffffff; }
.ppd-dock__app--music .ppd-dock__tile { background: linear-gradient(180deg, #ff6584, #f8233c); }
.ppd-dock__app--settings .ppd-dock__tile { background: linear-gradient(180deg, #dfe2e6, #9da3ab); }
.ppd-dock__app--trash .ppd-dock__tile { overflow: visible; border-radius: 0; box-shadow: none; }
/* Calendar: the red month band, then the day on a plain white (a solid colour, for its contrast). */
.ppd-dock__app--calendar .ppd-dock__tile { display: flex; flex-direction: column; background-color: #ffffff; }
.ppd-dock__month { flex: none; display: block; height: 0.42em; background: #f0443a; }
.ppd-dock__day {
  flex: 1; display: grid; place-items: center;
  font-size: 0.78em; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: #1d1d1f;
}
.ppd-dock__app--running::after {
  content: ''; position: absolute; left: 50%; bottom: -0.24em; width: 0.16em; height: 0.16em; margin-left: -0.08em;
  border-radius: 50%; background: var(--ppd-run);
}
.ppd-dock__sep { flex: none; display: block; width: 1px; height: 1.2em; margin: 0 0.12em; background: var(--ppd-sep); }

/* --------------------------------------------------------------- Windows */

/* The window: a Mica title bar (the app's icon and name, the three controls), the navigation pane (the
   selection with its accent pill is its own element; Settings at the foot) and the page on its own layer. */
.ppd-win { left: 0.6em; top: 5.2em; width: 24.8em; height: 12.4em; }
.ppd-win__frame {
  display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 0.5em;
  background: var(--ppd-mica); box-shadow: 0 0 0 1px var(--ppd-frame-line), var(--ppd-shadow);
  transform-origin: 50% 160%;
  transform: translateY(calc(var(--off) * 2.6em)) scale(calc(1 - var(--off) * 0.14));
  clip-path: inset(calc(var(--off) * (100% + 3em) - 3em) -3em -3em);
}
.ppd-win__titlebar { flex: none; display: flex; align-items: center; gap: 0.45em; height: 1.75em; padding-left: 0.65em; color: var(--ppd-ink); }
.ppd-win__appicon { flex: none; width: 0.78em; height: 0.78em; border-radius: 0.18em; }
.ppd-win__title, .ppd-win__label, .ppd-win__heading, .ppd-win__newlabel, .ppd-win__hint, .ppd-win__name, .ppd-win__due, .ppd-taskbar__hint {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3;
}
.ppd-win__title { flex: 1 1 auto; font-size: 0.55em; font-weight: 500; }
.ppd-win__controls { flex: none; display: flex; height: 100%; }
.ppd-win__control { flex: none; display: block; width: 2.05em; height: 100%; padding: 0.6em 0.74em; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; }
.ppd-win__body { flex: 1; min-height: 0; display: flex; }
.ppd-win__pane { flex: none; width: 6.6em; display: flex; flex-direction: column; padding: 0.1em 0.3em 0.35em; color: var(--ppd-ink); }
.ppd-win__burger { flex: none; width: 0.62em; height: 0.62em; margin: 0.32em 0 0.38em 0.4em; stroke-width: 1.2; }
.ppd-win__nav { position: relative; display: flex; flex-direction: column; gap: 0.1em; }
.ppd-win__pick {
  position: absolute; left: 0; right: 0; top: 0; height: 1.35em; border-radius: 0.3em;
  background: var(--ppd-nav-pick);
  transform: translateY(1.45em);
}
.ppd-win__pick::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 0.16em; height: 0.62em; margin-top: -0.31em;
  border-radius: 999px; background: var(--ppd-accent);
}
.ppd-win__item { position: relative; display: flex; align-items: center; gap: 0.42em; min-width: 0; height: 1.35em; padding: 0 0.4em; }
.ppd-win__item--settings { margin-top: auto; }
.ppd-win__icon { flex: none; width: 0.64em; height: 0.64em; stroke-width: 1.15; }
.ppd-win__label { font-size: 0.56em; font-weight: 500; }
.ppd-win__page {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.42em; overflow: hidden; padding: 0.6em 0.7em 0.4em;
  background: var(--ppd-surface); border: solid var(--ppd-line); border-width: 1px 0 0 1px; border-top-left-radius: 0.55em;
}
.ppd-win__heading { flex: none; font-size: 0.92em; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; color: var(--ppd-ink); }
.ppd-win__commands { flex: none; display: flex; align-items: center; gap: 0.4em; height: 1.3em; }
.ppd-win__new {
  flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.28em; height: 100%; padding: 0 0.55em;
  border-radius: 0.28em; background: var(--ppd-accent); color: var(--ppd-on-accent);
  box-shadow: inset 0 -0.06em 0 rgb(0 0 0 / 0.18);
}
.ppd-win__plus { flex: none; width: 0.52em; height: 0.52em; stroke-width: 1.7; }
.ppd-win__newlabel { font-size: 0.55em; font-weight: 600; }
.ppd-win__search {
  flex: 0 1 6.6em; min-width: 2.6em; display: flex; align-items: center; gap: 0.3em; height: 100%; margin-left: auto; padding: 0 0.45em;
  border-radius: 0.28em; background: var(--ppd-field); box-shadow: inset 0 -0.07em 0 var(--ppd-ink-2); color: var(--ppd-ink-2);
}
.ppd-win__hint { flex: 1 1 auto; font-size: 0.55em; }
.ppd-win__find { flex: none; width: 0.55em; height: 0.55em; stroke-width: 1.6; }
.ppd-win__cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 0.35em; }
.ppd-win__card {
  min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 0.3em; padding: 0.35em 0.5em;
  border-radius: 0.38em; background: var(--ppd-card); box-shadow: inset 0 0 0 1px var(--ppd-line);
}
.ppd-win__cardhead { display: flex; align-items: center; gap: 0.38em; min-width: 0; }
.ppd-win__name { font-size: 0.6em; font-weight: 600; color: var(--ppd-ink); }
.ppd-win__card .ppd-bar { width: 100%; height: 0.2em; }
.ppd-win__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.4em; min-width: 0; }
.ppd-win__pct { flex: none; font-size: 0.52em; font-weight: 500; line-height: 1.3; white-space: nowrap; color: var(--ppd-ink-2); }
.ppd-win__due { font-size: 0.52em; color: var(--ppd-ink-2); }

/* The taskbar along the foot of the screen: the weather at the left; Start, search and the pinned apps in the
   middle (the open app lit, its indicator long; File Explorer running, a dot); the tray at the right. */
.ppd-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2.15em;
  background: var(--ppd-taskbar); box-shadow: inset 0 1px 0 var(--ppd-line); color: var(--ppd-ink);
  transform: translateY(calc(var(--off) * 105%));
}
.ppd-taskbar__weather { position: absolute; left: 0.6em; top: 0; bottom: 0; display: flex; align-items: center; gap: 0.3em; }
.ppd-taskbar__sun { flex: none; display: block; width: 0.82em; height: 0.82em; }
.ppd-taskbar__temp, .ppd-taskbar__clock { font-size: 0.5em; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.ppd-taskbar__apps { position: absolute; left: 50%; top: 0; bottom: 0; translate: -50% 0; display: flex; align-items: center; gap: 0.12em; }
.ppd-task { position: relative; flex: none; display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 0.25em; }
.ppd-task__glyph { display: block; width: 0.78em; height: 0.78em; }
.ppd-task__fill { fill: var(--ppd-ink); }
.ppd-task__line { fill: var(--ppd-taskbar); stroke: var(--ppd-ink); stroke-width: 1.3; }
.ppd-task--projects { background: var(--ppd-task-on); box-shadow: inset 0 0 0 1px var(--ppd-line); }
.ppd-task__projects { width: 0.8em; height: 0.8em; border-radius: 0.18em; }
.ppd-task--projects::after, .ppd-task--explorer::after {
  content: ''; position: absolute; left: 50%; bottom: 0.04em; width: 0.2em; height: 0.12em; margin-left: -0.1em;
  border-radius: 999px; background: var(--ppd-task-dot);
}
.ppd-task--projects::after { width: 0.5em; margin-left: -0.25em; background: var(--ppd-accent); }
.ppd-taskbar__search {
  flex: none; display: flex; align-items: center; gap: 0.25em; width: 4.2em; height: 1.22em; margin: 0 0.12em; padding: 0 0.45em;
  border-radius: 999px; background: var(--ppd-search); box-shadow: inset 0 0 0 1px var(--ppd-line); color: var(--ppd-ink-2);
}
.ppd-taskbar__find { flex: none; width: 0.5em; height: 0.5em; stroke-width: 1.7; }
.ppd-taskbar__hint { font-size: 0.5em; }
/* A narrow picture (28em wide): a shorter search box, so the middle group never meets the tray. */
@container (max-width: 400px) {
  .ppd-taskbar__search { width: 3.3em; }
}
.ppd-taskbar__tray { position: absolute; right: 0.35em; top: 0; bottom: 0; display: flex; align-items: center; gap: 0.28em; }
.ppd-taskbar__quick { display: flex; align-items: center; gap: 0.2em; }
.ppd-tray { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ppd-tray--up { width: 0.4em; height: 0.4em; stroke-width: 1.4; }
.ppd-tray--wifi { width: 0.66em; height: 0.5em; stroke-width: 1.5; }
.ppd-tray--sound { width: 0.6em; height: 0.6em; stroke-width: 1.2; }
.ppd-tray--battery { width: 0.8em; height: 0.4em; stroke-width: 1.1; }
.ppd-tray--bell { width: 0.58em; height: 0.58em; stroke-width: 1.2; }
.ppd-taskbar__clock { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.47em; }

/* ------------------------------------------------------------------ life */
/* Only while the grid is in view and motion is allowed (pricing.js sets .is-live); without it the picture is
   the finished still. Each loop rests on that picture most of its time. Only transforms move, never the
   opacity of anything with text. The window floats; the selection steps down its sidebar or pane and back
   (on Windows its accent pill stretches on the way); the first project's bar fills up again; on the Mac the
   app bounces in the Dock, on Windows its taskbar indicator stretches. */
.pricing-grid--products.is-live .ppd-mac,
.pricing-grid--products.is-live .ppd-win { animation: ppd-float 8.4s ease-in-out -3s infinite; }
@keyframes ppd-float { 0%, 100% { transform: none; } 50% { transform: translateY(-0.4em); } }
.pricing-grid--products.is-live .ppd-mac__pick { animation: ppd-mac-pick 9s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes ppd-mac-pick {
  0%, 56% { transform: translateY(1.32em); }
  62%, 80% { transform: translateY(2.64em); }
  86%, 100% { transform: translateY(1.32em); }
}
.pricing-grid--products.is-live .ppd-win__pick { animation: ppd-win-pick 9s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes ppd-win-pick {
  0%, 56% { transform: translateY(1.45em); }
  62%, 80% { transform: translateY(2.9em); }
  86%, 100% { transform: translateY(1.45em); }
}
.pricing-grid--products.is-live .ppd-win__pick::before { animation: ppd-win-pill 9s ease-in-out infinite; }
@keyframes ppd-win-pill {
  0%, 56%, 62%, 80%, 86%, 100% { transform: none; }
  59%, 83% { transform: scaleY(1.9); }
}
.pricing-grid--products.is-live .ppd-bar--grow i { animation: ppd-grow 9s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes ppd-grow {
  0%, 20% { transform: none; }
  22% { transform: scaleX(0.86); }
  40%, 100% { transform: none; }
}
.pricing-grid--products.is-live .ppd-dock__app--projects .ppd-dock__tile { animation: ppd-bounce 9s ease-out infinite; }
@keyframes ppd-bounce {
  0%, 30%, 100% { transform: none; }
  33% { transform: translateY(-0.7em); }
  36% { transform: none; }
  38.5% { transform: translateY(-0.3em); }
  41% { transform: none; }
}
.pricing-grid--products.is-live .ppd-task--projects::after { animation: ppd-stretch 3.2s ease-in-out infinite; }
@keyframes ppd-stretch { 0%, 100% { transform: none; } 50% { transform: scaleX(1.5); } }

/* -------------------------------------------------------- forced colours */
/* The pictures are drawn as authored (pricing.css); the wallpaper art, the Dock's blur and the windows'
   shadows are left out, so only the systems' shapes remain. */
@media (forced-colors: active) {
  .ppd-wall__art { display: none; }
  .ppd-dock__bar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ppd-mac__frame, .ppd-win__frame { box-shadow: 0 0 0 1px var(--ppd-frame-line); }
}
