/* KeyPress OSD – shared stylesheet for all pages
   Look inspired by keypressosd.com: near-black pages with indigo accents, a soft colored glow
   behind each page title, and cards with hairline borders. Light and dark versions; the page
   follows the system/browser setting until the visitor picks one with the sun/moon button
   in the menu bar. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(atkinson-hyperlegible-next.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ═════════════ Colors ═════════════ */
:root {
  color-scheme: light;
  --bg: #f6f6f8;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --edge: rgba(24, 24, 27, .09);
  --edge-strong: rgba(24, 24, 27, .16);
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 14px 34px -16px rgba(24, 24, 27, .16);
  --text: #3f3f46;
  --muted: #565660;
  --faint: #7c7c88;
  --strong: #0b0b10;
  --accent: #4f46e5;
  --accent-hover: #312e81;
  --accent-soft: rgba(99, 102, 241, .09);
  --accent-edge: rgba(99, 102, 241, .28);
  --ghost-text: #3730a3;
  --question: #18181b;
  --glow-a: .16;
  --header-bg: rgba(255, 255, 255, .8);
  --header-edge: rgba(24, 24, 27, .08);
  --nav: #52525b;
  --nav-hover: #0b0b10;
  --nav-hover-bg: rgba(24, 24, 27, .05);
  --menu-bg: #fff;
  --hover-bg: rgba(99, 102, 241, .08);
  --green: #15803d;
  --green-hover: #166534;
  --green-text: #15803d;
  --green-soft: rgba(22, 163, 74, .08);
  --green-edge: rgba(22, 163, 74, .3);
  --amber-text: #b45309;
  --amber-soft: rgba(245, 158, 11, .1);
  --amber-edge: rgba(217, 119, 6, .32);
  --title-grad: linear-gradient(100deg, #0b0b10 25%, #4338ca 70%, #0e7490 100%);
  /* home page */
  --sec-alt: #ffffff;
  --hero-bg:
    radial-gradient(40% 60% at 15% 0%, rgba(99, 102, 241, .16), transparent 70%),
    radial-gradient(40% 60% at 85% 10%, rgba(6, 182, 212, .12), transparent 70%),
    var(--bg);
  /* "See it in action": a deep band in both modes, like a cinema screen */
  --deep-bg:
    radial-gradient(50% 70% at 100% 0%, rgba(122, 138, 255, .25), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(217, 70, 239, .14), transparent 70%),
    linear-gradient(180deg, #171b3d 0%, #1f2452 100%);
  --deep-text: #dfe3f3;
  --deep-head: #fff;
  --deep-link: #c7d2fe;
  --deep-link-hover: #fff;
  /* "Buy a lifetime license" box: bright sunset gold, dark text */
  --buy-bg:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(150deg, #ffeeff 0%, #ffffee 55%, #ffffaa 100%);
  --buy-edge: rgba(176, 96, 24, .22);
  --buy-shadow: rgba(240, 140, 60, .3);
  --buy-text: #2b2118;
  --buy-strong: #160f08;
  --buy-muted: #4a3524;
  --buy-link: #7d0f39;
  --buy-link-hover: #160f08;
}
/* dark mode: <html data-theme="dark">, set by assets/theme.js (loaded in each page's <head>) from the
   visitor's choice with the sun/moon button, else from the system setting */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --bg-alt: #0d0d11;
  --surface: rgba(24, 24, 27, .6);
  --surface-2: rgba(0, 0, 0, .28);
  --edge: rgba(255, 255, 255, .08);
  --edge-strong: rgba(255, 255, 255, .14);
  --shadow: none;
  --text: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #80808c;
  --strong: #fff;
  --accent: #8b93fb;
  --accent-hover: #c7d2fe;
  --accent-soft: rgba(99, 102, 241, .12);
  --accent-edge: rgba(129, 140, 248, .28);
  --ghost-text: #c7d2fe;
  --question: #e0e7ff;
  --glow-a: .13;
  --header-bg: rgba(9, 9, 11, .78);
  --header-edge: rgba(255, 255, 255, .06);
  --nav: #a1a1aa;
  --nav-hover: #fff;
  --nav-hover-bg: rgba(255, 255, 255, .06);
  --menu-bg: #18181b;
  --hover-bg: rgba(129, 140, 248, .12);
  --green-text: #4ade80;
  --green-soft: rgba(34, 197, 94, .08);
  --green-edge: rgba(34, 197, 94, .28);
  --amber-text: #fbbf24;
  --amber-soft: rgba(245, 158, 11, .07);
  --amber-edge: rgba(245, 158, 11, .25);
  --title-grad: linear-gradient(100deg, #fff 25%, #c7d2fe 65%, #67e8f9 100%);
  --sec-alt: #0e0e12;
  --hero-bg:
    radial-gradient(45% 60% at 20% 0%, rgba(99, 102, 241, .2), transparent 70%),
    radial-gradient(40% 55% at 85% 15%, rgba(6, 182, 212, .1), transparent 70%),
    linear-gradient(180deg, #0f0f1f 0%, var(--bg) 100%);
  --deep-bg:
    radial-gradient(50% 70% at 100% 0%, rgba(99, 102, 241, .16), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(217, 70, 239, .08), transparent 70%),
    #0b0b10;
  --deep-text: #d4d4d8;
  --deep-head: #fff;
  --deep-link: #a5b4fc;
  --deep-link-hover: #fff;
  /* dark mode: the "Buy" box turns indigo/violet, as on keypressosd.com */
  --buy-bg:
    radial-gradient(70% 60% at 100% 0%, rgba(168, 85, 247, .22), transparent 70%),
    linear-gradient(150deg, rgba(49, 46, 129, .55) 0%, rgba(24, 24, 27, .7) 100%);
  --buy-edge: rgba(129, 140, 248, .3);
  --buy-shadow: rgba(79, 70, 229, .25);
  --buy-text: #d4d4d8;
  --buy-strong: #fff;
  --buy-muted: #a1a1aa;
  --buy-link: #c7d2fe;
  --buy-link-hover: #fff;
}

/* icons (Lucide-style strokes), used as masks so they take the text color:
   class="i-name" sets --i, which buttons, badges, tiles and links paint with */
:root {
  --ico-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E");
  --ico-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --ico-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --ico-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --ico-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  --ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E");
  --ico-github: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.4 5.4 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4'/%3E%3Cpath d='M9 18c-4.51 2-5-2-7-2'/%3E%3C/svg%3E");
  --ico-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  --ico-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m10 8 6 4-6 4Z'/%3E%3C/svg%3E");
  --ico-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.8 10A10 10 0 1 1 17 3.34'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
  --ico-monitor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3C/svg%3E");
  --ico-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ico-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --ico-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
  --ico-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
  --ico-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
  --ico-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --ico-keyboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 8h.01'/%3E%3Cpath d='M12 12h.01'/%3E%3Cpath d='M14 8h.01'/%3E%3Cpath d='M16 12h.01'/%3E%3Cpath d='M18 8h.01'/%3E%3Cpath d='M6 8h.01'/%3E%3Cpath d='M7 16h10'/%3E%3Cpath d='M8 12h.01'/%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3C/svg%3E");
  --ico-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --ico-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
  --ico-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
}
.i-download {
  --i: var(--ico-download);
}
.i-cart {
  --i: var(--ico-cart);
}
.i-arrow {
  --i: var(--ico-arrow);
}
.i-chevron {
  --i: var(--ico-chevron);
}
.i-chevron-right {
  --i: var(--ico-chevron-right);
}
.i-user {
  --i: var(--ico-user);
}
.i-chat {
  --i: var(--ico-chat);
}
.i-github {
  --i: var(--ico-github);
}
.i-store {
  --i: var(--ico-store);
}
.i-play {
  --i: var(--ico-play);
}
.i-link {
  --i: var(--ico-link);
}
.i-check {
  --i: var(--ico-check);
}
.i-monitor {
  --i: var(--ico-monitor);
}
.i-eye {
  --i: var(--ico-eye);
}
.i-shield {
  --i: var(--ico-shield);
}
.i-heart {
  --i: var(--ico-heart);
}
.i-facebook {
  --i: var(--ico-facebook);
}
.i-globe {
  --i: var(--ico-globe);
}
.i-alert {
  --i: var(--ico-alert);
}
.i-keyboard {
  --i: var(--ico-keyboard);
}
.i-help {
  --i: var(--ico-help);
}

/* ═════════════ Base ═════════════ */
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
a:hover {
  color: var(--accent-hover);
}
main p a:hover, main li a:hover {
  text-decoration: underline 1.5px;
  text-underline-offset: .2em;
}
h1, h2, h3, h4 {
  margin: 0 0 .75rem;
  color: var(--strong);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.1rem;
}
p, ul {
  margin: 0 0 1rem;
}
li > ul {
  margin: 0;
}
strong, b {
  color: var(--strong);
  font-weight: 700;
}
a strong, a b {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: rgba(99, 102, 241, .3);
}

/* ═════════════ Header: slim, sticky, frosted glass ═════════════
   layout: icon | title over motto | menu | dark/light button */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px max(24px, calc((100% - 1232px) / 2));
  border-bottom: 1px solid var(--header-edge);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
}
.logo {
  grid-area: 1 / 1 / 3 / 2;
  transition: opacity .2s;
}
.logo img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.brand, .brand:hover {
  color: var(--strong);
}
.brand {
  grid-area: 1 / 2;
  align-self: end;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  white-space: nowrap;
  transition: opacity .2s;
}
header p {
  grid-area: 2 / 2;
  align-self: start;
  margin: 0;
  color: var(--faint);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo:hover, .brand:hover {
  opacity: .75;
}
header nav {
  grid-area: 1 / 3 / 3 / 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
header nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--nav);
  font-size: .95rem;
  font-weight: 500;
  transition: color .15s, background-color .15s;
}
header nav a:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-hover);
}
/* current page: thin accent underline (desktop), accent bar (mobile menu) */
header nav a[aria-current="page"] {
  color: var(--strong);
  text-decoration: underline 2px var(--accent);
  text-underline-offset: 7px;
}
/* "Download" is an action, not a page: the accent color and a faint outline set it apart */
header nav .nav-dl {
  color: var(--accent);
  border: 2px solid rgba(128, 128, 128, 0.2);
}
header nav .nav-dl:hover {
  color: var(--accent-hover);
}

/* dark/light mode button after the menu (toggled by assets/theme.js): a sun in light mode, a moon in dark mode */
.theme-btn {
  grid-area: 1 / 4 / 3 / 5;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nav);
  cursor: pointer;
  transition: color .15s, background-color .15s;
}
.theme-btn:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-hover);
}
/* both icons sit on top of each other; the one not in use turns away and shrinks to nothing */
.theme-btn::before, .theme-btn::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: currentColor;
  -webkit-mask: var(--ico-sun) center / contain no-repeat;
  mask: var(--ico-sun) center / contain no-repeat;
}
.theme-btn::after {
  -webkit-mask-image: var(--ico-moon);
  mask-image: var(--ico-moon);
}
[data-theme="dark"] .theme-btn::before {
  opacity: 0;
  transform: rotate(90deg) scale(.3);
}
[data-theme="light"] .theme-btn::after {
  opacity: 0;
  transform: rotate(-90deg) scale(.3);
}
@media (prefers-reduced-motion: no-preference) {
  .theme-btn::before, .theme-btn::after {
    transition: opacity .3s, transform .45s cubic-bezier(.5, 1.6, .5, 1);
  }
}
/* without JavaScript the button can't do anything, so it stays hidden */
:root:not([data-theme]) .theme-btn {
  display: none;
}

