/* Slate's site, in Slate's default dark theme (the same colours as the desktop: Config.qml) */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Tabler";
  src: url("fonts/tabler.ttf?v=2") format("truetype");
  font-display: block;
}

:root {
  --bg: #0f1216;          /* the bar, and the page */
  --stripe: #1a1f27;      /* the band behind the desktop example */
  --surface: #151920;     /* Settings' page background */
  --card: #1d222a;        /* capsules and cards */
  --raised: #262c35;      /* hover */
  --line: #2a313c;
  --text: #eef1f5;
  --dim: #8b94a3;
  --accent: #8fb3e8;      /* Slate's default accent */
  --accent-text: #12151a;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }   /* jumps to a section stop below the sticky header */
body {
  margin: 0;
  padding-top: 62px;          /* the fixed header's height (site.js keeps it exact) */
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.ti {
  font-family: "Tabler";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.125em;
}

/* ---- Header ---- */
/* Fixed, not sticky: Firefox could leave a sticky header tucked a little under the top
   after scrolling. The page leaves its height free at the top (body padding). */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - 1080px) / 2));
  background: color-mix(in srgb, var(--bg) 96%, transparent);   /* no backdrop blur: Firefox misplaces sticky blurred headers while scrolling */
  transition: box-shadow .2s;
}
/* Once content scrolls up under it (site.js) */
.top.covering { box-shadow: 0 4px 18px rgba(0, 0, 0, .22); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 34px; width: auto; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--dim); font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--line);
  transition: background .12s;
}
.button:hover { background: var(--raised); text-decoration: none; }
.button.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.button.small { padding: 7px 12px; font-size: 14px; }
nav .button { color: var(--text); }

/* ---- Sections ---- */
main section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 30px; font-weight: 600; margin: 0 0 28px; }
h3 { font-size: 18px; font-weight: 600; margin: 14px 0 6px; }

