/* NotifyDock site. Plain CSS, no build step. */

:root {
  --bg: #0B0F19;
  --bg-2: #0D121E;
  --surface: #111827;
  --surface-2: #161E2E;
  --surface-3: #1C2536;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --highlight: rgba(255, 255, 255, 0.07);
  --accent: #00E5A3;
  --accent-hover: #2CF0B6;
  --accent-ink: #032419;
  --accent-soft: rgba(0, 229, 163, 0.12);
  --accent-line: rgba(0, 229, 163, 0.45);
  --alert: #FF5252;
  --alert-soft: rgba(255, 82, 82, 0.14);
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --faint: #8B93A1; /* 5.4:1 or better on every surface below */

  --font: 'Segoe UI Variable Display', 'Segoe UI Variable Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Code', 'Cascadia Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --wrap: 1160px;
  --header-h: 60px;
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
code, .mono { font-family: var(--mono); font-feature-settings: "calt" 0; }
code {
  font-size: 0.86em;
  padding: 0.1em 0.38em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #D1FAE9;
  white-space: nowrap;
}
::selection { background: rgba(0, 229, 163, 0.3); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: 860px; }

.i { width: 16px; height: 16px; flex: none; }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  box-shadow: none;
  color: var(--text);
  font: 600 14px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 transparent; }

.btn--primary {
  --btn-bg: var(--accent);
  color: var(--accent-ink);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); border-color: rgba(0, 0, 0, 0.25); }
.btn--secondary { --btn-bg: rgba(255, 255, 255, 0.04); }

.btn--sm { height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 12px; font-weight: 500; border-radius: var(--radius-xs); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--pill { border-radius: 999px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: none;
}
.brand__word { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: #FFFFFF; }
.brand__word span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav + .site-header__actions { margin-left: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 14px; height: 1.5px; background: var(--text); border-radius: 1px; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 32px; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: "copy shot" "more shot";
  grid-template-rows: auto 1fr;
  gap: 0 48px;
  align-items: center;
}
.hero__copy { grid-area: copy; align-self: end; }
.hero__shot { grid-area: shot; }
.hero__more { grid-area: more; align-self: start; margin-top: 18px; }
.hero .kicker { font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__sub { margin-top: 16px; color: #C4C9D1; font-size: 1.08rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.hero__textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 5px;
}
.hero__textlink:hover { color: var(--accent); }
.hero__facts { list-style: none; margin: 18px 0 0; padding: 0; color: #C4C9D1; font-size: 14px; line-height: 1.7; }
.hero__signing { color: var(--muted); font-size: 13.5px; }
.hero__details { margin-top: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero__details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 2px;
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text);
}
.hero__details summary::-webkit-details-marker { display: none; }
.hero__details summary .i { color: var(--muted); transition: transform 0.2s var(--ease); }
.hero__details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.install {
  margin: 4px 0 0;
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px;
  font-size: 13.5px;
}
.install div { display: contents; }
.install dt { color: var(--faint); }
.install dd { margin: 0; color: #D1D5DB; }
.install a { text-underline-offset: 3px; }
.install code { font-size: 12.5px; background: none; border: 0; padding: 0; color: inherit; }
.install a, .install__help a { color: var(--accent); }
.install__hash { white-space: normal; word-break: break-all; }
.install__help { margin: 12px 0 14px; color: var(--muted); font-size: 13.5px; }
.install__help strong { color: var(--text); font-weight: 600; }
.hero__shot { margin: 0; }
.hero__shot img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.95); }
.hero__shot figcaption { margin-top: 10px; color: var(--faint); font-size: 12.5px; }

/* animation in the setup section */
.promo { margin: 0; }
.promo__frame { aspect-ratio: 16 / 9; background: #070A12; border-radius: var(--radius-sm); overflow: hidden; }
.promo__frame video { width: 100%; height: 100%; object-fit: cover; }
.promo__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--faint); font-size: 12.5px; }
.window__btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: transparent; color: var(--muted);
  font: 500 12.5px/1 var(--font); cursor: pointer;
}
.window__btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.window__btn .i { width: 12px; height: 12px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; position: relative; }
.section--compact { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section__head { max-width: 720px; margin-bottom: 32px; }
.kicker { color: var(--accent); font-size: 12.5px; letter-spacing: 0.02em; margin-bottom: 12px; }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); text-wrap: balance; }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- simulator ---------- */
.sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}
.sim__stage {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    var(--bg-2);
  box-shadow: inset 0 1px 0 var(--highlight);
  padding: 44px 28px 24px;
  display: flex;
  align-items: center;
}