/* hamburger button (shown on narrow screens only, toggled by assets/site.js) */
.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--strong);
  cursor: pointer;
}
.menu-btn:hover {
  background: var(--nav-hover-bg);
}
.menu-btn::before, .menu-btn::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s;
}
.menu-btn::before {
  top: 15px;
  box-shadow: 0 7px 0 currentColor;
}
.menu-btn::after {
  top: 29px;
}
.open .menu-btn::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}
.open .menu-btn::after {
  top: 21px;
  transform: rotate(-45deg);
}

/* ═════════════ Footer ═════════════ */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 104px;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--edge);
  color: var(--faint);
  font-size: .9rem;
  text-align: center;
}
footer p {
  margin: 0;
}
.foot-brand, .foot-brand:hover {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}
.foot-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  opacity: .6;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
}
.foot-brand:hover img {
  opacity: 1;
  filter: none;
}

/* ═════════════ Inner pages: <main class="page …"> ═════════════ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* a soft colored glow behind the page title; each page has its own color (--glow) */
main.page {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  --glow: 99 102 241;
}
main.page::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -160px;
  left: 50%;
  width: min(1000px, 100%);
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--glow) / var(--glow-a)), transparent);
  pointer-events: none;
}
main.buy-page {
  --glow: 16 185 129;
}
main.features-page {
  --glow: 139 92 246;
}
main.virus-page {
  --glow: 245 158 11;
}
main.about-page {
  --glow: 217 70 239;
}
main.contact-page {
  --glow: 6 182 212;
}