.hero { text-align: center; padding-top: 88px; padding-bottom: 64px; }
.hero-mark { display: block; height: 132px; width: auto; margin: 0 auto 30px; }
/* A lighter band across the page, holding the desktop example, with room around it */
.stripe { background: var(--stripe); padding: 88px 20px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 650; margin: 0 auto 18px; max-width: 760px; }
.lead { color: var(--dim); font-size: 19px; max-width: 680px; margin: 0 auto 32px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Slate's menu bar, with its real sizes: a 40px bar, 27px capsules (radius 6) 6px apart */
/* A bit of a desktop: a wallpaper with the bar along its top edge, as on the screen (the
   bar runs edge to edge, flaring into the sides with concave corners under it) */
.screen {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  height: 170px;
  border-radius: 16px;
  overflow: hidden;
  /* (its wallpaper is .glass-scene, which changes with the bar's looks: see bar-looks) */
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  text-align: left;
}
.bar-demo {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  height: 40px;
  padding: 0 6.5px;
  font-size: 13px; font-weight: 500;
}
.bar-demo::before, .bar-demo::after {
  content: "";
  position: absolute; top: 40px;
  width: 12px; height: 12px;
}
.bar-demo::before { left: 0; }
.bar-demo::after  { right: 0; }
.bar-demo .cap {
  display: flex; align-items: center; justify-content: center;
  height: 27px;
  border-radius: 6px;
  white-space: nowrap;
  flex: none;
}
.bar-demo .ti { font-size: 16px; vertical-align: 0; }
.bar-demo .btn { width: 35px; }
.bar-demo .burger { display: grid; gap: 3px; }
.bar-demo .burger i { display: block; width: 14px; height: 2.4px; border-radius: 1.2px; }
/* Spaces: four 5.5px squares, 2px apart */
.bar-demo .quad { display: grid; grid-template-columns: 5.5px 5.5px; gap: 2px; }
.bar-demo .quad i { display: block; width: 5.5px; height: 5.5px; border-radius: 1.5px; }
/* A container of several things: each 35 px wide, short lines between them */
.bar-demo .group { padding: 0; }
.bar-demo .group .item { display: grid; place-items: center; width: 35px; height: 27px; }
.bar-demo .group b { width: 1px; height: 13.5px; }
.bar-demo .nova { font-size: 15px; }
.bar-demo .ws .mode { font-size: 17px; }
/* Workspace dots: 14px rounded squares, 5px apart; the active one in the accent */
.bar-demo .ws .dots { display: flex; gap: 5px; padding: 0 9px 0 9px; }
.bar-demo .ws .dots span { width: 14px; height: 14px; border-radius: 3.9px; }
/* The focused window's app, on its tile, then its title, in one container */
.bar-demo .app { gap: 7px; padding: 0 10px 0 4px; }
.bar-demo .tile {
  display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 4.7px;
}
.bar-demo .tile .ti { font-size: 14px; }
.bar-demo .title { white-space: nowrap; }
.bar-demo .spacer { flex: 1; }
.bar-demo .tray { gap: 2px; padding: 0 5px; }
.bar-demo .tray .ti { display: grid; place-items: center; width: 26px; height: 22px; font-size: 18px; }
/* One container; short separators between its sections */
.bar-demo .status span { display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.bar-demo .status b { width: 1px; height: 13.5px; }
.bar-demo .clock { padding: 0 10px; }
.bar-demo .val { font-style: normal; }
.bar-demo .power { color: #f28b8b; }
.bar-demo .power .ti { font-size: 17px; }

/* The menu bar example shifts through seven looks, each easing into the next: flat in the
   default theme; glass over a warm sunset (colours from it); flat in a forest's colours; glass
   over a violet dusk; glass over an ocean; flat in autumn's ambers; glass over a rose sunset. The glass ones copy Slate's own glass bar: about 78% opaque over a blur, frosted
   capsules tinted by the wallpaper, a sheen over each capsule's top half with a bright top edge,
   and translucent separators. */
@property --d-bar { syntax: '<color>'; inherits: true; initial-value: #0f1216; }
@property --d-cap { syntax: '<color>'; inherits: true; initial-value: #1d222a; }
@property --d-sheen { syntax: '<color>'; inherits: true; initial-value: rgba(236,140,140,0); }
@property --d-rim { syntax: '<color>'; inherits: true; initial-value: rgba(236,140,140,0); }
@property --d-sep { syntax: '<color>'; inherits: true; initial-value: #444c58; }
@property --d-accent { syntax: '<color>'; inherits: true; initial-value: #8fb3e8; }
@property --d-occ { syntax: '<color>'; inherits: true; initial-value: #aeb6c2; }
@property --d-empty { syntax: '<color>'; inherits: true; initial-value: #4f5866; }
@property --d-tile { syntax: '<color>'; inherits: true; initial-value: #2a313c; }
@property --d-ink { syntax: '<color>'; inherits: true; initial-value: #eef1f5; }
@property --d-blob-a { syntax: '<color>'; inherits: true; initial-value: rgba(143,179,232,.38); }
@property --d-blob-b { syntax: '<color>'; inherits: true; initial-value: rgba(122,104,170,.30); }
@property --d-blob-c { syntax: '<color>'; inherits: true; initial-value: rgba(143,179,232,0); }
@property --d-blob-d { syntax: '<color>'; inherits: true; initial-value: rgba(143,179,232,0); }
@property --d-base-a { syntax: '<color>'; inherits: true; initial-value: #2a3446; }
@property --d-base-b { syntax: '<color>'; inherits: true; initial-value: #161b24; }
@property --d-blur { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --d-pill { syntax: '<color>'; inherits: true; initial-value: #0f1216; }
@keyframes bar-looks {
  0.00% { --d-bar: #0f1216; --d-cap: #1d222a; --d-sheen: rgba(236,140,140,0); --d-rim: rgba(236,140,140,0); --d-sep: #444c58; --d-accent: #8fb3e8; --d-occ: #aeb6c2; --d-empty: #4f5866; --d-tile: #2a313c; --d-ink: #eef1f5; --d-blob-a: rgba(143,179,232,.38); --d-blob-b: rgba(122,104,170,.30); --d-blob-c: rgba(143,179,232,0); --d-blob-d: rgba(143,179,232,0); --d-base-a: #2a3446; --d-base-b: #161b24; --d-blur: 0; --d-pill: #0f1216; }
  10.71% { --d-bar: #0f1216; --d-cap: #1d222a; --d-sheen: rgba(236,140,140,0); --d-rim: rgba(236,140,140,0); --d-sep: #444c58; --d-accent: #8fb3e8; --d-occ: #aeb6c2; --d-empty: #4f5866; --d-tile: #2a313c; --d-ink: #eef1f5; --d-blob-a: rgba(143,179,232,.38); --d-blob-b: rgba(122,104,170,.30); --d-blob-c: rgba(143,179,232,0); --d-blob-d: rgba(143,179,232,0); --d-base-a: #2a3446; --d-base-b: #161b24; --d-blur: 0; --d-pill: #0f1216; }
  14.29% { --d-bar: rgba(22,13,15,.78); --d-cap: rgba(236,140,140,.11); --d-sheen: rgba(236,140,140,.18); --d-rim: rgba(236,140,140,.28); --d-sep: rgba(214,196,198,.35); --d-accent: #ec8c8c; --d-occ: #c2b0b2; --d-empty: #5f4f52; --d-tile: rgba(236,140,140,.16); --d-ink: #f5ecec; --d-blob-a: rgba(255,140,70,.85); --d-blob-b: rgba(220,50,60,.80); --d-blob-c: rgba(255,200,90,.80); --d-blob-d: rgba(255,90,80,.75); --d-base-a: #5a1a20; --d-base-b: #1e0d10; --d-blur: 18; --d-pill: rgba(22,13,15,.70); }
  25.00% { --d-bar: rgba(22,13,15,.78); --d-cap: rgba(236,140,140,.11); --d-sheen: rgba(236,140,140,.18); --d-rim: rgba(236,140,140,.28); --d-sep: rgba(214,196,198,.35); --d-accent: #ec8c8c; --d-occ: #c2b0b2; --d-empty: #5f4f52; --d-tile: rgba(236,140,140,.16); --d-ink: #f5ecec; --d-blob-a: rgba(255,140,70,.85); --d-blob-b: rgba(220,50,60,.80); --d-blob-c: rgba(255,200,90,.80); --d-blob-d: rgba(255,90,80,.75); --d-base-a: #5a1a20; --d-base-b: #1e0d10; --d-blur: 18; --d-pill: rgba(22,13,15,.70); }
  28.57% { --d-bar: #0d1514; --d-cap: #19231f; --d-sheen: rgba(127,209,185,0); --d-rim: rgba(127,209,185,0); --d-sep: #3d4d49; --d-accent: #7fd1b9; --d-occ: #a9bdb7; --d-empty: #4a5a56; --d-tile: #24302d; --d-ink: #ecf3f1; --d-blob-a: rgba(80,190,160,.45); --d-blob-b: rgba(40,110,120,.40); --d-blob-c: rgba(80,190,160,0); --d-blob-d: rgba(80,190,160,0); --d-base-a: #173a38; --d-base-b: #0c1716; --d-blur: 0; --d-pill: #0d1514; }
  39.29% { --d-bar: #0d1514; --d-cap: #19231f; --d-sheen: rgba(127,209,185,0); --d-rim: rgba(127,209,185,0); --d-sep: #3d4d49; --d-accent: #7fd1b9; --d-occ: #a9bdb7; --d-empty: #4a5a56; --d-tile: #24302d; --d-ink: #ecf3f1; --d-blob-a: rgba(80,190,160,.45); --d-blob-b: rgba(40,110,120,.40); --d-blob-c: rgba(80,190,160,0); --d-blob-d: rgba(80,190,160,0); --d-base-a: #173a38; --d-base-b: #0c1716; --d-blur: 0; --d-pill: #0d1514; }
  42.86% { --d-bar: rgba(16,13,24,.78); --d-cap: rgba(185,166,232,.11); --d-sheen: rgba(185,166,232,.18); --d-rim: rgba(185,166,232,.28); --d-sep: rgba(200,196,220,.35); --d-accent: #b9a6e8; --d-occ: #b8b2c8; --d-empty: #555068; --d-tile: rgba(185,166,232,.16); --d-ink: #f0eef7; --d-blob-a: rgba(90,140,255,.75); --d-blob-b: rgba(255,130,200,.60); --d-blob-c: rgba(170,120,255,.85); --d-blob-d: rgba(110,170,255,.70); --d-base-a: #2c1f55; --d-base-b: #120d22; --d-blur: 18; --d-pill: rgba(16,13,24,.70); }
  53.57% { --d-bar: rgba(16,13,24,.78); --d-cap: rgba(185,166,232,.11); --d-sheen: rgba(185,166,232,.18); --d-rim: rgba(185,166,232,.28); --d-sep: rgba(200,196,220,.35); --d-accent: #b9a6e8; --d-occ: #b8b2c8; --d-empty: #555068; --d-tile: rgba(185,166,232,.16); --d-ink: #f0eef7; --d-blob-a: rgba(90,140,255,.75); --d-blob-b: rgba(255,130,200,.60); --d-blob-c: rgba(170,120,255,.85); --d-blob-d: rgba(110,170,255,.70); --d-base-a: #2c1f55; --d-base-b: #120d22; --d-blur: 18; --d-pill: rgba(16,13,24,.70); }
  57.14% { --d-bar: rgba(10,18,24,.78); --d-cap: rgba(143,208,232,.11); --d-sheen: rgba(143,208,232,.18); --d-rim: rgba(143,208,232,.28); --d-sep: rgba(190,210,220,.35); --d-accent: #8fd0e8; --d-occ: #a9bcc6; --d-empty: #475862; --d-tile: rgba(143,208,232,.16); --d-ink: #ecf3f6; --d-blob-a: rgba(40,200,220,.80); --d-blob-b: rgba(30,90,200,.75); --d-blob-c: rgba(120,240,220,.80); --d-blob-d: rgba(60,150,255,.75); --d-base-a: #0f3a4f; --d-base-b: #08161f; --d-blur: 18; --d-pill: rgba(10,18,24,.70); }
  67.86% { --d-bar: rgba(10,18,24,.78); --d-cap: rgba(143,208,232,.11); --d-sheen: rgba(143,208,232,.18); --d-rim: rgba(143,208,232,.28); --d-sep: rgba(190,210,220,.35); --d-accent: #8fd0e8; --d-occ: #a9bcc6; --d-empty: #475862; --d-tile: rgba(143,208,232,.16); --d-ink: #ecf3f6; --d-blob-a: rgba(40,200,220,.80); --d-blob-b: rgba(30,90,200,.75); --d-blob-c: rgba(120,240,220,.80); --d-blob-d: rgba(60,150,255,.75); --d-base-a: #0f3a4f; --d-base-b: #08161f; --d-blur: 18; --d-pill: rgba(10,18,24,.70); }
  71.43% { --d-bar: #15110d; --d-cap: #251e17; --d-sheen: rgba(232,180,120,0); --d-rim: rgba(232,180,120,0); --d-sep: #52483d; --d-accent: #e8b47a; --d-occ: #c4b8a8; --d-empty: #5c5246; --d-tile: #30281f; --d-ink: #f5f0ea; --d-blob-a: rgba(230,140,50,.50); --d-blob-b: rgba(170,70,40,.45); --d-blob-c: rgba(230,140,50,0); --d-blob-d: rgba(230,140,50,0); --d-base-a: #3e2a16; --d-base-b: #1a120a; --d-blur: 0; --d-pill: #15110d; }
  82.14% { --d-bar: #15110d; --d-cap: #251e17; --d-sheen: rgba(232,180,120,0); --d-rim: rgba(232,180,120,0); --d-sep: #52483d; --d-accent: #e8b47a; --d-occ: #c4b8a8; --d-empty: #5c5246; --d-tile: #30281f; --d-ink: #f5f0ea; --d-blob-a: rgba(230,140,50,.50); --d-blob-b: rgba(170,70,40,.45); --d-blob-c: rgba(230,140,50,0); --d-blob-d: rgba(230,140,50,0); --d-base-a: #3e2a16; --d-base-b: #1a120a; --d-blur: 0; --d-pill: #15110d; }
  85.71% { --d-bar: rgba(24,14,20,.78); --d-cap: rgba(240,160,200,.11); --d-sheen: rgba(240,160,200,.18); --d-rim: rgba(240,160,200,.28); --d-sep: rgba(220,196,210,.35); --d-accent: #f0a0c8; --d-occ: #c6b0bc; --d-empty: #5e4c58; --d-tile: rgba(240,160,200,.16); --d-ink: #f6ecf1; --d-blob-a: rgba(255,150,120,.75); --d-blob-b: rgba(200,70,150,.75); --d-blob-c: rgba(255,200,170,.80); --d-blob-d: rgba(255,110,170,.75); --d-base-a: #4d1f3a; --d-base-b: #1c0c16; --d-blur: 18; --d-pill: rgba(24,14,20,.70); }
  96.43% { --d-bar: rgba(24,14,20,.78); --d-cap: rgba(240,160,200,.11); --d-sheen: rgba(240,160,200,.18); --d-rim: rgba(240,160,200,.28); --d-sep: rgba(220,196,210,.35); --d-accent: #f0a0c8; --d-occ: #c6b0bc; --d-empty: #5e4c58; --d-tile: rgba(240,160,200,.16); --d-ink: #f6ecf1; --d-blob-a: rgba(255,150,120,.75); --d-blob-b: rgba(200,70,150,.75); --d-blob-c: rgba(255,200,170,.80); --d-blob-d: rgba(255,110,170,.75); --d-base-a: #4d1f3a; --d-base-b: #1c0c16; --d-blur: 18; --d-pill: rgba(24,14,20,.70); }
  100.00% { --d-bar: #0f1216; --d-cap: #1d222a; --d-sheen: rgba(236,140,140,0); --d-rim: rgba(236,140,140,0); --d-sep: #444c58; --d-accent: #8fb3e8; --d-occ: #aeb6c2; --d-empty: #4f5866; --d-tile: #2a313c; --d-ink: #eef1f5; --d-blob-a: rgba(143,179,232,.38); --d-blob-b: rgba(122,104,170,.30); --d-blob-c: rgba(143,179,232,0); --d-blob-d: rgba(143,179,232,0); --d-base-a: #2a3446; --d-base-b: #161b24; --d-blur: 0; --d-pill: #0f1216; }
}
.screen { animation: bar-looks 14s ease-in-out infinite; background: var(--d-base-b); }
.glass-scene {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 120% at 22% -10%, var(--d-blob-c), transparent 70%),
    radial-gradient(40% 110% at 72% -15%, var(--d-blob-d), transparent 70%),
    radial-gradient(120% 140% at 85% 110%, var(--d-blob-a), transparent 55%),
    radial-gradient(90% 120% at 10% 100%, var(--d-blob-b), transparent 60%),
    linear-gradient(170deg, var(--d-base-a) 0%, var(--d-base-b) 100%);
}
.bar-demo {
  z-index: 1;
  color: var(--d-ink);
  background: var(--d-bar);
  -webkit-backdrop-filter: blur(calc(var(--d-blur) * 1px)) saturate(calc(1 + var(--d-blur) / 50));
  backdrop-filter: blur(calc(var(--d-blur) * 1px)) saturate(calc(1 + var(--d-blur) / 50));
}
/* The concave corners under the bar: its own colour and blur, cut to the curve */
.bar-demo::before, .bar-demo::after {
  background: var(--d-bar);
  -webkit-backdrop-filter: blur(calc(var(--d-blur) * 1px)) saturate(calc(1 + var(--d-blur) / 50));
  backdrop-filter: blur(calc(var(--d-blur) * 1px)) saturate(calc(1 + var(--d-blur) / 50));
}
.bar-demo::before { -webkit-mask: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px); mask: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px); }
.bar-demo::after  { -webkit-mask: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px); mask: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px); }
.bar-demo .cap { position: relative; z-index: 0; background: var(--d-cap); }
/* Glass: the sheen (bright at the top, fading by the middle) and the bright top edge, which
   bends round the top corners and fades a little way down the sides (Gloss.qml) */
.bar-demo .cap::before, .bar-demo .cap::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
}
.bar-demo .cap::before {
  background: linear-gradient(to bottom, var(--d-sheen) 0%,
    color-mix(in srgb, var(--d-sheen) 25%, transparent) 50%, transparent 55%);
}
.bar-demo .cap::after {
  border: 1px solid var(--d-rim);
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 20%, transparent 45%);
  mask: linear-gradient(to bottom, #000 0%, #000 20%, transparent 45%);
}
/* Not the Colourful look: every icon in the bar's text colour */
.bar-demo .burger i { background: var(--d-ink); }
.bar-demo .quad i { background: var(--d-ink); }
.bar-demo .group b { background: var(--d-sep); }
.bar-demo .ws .dots span { background: var(--d-empty); }
.bar-demo .ws .dots span.occ { background: var(--d-occ); }
.bar-demo .ws .dots span.on {
  background-color: var(--d-accent);
  /* Glass: the sheen a coloured fill gets (Gloss.qml on the workspace marker): a strong shine
     over the top half, mostly white with a hint of the accent, a soft shade along the bottom,
     and a bright line along the top edge. --gloss: 0 for the flat looks, 1 for the glass ones */
  --gloss: calc(var(--d-blur) / 18);
  --marker-sheen: color-mix(in srgb, var(--d-accent) 40%, white);
  background-image:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--marker-sheen) calc(85% * var(--gloss)), transparent) 0%,
      color-mix(in srgb, var(--marker-sheen) calc(21% * var(--gloss)), transparent) 50%,
      transparent 55%),
    linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, calc(.3 * var(--gloss))) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--marker-sheen) calc(100% * var(--gloss)), transparent);
}
.bar-demo .tile { background: var(--d-tile); }
.bar-demo .status b { background: var(--d-sep); }
.bar-demo .mark-accent { stroke: var(--d-accent); }
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
}

/* The workspace switcher's pill under the bar (OSD.qml's sizes: 52 px tall, 20 px dots 10 px
   apart, 20 px either side): a dot for each look, the accent marker gliding to the one showing,
   in step with bar-looks. Glass: the usual glass opacity with the blur, a gentle sheen (as tall
   shapes get) and a bright top edge; flat: solid, with a soft shadow */
.ws-pill {
  position: absolute; left: 50%; bottom: 22px; z-index: 1;
  transform: translateX(-50%);
  display: flex; align-items: center;
  height: 52px; padding: 0 20px; border-radius: 26px;
  background-color: var(--d-pill);
  background-image: linear-gradient(to bottom,
    color-mix(in srgb, var(--d-sheen) 75%, transparent) 0%,
    color-mix(in srgb, var(--d-sheen) 30%, transparent) 18%, transparent 50%);
  --gloss: calc(var(--d-blur) / 18);
  box-shadow: inset 0 1px 0 var(--d-rim), 0 4px 16px rgba(0, 0, 0, calc(.4 * (1 - var(--gloss))));
  -webkit-backdrop-filter: blur(calc(var(--d-blur) * 1px)) saturate(calc(1 + var(--d-blur) / 50));
  backdrop-filter: blur(calc(var(--d-blur) * 1px)) saturate(calc(1 + var(--d-blur) / 50));
}
.ws-dots { display: flex; gap: 10px; }
.ws-dots span { width: 20px; height: 20px; border-radius: 50%; background: var(--d-occ); }
.ws-marker {
  position: absolute; left: 20px; top: 16px;
  width: 20px; height: 20px; border-radius: 50%;
  background-color: var(--d-accent);
  /* the same gloss as the bar's active workspace dot (see .ws span.on) */
  --marker-sheen: color-mix(in srgb, var(--d-accent) 40%, white);
  background-image:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--marker-sheen) calc(85% * var(--gloss)), transparent) 0%,
      color-mix(in srgb, var(--marker-sheen) calc(21% * var(--gloss)), transparent) 50%,
      transparent 55%),
    linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, calc(.3 * var(--gloss))) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--marker-sheen) calc(100% * var(--gloss)), transparent);
  animation: pill-marker 14s ease-in-out infinite;
}
@keyframes pill-marker {
  0.00% { transform: translateX(0px); }
  10.71% { transform: translateX(0px); }
  14.29% { transform: translateX(30px); }
  25.00% { transform: translateX(30px); }
  28.57% { transform: translateX(60px); }
  39.29% { transform: translateX(60px); }
  42.86% { transform: translateX(90px); }
  53.57% { transform: translateX(90px); }
  57.14% { transform: translateX(120px); }
  67.86% { transform: translateX(120px); }
  71.43% { transform: translateX(150px); }
  82.14% { transform: translateX(150px); }
  85.71% { transform: translateX(180px); }
  96.43% { transform: translateX(180px); }
  100.00% { transform: translateX(0px); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-marker { animation: none; }
}

.what .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.what p { color: var(--dim); margin: 0; }
.what strong { color: var(--text); }

.features { background: transparent; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.grid .icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 21px;
}
.grid p { color: var(--dim); margin: 0; font-size: 15px; }

/* ---- Previews ---- */
.previews { padding-bottom: 8px; }
.previews .sub { color: var(--dim); max-width: 640px; margin: -12px 0 0; }
.previews .note {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px 0 0; padding: 8px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, #e6cf8e 12%, transparent);
  color: #e6cf8e; font-size: 14px;
}
.previews .note .ti { font-size: 16px; vertical-align: 0; }
.shot-frame, .tilt img, .tilt video {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -20px rgba(0, 0, 0, .7), 0 18px 36px -18px rgba(0, 0, 0, .6);
}

/* Dayle's current desktop: one screenshot, flat and full width */
.desktop { padding-top: 96px; }
.desktop .sub { color: var(--dim); max-width: 640px; margin: -12px 0 28px; }
.desktop figure { margin: 0; }

/* The tour: text beside a tilted screenshot, alternating sides */
.tour { display: grid; gap: 96px; padding-top: 24px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.row.flip { grid-template-columns: 7fr 5fr; }
.row.flip .copy { order: 2; }
.kicker {
  color: var(--accent); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.row h3 { font-size: 26px; margin: 8px 0 12px; }
.row p { color: var(--dim); margin: 0; }
.tilt { margin: 0; position: relative; perspective: 1600px; }
.tilt::before {                     /* a glow under each screenshot */
  content: ""; position: absolute; inset: 12% 8% -6%;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  filter: blur(60px); opacity: .55; z-index: -1;
}
.tilt img, .tilt video {
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(1.5deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.flip .tilt img, .flip .tilt video { transform: rotateY(16deg) rotateX(6deg) rotateZ(-1.5deg); }
.tilt:hover img, .flip .tilt:hover img, .tilt:hover video, .flip .tilt:hover video { transform: rotateY(0) rotateX(0) rotateZ(0) scale(1.02); }

.more { padding-top: 0; }
.credit { color: var(--dim); font-size: 13px; text-align: center; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .tilt img, .tilt video { transition: none; }
}

.install p { color: var(--dim); max-width: 720px; }
.install strong { color: var(--text); }
/* An early preview: said plainly where people install (and, shortly, under the hero's buttons) */
.install .note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 22px; padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, #e6cf8e 12%, transparent);
  color: #e6cf8e; font-size: 14.5px; line-height: 1.5;
}
.install .note .ti { font-size: 18px; vertical-align: 0; margin-top: 1px; }
.install .note strong { color: inherit; }
.install .note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.preview-tag { margin: 18px 0 0; color: #e6cf8e; font-size: 14px; }
.preview-tag .ti { font-size: 15px; vertical-align: -2px; }
.preview-tag a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  max-width: 720px;
}
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; color: var(--text); }
.facts { list-style: none; padding: 0; margin: 20px 0; color: var(--dim); }
.facts li { margin: 6px 0; }
.facts .ti { color: var(--accent); margin-right: 8px; }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 20px 48px;
  text-align: center;
  color: var(--dim);
  font-size: 14px;
}
footer p { margin: 4px 0; }
footer .ai {
  max-width: 620px; margin: 0 auto 18px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 13.5px; line-height: 1.55;
}
footer .ai .ti { color: var(--accent); margin-right: 4px; }

/* ---- Phones ---- */
@media (max-width: 760px) {
  .tour { gap: 56px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 24px; }
  .row.flip .copy { order: 0; }
  /* Phones: flat, with no blurred glow, so the clips play smoothly */
  .tilt { perspective: none; }
  .tilt::before { display: none; }
  .tilt img, .flip .tilt img, .tilt video, .flip .tilt video,
  .tilt:hover img, .flip .tilt:hover img, .tilt:hover video, .flip .tilt:hover video {
    transform: none; transition: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 28px -12px rgba(0, 0, 0, .6);
  }
  .what .cols { grid-template-columns: 1fr; gap: 16px; }
  main section { padding: 52px 16px; }
  .hero { padding-top: 56px; }
  .hero-mark { height: 96px; margin-bottom: 22px; }
}

/* ---- The menu button (phones) ----
   Hidden until site.js says it can work (html.js): without it, the links just stay in the header,
   wrapping onto a second line, and the header scrolls with the page. */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin: -4px -8px -4px 0; padding: 0; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--text);
}
.nav-toggle:hover { background: var(--card); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-toggle .bars { display: grid; gap: 4px; }
.nav-toggle .bars i { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle .bars i { transition: none; } }
@media (max-width: 860px) {
  .top nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
  html:not(.js) .top { position: static; flex-wrap: wrap; }
  html.js .nav-toggle { display: inline-flex; }
  html.js .top nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 16px;
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
  }
  html.js .top nav.open { display: flex; }
  html.js .top nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 16px; }
  html.js .top nav a:hover { background: var(--card); }
  .jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
  .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
  .docs-pager .edit { display: flex; align-items: center; min-height: 44px; }
  html.js .top nav .button.small { margin-top: 6px; justify-content: center; border: 1px solid var(--line); }
}

/* ---- Every feature (features.html) ---- */
.fp section { padding-top: 0; padding-bottom: 0; }
.fp-hero { padding-top: 64px !important; padding-bottom: 24px !important; }
.fp-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 650; margin: 18px 0 12px; }
.fp-hero .lead { margin: 0 0 18px; text-align: left; }
.fp-hero .note {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px; padding: 8px 14px;
  border-radius: 10px; background: color-mix(in srgb, #e6cf8e 12%, transparent); color: #e6cf8e; font-size: 14px;
}
.fp-hero .note .ti { vertical-align: 0; }
.back { color: var(--dim); font-size: 14px; font-weight: 500; }
.back:hover { color: var(--text); text-decoration: none; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--dim); font-size: 14px; font-weight: 500;
}
.jump a:hover { color: var(--text); background: var(--raised); text-decoration: none; }
.fp-section { padding-top: 56px !important; scroll-margin-top: 70px; }
.fp-section h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin-bottom: 18px; }
.fp-section h2 .ti {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 20px; vertical-align: 0;
}
.fp-intro { color: var(--dim); max-width: 760px; margin: -6px 0 18px; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fp-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); gap: 14px; align-items: start; }
.fp-grid article, .fp-keys article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.fp-grid h3, .fp-keys h3 { margin: 0 0 10px; font-size: 16px; }
.fp-grid ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15px; }
.fp-grid li { margin: 5px 0; }
.fp-grid li::marker { color: var(--accent); }
.fp-grid strong, .fp-grid em { color: var(--text); }
.fp-grid code, .fp-intro code { font-size: 13px; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.fp-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.fp-keys dt {
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--text); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; align-self: start;
}
.fp-keys dd { margin: 0; color: var(--dim); }
.fp + footer { margin-top: 72px; }
.all-features { margin-top: 24px; text-align: center; }

/* The example bar on narrower screens drops its less interesting parts one step at a time, so what is
   left always fits at its real size. In order: the Wi-Fi name and the tray, the window's title,
   Bluetooth and sound, the window's tile, the battery, the window mode, Apps and Nova, the status
   readings, and last the Spaces button. The slate mark, the workspaces, the clock and power stay. */
@media (max-width: 960px) { .bar-demo .val, .bar-demo .tray { display: none; } }
@media (max-width: 840px) { .bar-demo .title { display: none; } .bar-demo .app { padding: 0 4px; } }
@media (max-width: 780px) {
  .bar-demo .status span:nth-of-type(n+3):nth-of-type(-n+4), .bar-demo .status b:nth-of-type(n+2):nth-of-type(-n+3) { display: none; }
}
@media (max-width: 660px) { .bar-demo .app { display: none; } }
@media (max-width: 620px) { .bar-demo .status span:nth-of-type(5), .bar-demo .status b:nth-of-type(4) { display: none; } }
@media (max-width: 560px) { .bar-demo .ws .item:nth-of-type(2), .bar-demo .ws b:nth-of-type(2) { display: none; } }
@media (max-width: 520px) { .bar-demo .group:not(.ws) { display: none; } }
@media (max-width: 440px) { .bar-demo .status { display: none; } }
@media (max-width: 360px) { .bar-demo .ws .item:first-of-type, .bar-demo .ws b:first-of-type { display: none; } }

/* Changelog */
.cl-release h2 { flex-wrap: wrap; }
.cl-release h2 time { color: var(--dim); font-size: 15px; font-weight: 500; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 14px; align-items: start; }
.cl-grid article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cl-grid h3 { margin: 0 0 10px; font-size: 16px; }
.cl-grid ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15px; }
.cl-grid li { margin: 6px 0; }
.cl-grid li::marker { color: var(--accent); }
.cl-grid ul ul { margin-top: 4px; }
.cl-grid strong, .fp-hero .lead strong { color: var(--text); }
.cl-grid code, .fp-hero .lead code { font-size: 13px; background: var(--surface); padding: 1px 6px; border-radius: 6px; }

/* The changelog's release picker: type to find a release, arrows and Enter to go to it */
.cl-pick { position: relative; max-width: 340px; }
.cl-pick > .ti {
  position: absolute; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 17px; pointer-events: none;
}
.cl-pick > .ti:first-child { left: 14px; }
.cl-pick .cl-pick-chev { right: 14px; transition: transform .18s ease; }
.cl-pick.open .cl-pick-chev { transform: translateY(-50%) rotate(180deg); }
.cl-pick input {
  width: 100%; box-sizing: border-box; padding: 11px 40px 11px 42px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.cl-pick input::placeholder { color: var(--dim); }
.cl-pick input:hover { background: var(--raised); }
.cl-pick input:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--raised); }
.cl-pick-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
  list-style: none; max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .38); scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.cl-pick-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px;
  border-radius: 8px; cursor: pointer; color: var(--text); font-size: 15px; font-weight: 500;
}
.cl-pick-list li time { color: var(--dim); font-size: 13px; font-weight: 400; }
.cl-pick-list li.hot { background: var(--raised); }
.cl-pick-list li.here::after { content: "\EA5E"; font-family: "Tabler"; color: var(--accent); margin-left: auto; }
.cl-pick-list li.here time { margin-left: auto; }
.cl-pick-list li.empty { color: var(--dim); cursor: default; font-weight: 400; }
