:root {
  color-scheme: light dark;
  --bg: #eeeef1; --panel: #ffffff; --ink: #1d1d20; --muted: #5d5e66; --line: #d4d5db; --link: #0058d0;
  --graphite: #2b2b2f;
  --red: #ff453a; --orange: #ff9f0a; --yellow: #ffd60a; --green: #30d158; --teal: #40c8e0;
  --blue: #0a84ff; --indigo: #5e5ce6; --purple: #bf5af2; --pink: #ff375f;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1b1e; --panel: #252529; --ink: #f2f2f4; --muted: #a3a4ad; --line: #37373d; --link: #6cb4ff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--round); letter-spacing: -0.02em; margin: 0; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 600 1.05rem var(--round); }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 620px) { .top nav a.opt { display: none; } }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 5rem); line-height: 1; font-weight: 700; max-width: 12ch; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 56ch; margin: 22px 0 0; color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 600; }
.avail { margin: 18px 0 0; font-weight: 600; }
.avail span { color: var(--muted); font-weight: 400; }

/* Demo */
.stage { margin-top: clamp(28px, 5vw, 52px); }
.screen {
  position: relative; container-type: size; aspect-ratio: 16 / 10; width: 100%; overflow: hidden;
  border-radius: clamp(10px, 1.8vw, 22px); border: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 30px 60px -30px rgba(20,20,40,.55);
  background:
    radial-gradient(60% 70% at 12% 18%, #ff7a59 0%, transparent 60%),
    radial-gradient(55% 65% at 88% 12%, #7a5cff 0%, transparent 62%),
    radial-gradient(70% 70% at 78% 92%, #12a6c9 0%, transparent 60%),
    radial-gradient(60% 60% at 18% 95%, #f2b632 0%, transparent 58%),
    #34406b;
  color: #fff; font-family: var(--text); user-select: none; -webkit-user-select: none;
}
@media (max-width: 640px) { .screen { aspect-ratio: 4 / 3; } }
.desk-note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 8cqw 12cqh;
  font: 600 clamp(13px, 2.4cqw, 22px)/1.35 var(--round); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.launcher { position: absolute; inset: 0; background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5);
  transition: opacity .22s ease-out, transform .22s ease-out, visibility 0s; }
.screen.closed .launcher { opacity: 0; transform: scale(1.08); visibility: hidden; transition: opacity .22s ease-out, transform .22s ease-out, visibility 0s .22s; }
.lp-main { position: absolute; inset: 0; transition: filter .2s ease-out, opacity .2s ease-out; }
.screen.in-folder .lp-main { filter: blur(10px); opacity: .35; pointer-events: none; }
.search { position: absolute; top: 6.5cqh; left: 50%; transform: translateX(-50%); width: clamp(120px, 24cqw, 260px);
  display: flex; align-items: center; gap: 6px; padding: 0 9px; height: clamp(20px, 5.4cqh, 32px);
  background: rgba(255,255,255,.16); border: .5px solid rgba(255,255,255,.3); border-radius: 9px; }
.search svg { width: 13px; height: 13px; flex: none; opacity: .75; }
.search input { all: unset; flex: 1; min-width: 0; color: #fff; font-size: clamp(11px, 1.5cqw, 15px); user-select: text; -webkit-user-select: text; }
.search input::placeholder { color: rgba(255,255,255,.65); }
.search:focus-within { border-color: rgba(255,255,255,.75); }
.pager { position: absolute; left: 0; right: 0; top: 19cqh; bottom: 24cqh; overflow: hidden; }
.track { display: flex; height: 100%; transition: transform .3s ease-in-out; }
.page { flex: 0 0 100%; height: 100%; padding: 0 10cqw; display: grid;
  grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); }
.screen { --icon: min(calc(80cqw / var(--cols) * .56), calc(57cqh / var(--rows) * .58)); }
.cell { all: unset; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: calc(var(--icon) * .12);
  min-width: 0; cursor: pointer; border-radius: 8px; }
.cell:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.tile { width: var(--icon); height: var(--icon); border-radius: 24%; display: grid; place-items: center; flex: none;
  font: 700 calc(var(--icon) * .46)/1 var(--round); color: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.22); transition: transform .12s ease-out; }
.cell:hover .tile, .cell:hover .fold { transform: scale(1.08); }
.cell.sel .tile { outline: calc(var(--icon) * .13) solid rgba(255,255,255,.28); }
.fold { width: calc(var(--icon) * .86); height: calc(var(--icon) * .86); margin: calc(var(--icon) * .07); border-radius: 24%; flex: none;
  background: rgba(255,255,255,.24); border: .5px solid rgba(255,255,255,.3); display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr); gap: calc(var(--icon) * .05); padding: calc(var(--icon) * .1); transition: transform .12s ease-out; }
.fold i { border-radius: 26%; }
.lbl { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: clamp(7px, calc(var(--icon) * .23), 13px); font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
@container (max-width: 560px) { .lbl { display: none; } }
.dots { position: absolute; left: 0; right: 0; bottom: 17cqh; display: flex; justify-content: center; gap: clamp(6px, 1.3cqw, 14px); }
.dots button { all: unset; width: clamp(5px, .8cqw, 8px); height: clamp(5px, .8cqw, 8px); border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.dots button[aria-current="true"] { background: rgba(255,255,255,.95); }
.dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.empty[hidden] { display: none; }
.empty { pointer-events: none; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(11px, 1.6cqw, 15px); opacity: .8; }
.folder-ov { position: absolute; inset: 0 0 12cqh 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; }
.screen.in-folder .folder-ov { display: flex; }
.folder-name { font: 500 clamp(13px, 2.6cqw, 28px) var(--text); }
.folder-box { display: grid; grid-template-columns: repeat(var(--fcols), calc(80cqw / var(--cols))); row-gap: 2cqh; padding: 3cqh 1.5cqw;
  background: rgba(255,255,255,.14); border: .5px solid rgba(255,255,255,.25); border-radius: clamp(10px, 2.4cqw, 28px); }
.folder-hint { font-size: clamp(8px, 1.15cqw, 12px); opacity: .6; }
.dock { position: absolute; left: 50%; bottom: 2.2cqh; transform: translateX(-50%); display: flex; gap: 1cqw; padding: 1cqh 1.1cqw;
  background: rgba(255,255,255,.22); border: .5px solid rgba(255,255,255,.3); border-radius: 2.2cqh;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.dock i { display: block; width: 6.4cqh; height: 6.4cqh; border-radius: 24%; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 18px; }
.keybtn { font: 600 1rem var(--round); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-bottom-width: 4px;
  border-radius: 10px; padding: 9px 18px 7px; cursor: pointer; min-width: 64px; }
.keybtn:active { border-bottom-width: 1px; transform: translateY(3px); }
.ctl { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.stepper { display: inline-flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { all: unset; width: 34px; height: 32px; text-align: center; cursor: pointer; font-weight: 700; color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.stepper output { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.demo-note { margin: 12px 0 0; color: var(--muted); font-size: .92rem; min-height: 1.5em; }

/* Sections */
section.block { padding: clamp(56px, 9vw, 112px) 0 0; }
.block h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.08; font-weight: 700; max-width: 20ch; }
.block > .wrap > p.intro { max-width: 60ch; color: var(--muted); margin: 16px 0 0; font-size: 1.08rem; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

.order { list-style: none; margin: 0; padding: 0; counter-reset: o; }
.order li { counter-increment: o; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.order li:last-child { border-bottom: 1px solid var(--line); }
.order li::before { content: counter(o); width: 44px; height: 44px; border-radius: 24%; display: grid; place-items: center;
  font: 700 1.25rem var(--round); color: #fff; background: var(--red); }
.order li:nth-child(2)::before { background: var(--orange); }
.order li:nth-child(3)::before { background: var(--green); }
.order b { display: block; font: 600 1.1rem var(--round); }
.order span { color: var(--muted); }
.after { margin: 18px 0 0; color: var(--muted); max-width: 60ch; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.facts div { padding: 20px 0; border-top: 1px solid var(--line); }
.facts dt { font: 600 1.12rem var(--round); }
.facts dd { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.block .facts, .block .keys, .block .order { margin-top: 32px; }
.cols .order { margin-top: 0; }

kbd { display: inline-block; font: 600 .86em var(--round); background: var(--panel); border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 7px; padding: 2px 8px 1px; white-space: nowrap; color: var(--ink); }
.shortcut-row { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 30px 0 0; }
.shortcut-row figure { margin: 0; }
.shortcut-row .caps { display: flex; gap: 6px; align-items: center; }
.shortcut-row kbd { font-size: 1.25rem; padding: 12px 18px 9px; border-radius: 12px; border-bottom-width: 5px; }
.shortcut-row figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 30ch; }

table.keys { width: 100%; border-collapse: collapse; }
.keys th, .keys td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
.keys tr:last-child th, .keys tr:last-child td { border-bottom: 1px solid var(--line); }
.keys th { font-weight: 400; width: 44%; padding-right: 20px; }
.keys td { color: var(--muted); }
@media (max-width: 560px) { .keys th, .keys td { display: block; width: auto; } .keys td { border-top: 0; padding-top: 0; } }

.price { background: var(--graphite); color: #f4f4f6; border-radius: clamp(16px, 3vw, 32px); padding: clamp(28px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }
.price h2 { max-width: 14ch; }
.price p { color: #c3c4cc; margin: 16px 0 0; max-width: 46ch; }
.price ul { list-style: none; margin: 0; padding: 0; }
.price li { padding: 14px 0 14px 34px; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.price li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.price li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 16px; border-radius: 24%; background: var(--teal); }
.price li:nth-child(2)::before { background: var(--blue); }
.price li:nth-child(3)::before { background: var(--indigo); }
.price li:nth-child(4)::before { background: var(--purple); }
.price li:nth-child(5)::before { background: var(--pink); }

.support p { max-width: 60ch; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font: 600 1.05rem var(--round); list-style-position: outside; }
details p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }
.faq { margin-top: 28px; }

footer.site { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: .92rem; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site p { margin: 10px 0 0; max-width: 78ch; }

/* Text pages */
.doc { max-width: 720px; padding-top: clamp(24px, 5vw, 56px); }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.doc .date { color: var(--muted); margin: 10px 0 28px; }
.doc ul { padding-left: 0; list-style: none; margin: 24px 0; }
.doc li { padding: 16px 0; border-top: 1px solid var(--line); }
.doc li:last-child { border-bottom: 1px solid var(--line); }
.doc li strong { display: block; font: 600 1.08rem var(--round); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .launcher, .track, .tile, .fold, .lp-main { transition: none !important; }
}