/* page title, with a one-line summary and a hairline under it */
.page-head {
  margin: 0 0 48px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--edge);
}
.page-head h1 {
  margin: 0 0 .9rem;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.sub {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.55;
}
/* small pill links under the title (FAQ categories) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem 0 0;
}
.chips a {
  padding: 6px 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.chips a:hover {
  border-color: var(--accent-edge);
  color: var(--accent);
  text-decoration: none;
}

/* cards */
.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card > :last-child {
  margin-bottom: 0;
}
.card h2 {
  font-size: 1.5rem;
}
/* numbered badge, e.g. 01 */
.num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 0 16px;
  border: 1px solid var(--accent-edge);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 .95rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}
/* icon badge: <span class="badge i-name"> */
.badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 18px;
  border: 1px solid var(--accent-edge);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
/* an inset box inside a card */
.inset {
  padding: 16px 18px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--surface-2);
}
.small {
  color: var(--muted);
  font-size: .95rem;
}
/* corner ribbon, e.g. 70% OFF */
.ribbon {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 5px 12px;
  border-radius: 0 18px 0 12px;
  background: #7c3aed;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

/* ═════════════ Buttons ═════════════ */
.btn, .btn:hover {
  color: #fff;
  text-decoration: none;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  width: 100%;
  min-height: 56px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #4f46e5;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .8);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover {
  background: #4338ca;
  box-shadow: 0 14px 28px -12px rgba(79, 70, 229, .9);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn.buy {
  background: var(--green);
  box-shadow: 0 10px 24px -12px rgba(21, 128, 61, .9);
}
.btn.buy:hover {
  background: var(--green-hover);
  box-shadow: 0 14px 28px -12px rgba(21, 128, 61, 1);
}
.btn.ghost, .btn.ghost:hover {
  color: var(--ghost-text);
}
.btn.ghost {
  border-color: var(--accent-edge);
  background: var(--accent-soft);
  box-shadow: none;
  font-weight: 600;
}
.btn.ghost:hover {
  border-color: var(--accent);
  background: var(--hover-bg);
  box-shadow: none;
}
.btn.xl {
  min-height: 64px;
  font-size: 1.2rem;
}
.btn.fit {
  width: fit-content;
}
/* a standout button: indigo to violet, e.g. "See the feature highlights" on the features page */
.btn.fancy {
  padding-inline: 32px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 16px 34px -14px rgba(124, 58, 237, .95);
}
.btn.fancy:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 20px 40px -14px rgba(124, 58, 237, 1);
}
/* icon after the label, nudging right on hover */
.btn.icon-end {
  flex-direction: row-reverse;
}
.btn.icon-end::before {
  transition: transform .15s;
}
.btn.icon-end:hover::before {
  transform: translateX(4px);
}
.page-head .btn {
  margin-top: 1.75rem;
}
.btn::before, .link-row::before {
  content: none;
}
.btn[class*="i-"]::before, .link-row[class*="i-"]::before {
  content: "";
  flex: none;
  width: 1.2em;
  height: 1.2em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
/* a column of buttons */
.stack {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0;
}
/* small arrow link under the buttons */
.link-row {
  display: flex;
  align-items: flex-start;
  gap: .55em;
  padding: 4px 2px;
  font-size: .98rem;
  line-height: 1.4;
}
.link-row::before {
  margin-top: .1em;
}
.link-row:hover {
  text-decoration: underline 1.5px;
  text-underline-offset: .2em;
}

/* ═════════════ Buy page ═════════════ */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.card.offer {
  border-color: var(--green-edge);
  background:
    radial-gradient(80% 50% at 100% 0%, var(--green-soft), transparent 70%),
    var(--surface);
}
.card.offer .ribbon {
  background: var(--green);
}
.card.offer h2 {
  padding-right: 70px;
}
.prices {
  display: grid;
  gap: 10px;
  margin: .25rem 0 1rem;
  padding: 0;
  list-style: none;
}
.prices li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}
.prices b {
  min-width: 3.4em;
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.prices li:first-child {
  border-color: var(--green-edge);
  background: var(--green-soft);
  color: var(--text);
}
.prices li:first-child b {
  color: var(--green-text);
  font-size: 2rem;
}
.label {
  margin-bottom: .5rem;
  font-weight: 700;
}
.news {
  margin: 0 0 1rem;
}
.news p {
  font-size: .98rem;
}
.news p:last-child {
  margin: 0;
}
.help {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--edge);
  color: var(--question);
}

/* ═════════════ Features page ═════════════ */
.side-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}
.card.feat-list {
  padding: 36px 36px 28px;
}
.features {
  margin: 0;
  padding: 0;
  list-style: none;
}
.features > li {
  position: relative;
  margin: 0 0 1.05rem;
  padding-left: 28px;
  line-height: 1.6;
}
/* dots: indigo for the headline features (those with a bold title), gray for the others */
.features > li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.features > li:has(> strong)::before {
  background: #6366f1;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.features li > ul {
  margin: .55rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  list-style: circle;
}
.features li li {
  margin: 0 0 .4rem;
  padding-left: .2rem;
}
.features li li::marker {
  color: var(--accent);
}
aside.buy-box {
  display: grid;
  gap: 12px;
}
@media (min-height: 1050px) {
  aside.buy-box {
    position: sticky;
    top: 96px;
  }
}
/* the poster, in a frame with a gradient edge */
.poster {
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(99, 102, 241, .5), var(--edge) 40%, var(--edge) 60%, rgba(217, 70, 239, .4));
  box-shadow: 0 30px 60px -30px rgba(79, 70, 229, .55);
}
.poster img {
  display: block;
  width: 100%;
  border-radius: 15px;
}
.video-link, .video-link:hover {
  text-decoration: none;
}
.video-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface);
  color: var(--strong);
  font-weight: 700;
  line-height: 1.3;
  transition: border-color .15s;
}
.video-link::before {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dc2626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 5.5v13l10.5-6.5z' fill='white'/%3E%3C/svg%3E") 55% 50% / 20px no-repeat;
  box-shadow: 0 6px 16px -6px rgba(220, 38, 38, .7);
}
.video-link:hover {
  border-color: var(--accent-edge);
  color: var(--accent);
}