.desk {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4%;
}
.monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.monitor[data-monitor="1"] { width: 55%; }
.monitor[data-monitor="2"] { width: 41.25%; } /* 1920 logical px vs 2560: same physical toast size on both */
.monitor__bezel {
  width: 100%;
  padding: 2.2%;
  border-radius: 10px;
  background: linear-gradient(180deg, #2A3242, #1A2030);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.monitor.is-target .monitor__bezel {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.monitor__stand {
  width: 16%;
  height: 26px;
  background: linear-gradient(180deg, #1C2230, #252D3D);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.monitor__stand::after {
  content: "";
  display: block;
  width: 260%;
  height: 5px;
  margin: 26px 0 0 -80%;
  border-radius: 3px;
  background: #252D3D;
}
.monitor__label {
  margin-top: 14px;
  color: var(--faint);
  font-size: 11.5px;
  text-align: center;
  line-height: 1.4;
  transition: color 0.2s;
}
.monitor__label b { color: var(--muted); font-weight: 600; }
.monitor.is-target .monitor__label,
.monitor.is-target .monitor__label b { color: var(--accent); }

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: #0E1A2E;
}
.game { width: 100%; height: 100%; }
.wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 30% 110%, rgba(0, 229, 163, 0.18), transparent 60%),
    radial-gradient(ellipse 80% 80% at 90% -10%, rgba(56, 120, 220, 0.35), transparent 60%),
    linear-gradient(160deg, #0F2A48, #0B1A30 60%, #0A1426);
}
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 7.5%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 22, 34, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.taskbar__icons { display: flex; gap: 2.4%; width: 30%; justify-content: center; }
.taskbar__icons i { width: 7%; aspect-ratio: 1; border-radius: 2px; background: #3B82F6; }
.taskbar__icons i:nth-child(2) { background: #F5B83D; }
.taskbar__icons i:nth-child(3) { background: #8B95A7; }
.taskbar__icons i:nth-child(4) { background: #6D7CF2; }
.taskbar__icons i:nth-child(5) { background: var(--accent); }
.taskbar__clock { position: absolute; right: 2.5%; font-size: clamp(6px, 0.75vw, 9px); color: #C7CDD6; }

.hotspot {
  position: absolute;
  width: 24%;
  height: 28%;
  padding: 0;
  border: 1px dashed transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.15s, background-color 0.15s;
}
.hotspot[data-corner="tl"] { top: 3%; left: 2%; }
.hotspot[data-corner="tr"] { top: 3%; right: 2%; }
.hotspot[data-corner="bl"] { bottom: 3%; left: 2%; }
.hotspot[data-corner="br"] { bottom: 3%; right: 2%; }
.screen--desktop .hotspot[data-corner^="b"] { bottom: 10%; }
.hotspot:hover, .hotspot:focus-visible {
  border-color: rgba(0, 229, 163, 0.6);
  background: rgba(0, 229, 163, 0.08);
  outline: none;
}

.corner-mark {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s;
}
.monitor.is-target .corner-mark { opacity: 1; }
.corner-mark[data-corner="tl"] { top: 3%; left: 2%; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.corner-mark[data-corner="tr"] { top: 3%; right: 2%; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.corner-mark[data-corner="bl"] { bottom: 3%; left: 2%; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.corner-mark[data-corner="br"] { bottom: 3%; right: 2%; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.screen--desktop .corner-mark[data-corner^="b"] { bottom: 10%; }
.sim.is-off .corner-mark { opacity: 0 !important; }
.sim.is-off .monitor.is-target .monitor__bezel { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.sim.is-off .monitor.is-target .monitor__label,
.sim.is-off .monitor.is-target .monitor__label b { color: var(--faint); }

/* the simulated toast, positioned over the whole desk */
.toast-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.toast, .toast-origin {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--toast-w, 200px);
}
.toast {
  container-type: inline-size;
  /* cqw on the container itself would resolve against the viewport, so pad from the width variable */
  padding: calc(var(--toast-w, 200px) * 0.045) calc(var(--toast-w, 200px) * 0.05) calc(var(--toast-w, 200px) * 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(32, 36, 44, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px -8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
  transition:
    transform 0.55s var(--ease),
    opacity 0.25s ease,
    visibility 0s linear 0.25s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.toast.is-shown {
  opacity: var(--toast-opacity, 1);
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform 0.55s var(--ease),
    opacity 0.25s ease,
    visibility 0s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.toast.is-ghost { pointer-events: none; }
.toast.no-anim { transition: none !important; }
.toast.is-landed { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 30px -8px rgba(0, 0, 0, 0.7); }
.toast.is-intrusive { border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert), 0 12px 30px -8px rgba(0, 0, 0, 0.7); }
.toast__head { display: flex; align-items: center; gap: 3.5cqw; }
.toast__icon {
  display: grid; place-items: center;
  width: 9cqw; height: 9cqw; border-radius: 2cqw;
  background: #5865F2; color: #fff; flex: none;
}
.toast__icon svg { width: 60%; height: 60%; }
.toast__app { font-size: 5.4cqw; color: #C9CED6; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__close { font-size: 5cqw; color: #8A909A; }
.toast__title { margin-top: 3cqw; font-size: 7.2cqw; font-weight: 600; line-height: 1.25; color: #F3F4F6; }
.toast__body { margin-top: 0.8cqw; font-size: 6.3cqw; line-height: 1.3; color: #BFC5CE; }
.toast__flag {
  position: absolute;
  left: -1px;
  bottom: calc(100% + 6px);
  padding: 2px 7px;
  border-radius: 4px;
  font: 600 10px/1.5 var(--mono);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.toast.is-intrusive .toast__flag { opacity: 1; background: var(--alert); color: #2A0606; }
.toast.is-landed .toast__flag { opacity: 1; background: var(--accent); color: var(--accent-ink); }
.toast.flag-below .toast__flag { bottom: auto; top: calc(100% + 6px); }

.toast-origin {
  aspect-ratio: 364 / 108;
  height: auto;
  border: 1px dashed rgba(255, 82, 82, 0.7);
  border-radius: 6px;
  background: rgba(255, 82, 82, 0.06);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.toast-origin.is-shown { opacity: 1; transition: opacity 0.1s; }

/* settings panel, styled after the app's Fluent settings window */
.sim__panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--highlight);
}
.setting {
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  min-width: 0;
}
.setting + .setting { border-top: 1px solid var(--border); border-radius: 0; }
.setting__label { display: block; padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.setting--switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting--switch .setting__label { margin-bottom: 2px; }
.setting__hint { font-size: 12px; color: var(--faint); }
.setting__row { display: flex; justify-content: space-between; align-items: baseline; }
.setting__row output { font-size: 12px; color: var(--accent); font-weight: 500; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  gap: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented label { position: relative; }
.segmented input, .corner-picker input, .switch input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; inset: 0; cursor: pointer;
}
.segmented span {
  display: block;
  padding: 6px 4px;
  border-radius: 5px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span {
  background: var(--surface-3);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 var(--highlight);
  color: var(--text);
}
.segmented input:focus-visible + span,
.corner-picker input:focus-visible + .cp,
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 1px; }

.corner-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.corner-picker label { position: relative; }
.cp {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: border-color 0.15s, background-color 0.15s;
}
.cp i {
  position: absolute;
  width: 40%;
  height: 22%;
  border-radius: 2px;
  background: var(--faint);
  transition: background-color 0.15s;
}
.cp--tl i { top: 14%; left: 10%; }
.cp--tr i { top: 14%; right: 10%; }
.cp--bl i { bottom: 14%; left: 10%; }
.cp--br i { bottom: 14%; right: 10%; }
.corner-picker label:hover .cp { border-color: rgba(255, 255, 255, 0.25); }
.corner-picker input:checked + .cp { border-color: var(--accent); background: var(--accent-soft); }
.corner-picker input:checked + .cp i { background: var(--accent); }

.switch { position: relative; flex: none; width: 40px; height: 20px; }
.switch__track {
  display: block;
  width: 100%; height: 100%;
  border-radius: 999px;
  border: 1px solid #8A919C;
  background: transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #C3C8CF;
  transition: transform 0.18s var(--ease), background-color 0.15s, width 0.15s;
}
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: var(--accent-ink); }
.switch:active .switch__track::after { width: 15px; }

.range {
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  --fill: 100%;
}
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill), #3A4252 var(--fill));
}
.range::-moz-range-track { height: 4px; border-radius: 2px; background: #3A4252; }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; margin-top: -8px;
  border-radius: 50%;
  background: var(--accent) content-box;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 5px #454C5A inset;
  transition: padding 0.12s;
}
.range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 5px solid #454C5A;
}
.range:hover::-webkit-slider-thumb { padding: 4px; }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.fire { height: 48px; font-size: 15px; }
.sim__action { padding: 10px 10px 6px; }
.sim__status { margin-top: 10px; min-height: 2.8em; color: var(--text); font-size: 13.5px; line-height: 1.4; }
.sim__more { margin: 6px 0 0; }
.sim__more .setting { border-top: 1px solid var(--border); border-radius: 0; }
.demo__note { margin-top: 10px; color: var(--faint); font-size: 0.92rem; }
.demo__noscript { margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--muted); }
.monitor__label { font-family: var(--font); }

.console {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #080B13;
  color: #C9D1DC;
  font-size: 12.5px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  min-height: 112px;
}
.c-dim { color: var(--faint); }
.c-key { color: var(--accent); }
.c-str { color: #9CDCFE; }
.c-val { color: #CE9178; }
.c-bad { color: var(--alert); }
.c-ok { color: var(--accent); }

/* ---------- setup, benefits, compatibility ---------- */
.card h3 { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 600; }
.card > p { color: var(--muted); font-size: 0.95rem; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 4px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.02em;
}
.tag--free { color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.tag--pro { color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); }

.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 28px; }
.steps li { position: relative; padding-left: 52px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent);
  font: 600 15px/1 var(--mono);
}
.steps h3 { font-size: 1.12rem; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--muted); }
.steps strong { color: var(--text); font-weight: 600; }
.steps__note { font-size: 0.9rem; }
.steps__note a, .buy-steps a, .demo__noscript a { color: var(--accent); text-underline-offset: 3px; }

.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.shot figcaption, .viz__caption { margin-top: 10px; color: var(--faint); font-size: 12.5px; }
.shot--card { margin-top: auto; }
.shot--card img { border-radius: var(--radius-sm); }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.viz { position: relative; margin: auto 0 0; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); }
.viz .viz__caption { padding: 0 6px 4px; }

.also { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.also li { color: var(--muted); font-size: 0.95rem; padding: 14px 0; border-top: 1px solid var(--border); }
.also b { color: var(--text); font-weight: 600; }
.also .tag { margin-right: 10px; }

.tech-list { margin-top: 28px; display: flex; flex-direction: column; }
.tech, .compare-more { border-top: 1px solid var(--border); }
.tech-list .tech:last-child { border-bottom: 1px solid var(--border); }
.sim__more { border-top: 1px solid var(--border); }
.tech summary, .compare-more summary, .sim__more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 4px;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-sm);
}
.tech summary::-webkit-details-marker, .compare-more summary::-webkit-details-marker, .sim__more summary::-webkit-details-marker { display: none; }
.tech summary .i, .compare-more summary .i, .sim__more summary .i { color: var(--muted); transition: transform 0.2s var(--ease); }
.tech[open] summary .i, .compare-more[open] summary .i, .sim__more[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.tech summary:hover, .compare-more summary:hover, .sim__more summary:hover { background: rgba(255, 255, 255, 0.025); }
.tech__body { padding: 0 4px 16px; color: var(--muted); font-size: 0.93rem; display: flex; flex-direction: column; gap: 10px; }
.tech__body code { white-space: normal; word-break: break-word; }
.demo .tech { margin-top: 16px; }
.demo .tech .console { margin: 0 0 12px; }

.compat-sum { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 12px 40px; align-items: baseline; }
.section .compat-sum h2 { font-size: 1.35rem; }
.compat-sum__list { margin: 0; padding-left: 1.1em; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.compat-sum__list strong { color: var(--text); font-weight: 600; }
.compat-more { margin-top: 20px; border-bottom: 1px solid var(--border); }
.compat-more strong { color: var(--text); font-weight: 600; }

.viz--history { padding: 8px; }
.vh-search {
  display: flex; align-items: center;
  height: 32px; padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.caret { width: 1px; height: 14px; margin-left: 2px; background: var(--text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px 4px; }
.vh-row + .vh-row { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.vh-row--dim { opacity: 0.5; }
.vh-app { font-size: 11.5px; color: var(--faint); }
.vh-text { font-size: 13px; color: var(--text); }
.btn.is-copied { --btn-bg: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.code {
  margin: auto 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #080B13;
  color: #C9D1DC;
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
}

/* ---------- comparison ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan-card--pro { box-shadow: inset 0 3px 0 var(--accent); }
.plan-card__name { font-size: 1rem !important; color: var(--muted); }
.plan-card--pro .plan-card__name { color: var(--accent); }
.plan-card > .plan-card__price { color: var(--text); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan-card__price small { display: block; margin-top: 6px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--text); }
.plan-card__lead { color: var(--muted); font-size: 0.95rem; }
.plan-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-card__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-card__list .i { margin-top: 4px; color: var(--accent); }
.plan-card__terms { color: var(--muted); font-size: 0.9rem; margin-top: auto !important; }
.plan-card .btn { white-space: normal; text-align: center; }

.buy-steps { margin-top: 16px; padding: 22px 24px; }
.buy-steps h3 { font-size: 1.05rem; font-weight: 600; }
.buy-steps ol { margin: 12px 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.buy-steps li { color: var(--muted); }
.buy-steps b, .buy-steps strong { color: var(--text); font-weight: 600; }
.buy-steps > p { margin-top: 12px; color: var(--muted); font-size: 0.93rem; }

.compare-more { margin-top: 16px; }
.compare-more .compare { margin: 0 0 12px; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare tbody th { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.compare td { text-align: center; width: 22%; }
.plan small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.compare .col-pro { background: rgba(0, 229, 163, 0.035); }
.compare thead th { vertical-align: bottom; }
.compare__corner { color: var(--faint); font-size: 12px; font-weight: 500; }
.plan { text-align: center !important; }
.plan__name { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan__price { display: block; margin-top: 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan__price small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.plan--pro { position: relative; box-shadow: inset 0 2px 0 var(--accent); }
.plan--pro .plan__name { color: var(--accent); }
.i--yes { width: 20px; height: 20px; margin: 0 auto; color: var(--accent); }
.i--no { width: 20px; height: 20px; margin: 0 auto; color: var(--faint); }
.cell-note { font-size: 12px; color: var(--muted); }
.cell-note--pro { color: var(--accent); }
.compare__terms th { color: var(--muted) !important; }
.compare__terms td { font-size: 12px; color: var(--muted); line-height: 1.5; }
.compare__terms td:last-child { color: var(--text); }
.compare tfoot td { border-bottom: 0; padding-top: 18px; padding-bottom: 20px; }
.fineprint { margin-top: 14px; color: var(--faint); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--highlight);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(255, 255, 255, 0.025); }
.faq summary .i { color: var(--muted); transition: transform 0.2s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.faq__body { padding: 0 18px 18px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.faq__body code { white-space: normal; word-break: break-word; }

/* ---------- CTA + footer ---------- */
.cta { padding-top: 24px; border-top: 0 !important; }
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 40px;
  background:
    var(--surface);
}
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; background: #090C15; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.site-footer__brand p { margin-top: 8px; color: var(--faint); font-size: 12px; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.site-footer__links a { color: var(--muted); font-size: 14px; text-decoration: none; padding: 4px 0; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; }

/* ---------- text pages (privacy, support, releases, license, 404) ---------- */
.doc .checksum { display: block; margin-top: 8px; padding: 12px 14px; white-space: normal; word-break: break-all; font-size: 13px; line-height: 1.6; }
.doc dl { margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.doc dt { color: var(--muted); font-weight: 600; }
.doc dd { margin: 0; color: #D1D5DB; }
.doc ol { margin: 12px 0 0; padding-left: 1.3em; color: #D1D5DB; }
.doc ol li + li { margin-top: 6px; }
.doc .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.doc__callout { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); }
.doc__callout p:first-child { margin-top: 0; }
@media (max-width: 640px) { .doc dl { grid-template-columns: 1fr; gap: 2px; } .doc dd + dt { margin-top: 10px; } }
.doc { padding: 64px 0 88px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc__updated { margin-top: 12px; color: var(--faint); font-size: 13px; }
.doc__lead { margin-top: 20px; color: var(--muted); font-size: 1.08rem; }
.doc h2 { margin-top: 48px; font-size: 1.35rem; }
.doc h3 { margin-top: 28px; font-size: 1.05rem; }
.doc p, .doc ul { margin: 12px 0 0; color: #D1D5DB; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a:not(.btn) { color: var(--accent); }
.doc strong { color: var(--text); font-weight: 600; }
.doc__table { overflow-x: auto; }
.doc table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .sim { grid-template-columns: 1fr; }
  .sim__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
  .setting + .setting { border-top: 0; }
  .setting { border-bottom: 1px solid var(--border); border-radius: 0; }
  .fire { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(11, 15, 25, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .benefits { grid-template-columns: 1fr; }
  .setup { grid-template-columns: 1fr; }
  .shot:not(.shot--card) { max-width: 560px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .plans, .compat-sum, .also { grid-template-columns: 1fr; }
  .plan-card { padding: 22px 20px; }
  .compare th, .compare td { padding: 10px 8px; font-size: 0.88rem; }
  .hero { padding: 48px 0 24px; }
  .window { margin-top: 32px; }
  .section { padding: 52px 0; }
  .section--compact { padding: 32px 0; }
  .sim__stage { padding: 28px 12px 16px; }
  .desk { flex-direction: column; align-items: center; gap: 18px; }
  .monitor[data-monitor="1"] { width: 100%; }
  .monitor[data-monitor="2"] { width: 75%; }
  .monitor__stand { height: 14px; }
  .monitor__stand::after { margin-top: 14px; }
  .sim__panel { grid-template-columns: 1fr; }
  .benefit { padding: 20px; }
  .compare th, .compare td { padding: 12px 12px; }
  .cta__inner { padding: 28px 20px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; flex-direction: column; }
  .site-footer__links a { padding: 10px 0; }
  .site-header__actions .btn--sm { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* very narrow phones (320 px): keep brand, download and menu on one line */
@media (max-width: 359px) {
  .site-header__inner { gap: 8px; }
  .site-header__actions { gap: 6px; }
  .site-header__actions .btn--sm { padding: 0 10px; font-size: 13px; }
  .site-header__actions .btn--sm .i { display: none; }
  .brand { gap: 7px; }
  .brand__word { font-size: 16.5px; }
}
.doc code { white-space: normal; word-break: break-word; }

/* maker block */
.maker .section__lead a { color: var(--accent); text-underline-offset: 3px; }
.setup .promo { align-self: start; }

/* hero stacks on tablets and phones; the screenshot follows the download button */
@media (max-width: 920px) {
  .hero { padding: 28px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "shot" "more"; grid-template-rows: none; gap: 28px; }
  .hero__shot { max-width: 640px; }
  .hero__more { margin-top: 0; max-width: 640px; }
}
@media (max-width: 640px) {
  .hero__cta .btn { width: 100%; min-height: 52px; height: auto; white-space: normal; }
  .hero { padding-top: 20px; }
  .hero .kicker { margin-bottom: 10px; font-size: 13px; }
  .hero__sub { font-size: 1rem; margin-top: 12px; }
  .hero__cta { margin-top: 20px; gap: 4px 20px; }
  .hero__facts { margin-top: 12px; font-size: 13.5px; }
  .install { grid-template-columns: 1fr; gap: 0; font-size: 13px; }
  .install div + div dt { margin-top: 8px; }
  .hero__inner { gap: 20px; }
}

/* Microsoft Store alternative */
.hero__signing a, .plan-card__alt a, .faq__body a { color: var(--accent); text-underline-offset: 3px; }
.plan-card__alt { margin-top: -6px; color: var(--muted); font-size: 0.9rem; text-align: center; }