/* ═════════════ FAQ: each question is a <details> card that opens its answer in place ═════════════ */
.faq section + section {
  margin-top: 56px;
}
.faq h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 1.5rem;
}
.faq h2::before {
  content: "";
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
#general-answers h2 {
  --i: var(--ico-help);
}
#typing-answers h2 {
  --i: var(--ico-keyboard);
}
.faq details {
  margin: 0 0 12px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .15s;
}
.faq details[open] {
  border-color: var(--accent-edge);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: var(--question);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--faint);
  -webkit-mask: var(--ico-chevron) center / contain no-repeat;
  mask: var(--ico-chevron) center / contain no-repeat;
  transition: transform .2s, background-color .15s;
}
.faq details[open] > summary::after {
  background: var(--accent);
  transform: rotate(180deg);
}
.faq summary:hover {
  background: var(--hover-bg);
  color: var(--accent);
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.answer {
  padding: 4px 22px 20px;
}
.answer p, .answer ul, .answer h4 {
  max-width: 80ch;
}
.answer h4 {
  margin: .25rem 0 .6rem;
  font-size: 1.05rem;
}
.answer > :last-child {
  margin-bottom: 0;
}
/* closing card: a Discord button for further questions */
.faq-more {
  padding: 40px 32px;
  border-color: var(--accent-edge);
  background:
    radial-gradient(70% 90% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  text-align: center;
}
.faq .faq-more h2 {
  display: block;
  margin-bottom: .6rem;
  color: var(--strong);
}
/* the chat icon sits inline, so it wraps with the heading on narrow screens */
.faq .faq-more h2::before {
  display: inline-block;
  margin-right: .45em;
  background: var(--accent);
  vertical-align: -.2em;
}
.faq-more p {
  margin: 0 auto;
  color: var(--muted);
}
.faq-more .btn {
  margin: 1.5rem auto 0;
}

/* ═════════════ Virus warnings page ═════════════ */
.callout {
  margin: 0 0 28px;
  padding: 36px 40px;
  border-color: var(--amber-edge);
  background:
    radial-gradient(70% 90% at 50% 0%, var(--amber-soft), transparent 70%),
    var(--surface);
  text-align: center;
}
.callout .big {
  margin: 0 auto .75rem;
  color: var(--strong);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}
.callout p {
  max-width: 62ch;
  margin-inline: auto;
}
.hl {
  color: var(--amber-text);
}
.safety {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.safety > .card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-content: start;
  transition: border-color .2s;
}
.safety > .card > * {
  grid-column: 1 / -1;
}
.safety > .card > .num {
  grid-column: 1;
  margin: 0;
}
.safety > .card > .num + h2 {
  grid-column: 2;
  align-self: center;
  margin: 0;
}
.safety > .card > .num + h2 + * {
  margin-top: 1.1rem;
}
.safety > .wide p {
  max-width: 85ch;
}
.safety > .card:hover {
  border-color: var(--accent-edge);
}
.safety > .wide {
  grid-column: 1 / -1;
}
.safety h2 {
  font-size: 1.35rem;
}
/* "How to get past the warning": one row per situation */
.steps {
  display: grid;
  gap: 10px;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 14px 18px 14px 52px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--surface-2);
}
.steps li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  -webkit-mask: var(--ico-check) center / contain no-repeat;
  mask: var(--ico-check) center / contain no-repeat;
}
.steps li > strong:first-child {
  display: block;
  margin-bottom: 2px;
}
.card.trust {
  border-color: var(--accent-edge);
  background:
    radial-gradient(60% 80% at 0% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}
.closing-note {
  text-align: center;
}
.closing-note p {
  max-width: 62ch;
  margin-inline: auto;
}
.signature {
  color: var(--muted);
  font-style: italic;
}

/* ═════════════ About page ═════════════ */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.person {
  display: flex;
  flex-direction: column;
}
.person h2 {
  margin: 0 0 .2rem;
  font-size: 1.6rem;
}
.role {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font: 600 .95rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.person .photo {
  display: block;
  width: 100%;
  margin: auto 0 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--edge);
  border-radius: 14px;
}
.person .photo.top {
  object-position: 50% 28%;
}
.person .btn {
  flex: none;
}

/* ═════════════ Contact page ═════════════ */
.contact-top {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: stretch;
  margin: 0 0 28px;
}
.contact-top .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.15rem;
}
.contact-top .photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border: 1px solid var(--edge);
  border-radius: 18px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  display: block;
  padding: 26px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  transition: border-color .15s, transform .15s;
}
.tile:hover {
  border-color: var(--accent-edge);
  color: var(--muted);
  transform: translateY(-2px);
}
.tile b {
  display: block;
  margin: 0 0 4px;
  color: var(--strong);
  font-size: 1.15rem;
}
/* arrow in the corner, nudges right on hover */
.tile::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 26px;
  width: 20px;
  height: 20px;
  background: var(--faint);
  -webkit-mask: var(--ico-arrow) center / contain no-repeat;
  mask: var(--ico-arrow) center / contain no-repeat;
  transition: transform .15s, background-color .15s;
}
.tile:hover::after {
  background: var(--accent);
  transform: translateX(4px);
}
.tile:hover b {
  color: var(--accent);
}
.tile small {
  display: block;
  font-size: .98rem;
  line-height: 1.45;
}

/* ═════════════ Home page (main.home) ═════════════ */
main.home {
  max-width: none;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}
.home > section {
  padding: 88px max(24px, calc((100% - 1200px) / 2));
}
.home > section + section {
  border-top: 1px solid var(--edge);
}
.home + footer {
  margin-top: 0;
}
.home h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 1.1rem + 1.9vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.home h3 {
  margin: 1rem 0 .4rem;
  font-size: 1.25rem;
  line-height: 1.3;
}
.home p {
  max-width: 68ch;
}
.home .band > h2, .home > .get > h2, .highlights > p {
  text-align: center;
}

/* hero: centered, with a gradient headline. The headline is typed once on load by
   assets/site.js, like the OSD typing mode */
.home > .hero {
  padding-top: 96px;
  padding-bottom: 48px;
  background: var(--hero-bg);
  text-align: center;
}
.osd-title {
  position: relative;
  margin: 0 auto 1.6rem;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.3rem, .9rem + 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.osd-title::after, .caret {
  content: "";
  display: inline-block;
  width: .07em;
  height: .9em;
  margin-left: .06em;
  border-radius: 1px;
  background: #6366f1;
  vertical-align: -.08em;
}
.osd-title.typing {
  background: none;
}
.osd-title.typing::after {
  display: none;
}
.typed {
  position: absolute;
  inset: 0;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .osd-title::after {
    animation: blink 1.1s steps(1) infinite;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.home .lead {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1.6;
}
.lead strong {
  color: var(--strong);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin: 2.2rem 0 1.6rem;
}
.home .facts {
  display: inline-block;
  margin: 0;
  padding: 6px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .95rem;
  max-width: none;
}

/* hero: "Download free trial" opens a floating menu with the download options
   (<details>, so it works without JavaScript; assets/site.js closes it on an outside click or Esc) */
.dl {
  position: relative;
  text-align: left;
}
.dl > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.dl > summary::-webkit-details-marker {
  display: none;
}
.dl > summary::after {
  content: "";
  display: inline-block;
  width: .42em;
  height: .42em;
  margin-left: .7em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-.22em) rotate(45deg);
  transition: transform .15s;
}
.dl[open] > summary::after {
  transform: translateY(.08em) rotate(-135deg);
}
.dl-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 12px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(88vw, 360px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--edge-strong);
  border-radius: 14px;
  background: var(--menu-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.dl-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--text);
  line-height: 1.3;
}
.dl-menu a:hover {
  background: var(--hover-bg);
  color: var(--text);
  text-decoration: none;
}
.dl-menu a:hover b {
  color: var(--accent);
}
.dl-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.dl-menu b {
  display: block;
  color: var(--strong);
  font-weight: 700;
}
.dl-menu span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}
@media (prefers-reduced-motion: no-preference) {
  .dl[open] .dl-menu {
    animation: drop .14s ease-out;
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* buttons drawn as keycaps: they lift and light up on hover, and press down when clicked */
.key, .key:hover {
  text-decoration: none;
}
.key {
  display: inline-block;
  padding: .75em 1.3em .8em;
  border: 1px solid #aab0ba;
  border-radius: 12px;
  background: #e7e9ed;
  box-shadow: 0 4px 0 #8d94a0;
  color: #1d1f24;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .12s, box-shadow .12s, background-color .15s, border-color .15s;
}
.key:hover {
  transform: translateY(-2px);
  border-color: #8d94a0;
  background: #fff;
  box-shadow: 0 6px 0 #8d94a0, 0 10px 24px rgba(0, 0, 0, .3);
  color: #1d1f24;
}
.key:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #8d94a0;
}
.key:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.key.primary {
  border-color: #4338ca;
  background: #4f46e5;
  box-shadow: 0 4px 0 #312e81;
  color: #fff;
}
.key.primary:hover, .dl[open] > .key.primary {
  border-color: #6366f1;
  background: #5b54f0;
}
.key.primary:hover {
  box-shadow: 0 6px 0 #312e81, 0 12px 28px rgba(79, 70, 229, .5);
}
.key.primary:active {
  box-shadow: 0 1px 0 #312e81;
}
.key.buy {
  border-color: #166534;
  background: var(--green);
  box-shadow: 0 4px 0 #14532d;
  color: #fff;
}
.key.buy:hover {
  border-color: #16a34a;
  background: #16a34a;
  box-shadow: 0 6px 0 #14532d, 0 12px 28px rgba(22, 163, 74, .45);
}
.key.buy:active {
  box-shadow: 0 1px 0 #14532d;
}
.key.primary:hover, .key.buy:hover {
  color: #fff;
}
/* keycap icons, as on the other pages' buttons: class="key … i-download" or "i-cart" */
.key[class*="i-"]::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: .55em;
  background: currentColor;
  vertical-align: -.22em;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

/* see it in action: a deep band, the video in a glowing frame */
.home > .action {
  padding-top: 48px;
  background: var(--deep-bg);
  color: var(--deep-text);
  border-top: 0;
}
.home > .action h2 {
  color: var(--deep-head);
}
.home > .action a {
  color: var(--deep-link);
}
.home > .action a:hover {
  color: var(--deep-link-hover);
}
.video {
  display: block;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin: 0 auto .6rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .03), 0 40px 80px -30px rgba(99, 102, 241, .55);
  color-scheme: light;
}
.home .note {
  max-width: 1000px;
  margin: 0 auto 2.4rem;
  font-size: 1rem;
  text-align: right;
}

/* screenshot slider (assets/site.js) */
.slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.track {
  display: flex;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 6px 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.track::-webkit-scrollbar {
  display: none;
}
.track a {
  position: relative;
  flex: 0 0 calc((100% - 42px) / 4);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #050507;
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: border-color .2s, transform .2s;
}
.track img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}
.track a:hover, .track a:focus-visible {
  border-color: #818cf8;
}
.track a:hover img, .track a:focus-visible img {
  transform: scale(1.06);
  filter: brightness(1.15);
}
.track:has(a:hover) a:not(:hover) img {
  opacity: .5;
}
.track a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.slider button, .lightbox button {
  border: 0;
  color: #fff;
  font: 32px/1 sans-serif;
  cursor: pointer;
}
.slider button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  transition: background-color .15s, border-color .15s;
}
.slider button:hover {
  border-color: #6366f1;
  background: #4f46e5;
}
@media (prefers-reduced-motion: no-preference) {
  .track {
    scroll-behavior: smooth;
  }
  .track img {
    transition: transform .25s, filter .25s, opacity .25s;
  }
}

/* full-size screenshot viewer */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
}
.lightbox::backdrop {
  background: rgba(5, 5, 8, .96);
}
.lightbox img {
  max-width: calc(100vw - 220px);
  max-height: calc(100vh - 70px);
  border-radius: 8px;
  cursor: zoom-out;
}
.lightbox p {
  margin: 0 0 16px;
  padding: 0 16px;
  text-align: center;
}
.lightbox button {
  position: fixed;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0 0 6px;
  border-radius: 50%;
  background: rgba(40, 40, 48, .8);
  font-size: 60px;
  transform: translateY(-50%);
}
.lightbox button:hover {
  background: #4f46e5;
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}
.lightbox .lb-close {
  top: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  padding: 0 0 4px;
  font-size: 44px;
  transform: none;
}

/* who it is for: two cards with an icon badge */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.pair > .card {
  padding: 36px;
}
.home .pair h2 {
  padding-right: 64px;
  font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2rem);
}
/* the icon sits in the top-right corner, next to the heading, so it takes no vertical space */
.pair .badge {
  position: absolute;
  top: 30px;
  right: 30px;
  margin: 0;
}
.ticks {
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  margin: 0 0 .6rem;
  padding-left: 32px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 21px;
  height: 21px;
  background: var(--accent);
  -webkit-mask: var(--ico-check) center / contain no-repeat;
  mask: var(--ico-check) center / contain no-repeat;
}
.home .anim {
  display: block;
  width: 100%;
  margin: .4rem 0 1.2rem;
  border-radius: 14px;
}

/* feature highlights: the animations, in cards */
.home > .highlights {
  background: var(--sec-alt);
}
.highlights > p {
  margin: -.5rem auto 3rem;
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery article {
  padding: 10px 10px 22px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.gallery article:hover {
  border-color: var(--accent-edge);
  transform: translateY(-3px);
}
.gallery img {
  display: block;
  width: 100%;
  border-radius: 11px;
}
.gallery h3 {
  margin: 1.1rem 14px .4rem;
}
.gallery p {
  margin: 0 14px;
  color: var(--muted);
  font-size: 1rem;
}
.closing {
  max-width: 760px;
  margin: 64px auto 0;
  text-align: center;
}
.closing h3 {
  font-size: 1.6rem;
}
.closing p {
  margin-inline: auto;
}
.closing .key {
  margin-top: .75rem;
}

/* download and buy */
.home > .get {
  padding-bottom: 62px;
  background:
    radial-gradient(45% 70% at 85% 40%, rgba(99, 102, 241, var(--glow-a)), transparent 70%),
    var(--bg);
}
.panels {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
.panel {
  position: relative;
  padding: 36px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel h3 {
  margin-top: 0;
  font-size: 1.6rem;
}
.panel.buy {
  border-color: var(--buy-edge);
  background: var(--buy-bg);
  box-shadow: 0 24px 50px -20px var(--buy-shadow);
  color: var(--buy-text);
}
.panel.buy h3, .panel.buy strong {
  color: var(--buy-strong);
}
.panel.buy .ribbon {
  border-radius: 0 20px 0 12px;
}
.panel.buy a:not(.key) {
  color: var(--buy-link);
}
.panel.buy a:not(.key):hover {
  color: var(--buy-link-hover);
}
.price span {
  margin-right: .15em;
  color: var(--buy-strong);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.panel.buy .small {
  color: var(--buy-muted);
}
.panel ul {
  padding-left: 1.2em;
  font-size: 1rem;
}
.panel li {
  margin: .3rem 0;
}
.panel .news {
  margin: 1.6rem 0 0;
  padding: 18px 20px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface-2);
}
.panel .news h4 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}
.panel .news p {
  font-size: 1rem;
}
.home .help {
  max-width: none;
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
  text-align: center;
}

/* closing band: two cards, the virus warning one in amber */
.home > .more {
  padding-top: 62px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--sec-alt);
}
.more > .card {
  padding: 36px;
}
.home .more h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
}
.more h2::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.more > .warn {
  border-color: var(--amber-edge);
  background:
    radial-gradient(70% 70% at 0% 0%, var(--amber-soft), transparent 70%),
    var(--surface);
}
.home .more .warn h2 {
  color: var(--amber-text);
}
.home .more .like h2 {
  color: var(--accent);
}
.more ul {
  padding-left: 1.2em;
}
.more li {
  margin: 0 0 .5rem;
}

/* ═════════════ Narrow screens ═════════════ */
@media (max-width: 1100px) {
  header nav a {
    padding-inline: 8px;
  }
}
@media (max-width: 980px) {
  header {
    grid-template-columns: auto 1fr auto auto;
  }
  .menu-btn {
    display: block;
    grid-area: 1 / 4 / 3 / 5;
  }
  /* dark/light button: stays in the bar, left of the hamburger, same size */
  .theme-btn {
    grid-area: 1 / 3 / 3 / 4;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  .theme-btn::before, .theme-btn::after {
    inset: 11px;
  }
  header nav {
    grid-area: 3 / 1 / 4 / 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--header-edge);
  }
  header:not(.open) nav {
    display: none;
  }
  header nav a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--header-edge);
    border-radius: 0;
  }
  header nav a[aria-current="page"] {
    padding-left: 14px;
    background: var(--nav-hover-bg);
    box-shadow: inset 3px 0 0 var(--accent);
    text-decoration: none;
  }
  /* one column whenever the hamburger menu is in use */
  .duo, .side-layout, .team, .contact-top, .pair, .home > .more, .panels {
    grid-template-columns: 1fr;
  }
  aside.buy-box {
    position: static;
    max-width: 520px;
  }
  .poster {
    max-width: 400px;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .track a {
    flex-basis: calc((100% - 28px) / 3);
  }
}
@media (max-width: 700px) {
  body {
    font-size: 16.5px;
  }
  main {
    padding-inline: 16px;
  }
  header {
    column-gap: 10px;
    padding-inline: 16px;
  }
  main.page {
    padding-top: 44px;
  }
  .page-head {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
  .sub {
    font-size: 1.12rem;
  }
  .card, .pair > .card, .more > .card, .panel {
    padding: 24px 20px;
  }
  .pair .badge {
    top: 20px;
    right: 18px;
    width: 40px;
    height: 40px;
  }
  .pair .badge::before {
    width: 21px;
    height: 21px;
  }
  .home .pair h2 {
    padding-right: 50px;
  }
  .card.feat-list {
    padding: 26px 20px 18px;
  }
  .callout {
    padding: 28px 20px;
  }
  .callout .big {
    font-size: 1.25rem;
  }
  .safety {
    grid-template-columns: 1fr;
  }
  .steps li {
    padding: 12px 14px 12px 44px;
  }
  .steps li::before {
    left: 14px;
    top: 15px;
  }
  .home > section {
    padding: 56px 16px;
  }
  .home > .hero {
    padding-top: 56px;
    padding-bottom: 32px;
  }
  .home > .action {
    padding-top: 28px;
  }
  .home > .get {
    padding-bottom: 39px;
  }
  .home > .more {
    padding-top: 39px;
  }
  .home .lead {
    font-size: 1.15rem;
  }
  .home .facts {
    border-radius: 14px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .track a {
    flex-basis: calc((100% - 14px) / 2);
  }
  .slider {
    gap: 6px;
  }
  .slider button {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }
  .lightbox img {
    max-width: 100vw;
  }
  .lightbox button {
    width: 52px;
    height: 52px;
    font-size: 44px;
  }
  .lightbox .lb-close {
    width: 48px;
    height: 48px;
    font-size: 38px;
  }
  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }
  .price span {
    font-size: 3rem;
  }
  footer {
    margin-top: 72px;
  }
}
@media (max-width: 420px) {
  header p {
    display: none;
  }
  .logo img {
    width: 38px;
    height: 38px;
  }
  .brand {
    align-self: center;
    grid-row: 1 / 3;
  }
}
