:root {
  color-scheme:light;
  --chrome:linear-gradient(#f8f8fa,#ededf0);
  --chrome-ink:#5b5b60;
  --sidebar:#f5f7fa;
  --app-detail:#fff;
  --app-chrome:#f4f4f4;
  --app-muted:#666c75;
  --selected-secondary:#536278;
  --divider:#0000000d;
  --key-surface:linear-gradient(#fff,#f1f2f4);
  --key-shadow:inset 0 1px 0 #fff,0 1px 1px #00000026,0 4px 0 #d7d9de,0 5px 2px #00000020,0 8px 12px -6px #00000035;
  --key-pressed:linear-gradient(#ecf3ff,#dce9fc);
  --key-pressed-ink:#175fae;
  --key-pressed-shadow:inset 0 1px 2px #325c8b15,0 1px 0 #b7c9e0,0 2px 3px #00000020;
  --receipt:#f6f7f9;
  --receipt-ink:#41464e;
  --scroll-thumb:#97a0ad;
  --file-fill:#f7f8fa;
  --file-stroke:#a8b0bd;
  --file-ink:#68788c;

  --surface:#f5f5f7;
  --paper:#fff;
  --card:#edf0f4;
  --ink:#1d1d1f;
  --muted:#626268;
  --blue:#2e82ff;
  --blue-text:#1268e8;
  --selected:#c9dffd;
  --line:#dce1e8;
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB",sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  --shadow:0 2px 5px #00000018,0 18px 38px -14px #18202c50;
  --window-shadow:0 1px 3px #00000020,0 14px 32px -16px #1c273d40;
  --content:1320px;
}

:root[data-theme="dark"] {
  color-scheme:dark;
  --surface:#141518;
  --paper:#191a1d;
  --card:#2d3239;
  --ink:#f3f3f5;
  --muted:#b0b4bd;
  --blue:#69a8ff;
  --blue-text:#91bcff;
  --selected:#24466f;
  --selected-secondary:#b0b7c1;
  --line:#35383f;
  --chrome:linear-gradient(#2c2e33,#24262b);
  --chrome-ink:#d4d6dd;
  --sidebar:#202328;
  --app-detail:#202328;
  --app-chrome:#202328;
  --app-muted:#b0b7c1;
  --divider:#ffffff12;
  --shadow:0 0 0 1px #ffffff16,0 2px 5px #00000050,0 18px 38px -14px #000000bb;
  --window-shadow:0 0 0 1px #ffffff14,0 2px 4px #00000045,0 14px 32px -16px #000000bb;
  --key-surface:linear-gradient(#3d4047,#2e3036);
  --key-shadow:inset 0 1px 0 #ffffff18,0 1px 1px #00000060,0 4px 0 #1e2025,0 5px 2px #00000070,0 8px 12px -6px #00000080;
  --key-pressed:linear-gradient(#294a71,#233d5b);
  --key-pressed-ink:#c2dcff;
  --key-pressed-shadow:inset 0 1px 2px #00000025,0 1px 0 #152b45,0 2px 3px #00000065;
  --receipt:#303339;
  --receipt-ink:#d6dbe4;
  --scroll-thumb:#757e8d;
  --file-fill:#2d3239;
  --file-stroke:#939dab;
  --file-ink:#b0bfd2;
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme]) {
  color-scheme:dark;
  --surface:#141518;
  --paper:#191a1d;
  --card:#2d3239;
  --ink:#f3f3f5;
  --muted:#b0b4bd;
  --blue:#69a8ff;
  --blue-text:#91bcff;
  --selected:#24466f;
  --selected-secondary:#b0b7c1;
  --line:#35383f;
  --chrome:linear-gradient(#2c2e33,#24262b);
  --chrome-ink:#d4d6dd;
  --sidebar:#202328;
  --app-detail:#202328;
  --app-chrome:#202328;
  --app-muted:#b0b7c1;
  --divider:#ffffff12;
  --shadow:0 0 0 1px #ffffff16,0 2px 5px #00000050,0 18px 38px -14px #000000bb;
  --window-shadow:0 0 0 1px #ffffff14,0 2px 4px #00000045,0 14px 32px -16px #000000bb;
  --key-surface:linear-gradient(#3d4047,#2e3036);
  --key-shadow:inset 0 1px 0 #ffffff18,0 1px 1px #00000060,0 4px 0 #1e2025,0 5px 2px #00000070,0 8px 12px -6px #00000080;
  --key-pressed:linear-gradient(#294a71,#233d5b);
  --key-pressed-ink:#c2dcff;
  --key-pressed-shadow:inset 0 1px 2px #00000025,0 1px 0 #152b45,0 2px 3px #00000065;
  --receipt:#303339;
  --receipt-ink:#d6dbe4;
  --scroll-thumb:#757e8d;
  --file-fill:#2d3239;
  --file-stroke:#939dab;
  --file-ink:#b0bfd2;
  }
}

* {
  box-sizing:border-box;
}

[hidden] {
  display:none!important;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:100px;
}

body {
  margin:0;
  color:var(--ink);
  background:var(--surface);
  font-family:var(--font);
  font-weight:400;
  font-synthesis:none;
}

summary {
  font:inherit;
}

a,summary {
  -webkit-tap-highlight-color:transparent;
}

a {
  color:inherit;
  text-decoration:none;
}

a:focus-visible,summary:focus-visible {
  outline:none;
  background-color:var(--app-selected, var(--selected));
  text-decoration:underline;
  text-underline-offset:.2em;
}

summary {
  touch-action:manipulation;
}

img {
  display:block;
  max-width:100%;
  height:auto;
}

svg.icon {
  width:20px;
  height:20px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.svg-library {
  width:0;
  height:0;
  position:absolute;
  overflow:hidden;
}

.skip-link {
  position:fixed;
  left:16px;
  top:-80px;
  padding:12px 20px;
  background:var(--paper);
  z-index:100;
}

.skip-link:focus {
  top:16px;
}

.site-header {
  height:80px;
  position:absolute;
  inset:0 0 auto;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 4.5%;
  gap:20px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:600;
  letter-spacing:-.035em;
  white-space:nowrap;
}

.brand-symbol {
  width:30px;
  height:30px;
  object-fit:contain;
  border-radius:22%;
}

.site-header nav {
  display:flex;
  gap:34px;
  color:var(--muted);
  font-size:13px;
}

.site-header nav a {
  transition:color .2s;
}

.site-header nav a:hover {
  color:var(--blue-text);
}

.hero {
  min-height:780px;
  height:100svh;
  max-height:1100px;
  position:relative;
  display:grid;
  grid-template-columns:45% 55%;
  align-items:center;
  padding:136px 5% 100px;
  overflow:clip;
  isolation:isolate;
  background:var(--paper);
}

.hero-copy {
  z-index:2;
  align-self:center;
  padding-bottom:6px;
  max-width:560px;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:clamp(42px,4.5vw,68px);
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.035em;
  text-wrap:balance;
}

h1 span {
  color:var(--ink);
}

.hero-description {
  font-size:18px;
  line-height:1.85;
  color:var(--muted);
  margin-top:24px;
  letter-spacing:0;
  max-width:27em;
}

.key-deck {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:36px;
  width:fit-content;
  scroll-margin-top:170px;
  user-select:none;
}

.hero-download {
  margin-top:26px;
}

.download-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 25px;
  border-radius:999px;
  background:#0071e3;
  color:#fff;
  font-size:16px;
  font-weight:500;
  line-height:1.4;
  transition:background .2s;
}

.download-button:hover { background:#0077ed; }
.download-button:focus-visible { outline:3px solid var(--blue-text); outline-offset:4px; }
.download-button[aria-busy="true"] { cursor:progress; }
.hero-download p {
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

.held-keys {
  display:flex;
  gap:8px;
}

.keycap {
  width:56px;
  height:56px;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:left;
  border:0;
  border-radius:8px;
  background:var(--key-surface);
  box-shadow:var(--key-shadow);
  transition:transform .16s ease-out,box-shadow .16s ease-out,color .16s ease-out;
  align-items:center;
}

.keycap.pressed {
  background:var(--key-pressed);
  color:var(--key-pressed-ink);
  transform:translateY(3px);
  box-shadow:var(--key-pressed-shadow);
}

.key-symbol {
  font-size:24px;
  font-weight:500;
  line-height:1;
}

.key-join {
  font-size:18px;
  color:var(--muted);
  padding:0 2px;
}

.shift-key {
  user-select:none;
}

.key-instruction {
  font-size:12px;
  margin-top:23px;
  color:var(--muted);
  min-height:21px;
  line-height:1.6;
}

.demo-stage {
  position:relative;
  width:100%;
  height:520px;
  max-width:760px;
  isolation:isolate;
  transform:translateY(10px);
  pointer-events:none;
}

.writing-window {
  position:absolute;
  left:0;
  right:0;
  top:17%;
  height:370px;
  transform:none;
  border-radius:12px;
  background:var(--paper);
  box-shadow:var(--window-shadow);
  transition:none;
  overflow:hidden;
}

.window-topline {
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 17px;
  color:var(--chrome-ink);
  font-size:12px;
  border-bottom:1px solid var(--divider);
  background:var(--chrome);
}

.traffic-lights {
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.traffic-lights i {
  display:block;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#d3dae3;
  box-shadow:inset 0 0 0 .5px #00000026;
}

.traffic-lights i:first-child {
  background:#ff5f57;
}

.traffic-lights i:nth-child(2) {
  background:#febc2e;
}

.traffic-lights i:nth-child(3) {
  background:#28c840;
}

.writing-content {
  padding:30px 36px;
}

.writing-content h2 {
  font-size:23px;
  font-weight:600;
  line-height:1.4;
  margin-top:11px;
}

.writing-content>p {
  font-size:13px;
  color:var(--muted);
  line-height:1.9;
  margin-top:17px;
}

.pasted-content {
  margin-top:18px;
  font-size:15px;
  min-height:30px;
  line-height:1.6;
  color:var(--ink);
  overflow-wrap:anywhere;
  display:flex;
  align-items:center;
  gap:6px;
}

.pasted-content img {
  width:240px;
  max-height:170px;
  object-fit:contain;
  object-position:left;
}

.caret {
  display:inline-block;
  width:2px;
  height:22px;
  background:var(--blue);
  animation:blink 1s steps(1) infinite;
}

.quick-popup {
  position:absolute;
  left:12%;
  top:1%;
  width:83%;
  max-width:440px;
  background:var(--sidebar);
  border-radius:14px;
  padding:0 10px;
  box-shadow:var(--shadow);
  transform:none;
  transition:transform .22s ease-out,opacity .18s ease-out;
  z-index:3;
}

.popup-heading {
  display:flex;
  justify-content:space-between;
  padding:17px 12px 13px;
  color:var(--muted);
  font-size:11px;
}

.popup-heading span:last-child {
  font-variant-numeric:tabular-nums;
}

.quick-list {
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:342px;
  overflow-y:auto;
  scrollbar-width:none;
  scrollbar-color:var(--scroll-thumb) transparent;
  padding:2px;
}

.quick-item {
  display:flex;
  align-items:center;
  min-height:56px;
  flex:none;
  width:100%;
  text-align:left;
  border:0;
  border-radius:10px;
  padding:12px 14px;
  background:var(--card);
  font-size:14px;
  line-height:1.5;
  overflow-wrap:anywhere;
  transition:background .16s ease-out;
}

.quick-item.selected {
  background:var(--selected);
}

.quick-item.quick-image {
  justify-content:center;
  height:119px;
  padding:9px;
}

.quick-image img {
  max-width:100%;
  height:100%;
  width:auto;
  object-fit:contain;
  border-radius:5px;
}

.sample-link {
  text-decoration:underline;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}

.popup-footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:13px 12px 15px;
  color:var(--muted);
  font-size:11px;
}

.paste-receipt {
  position:absolute;
  right:4%;
  top:68%;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--receipt);
  color:var(--receipt-ink);
  border-radius:9px;
  padding:8px 12px;
  font-size:12px;
  box-shadow:0 2px 7px #00000018;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .18s ease-out,transform .18s ease-out;
  z-index:4;
}

.paste-receipt .icon {
  width:16px;
  height:16px;
}

.demo-stage[data-phase="pasted"] .quick-popup {
  transform:translateY(-3px) scale(.99);
  opacity:0;
  pointer-events:none;
  filter:none;
}

.demo-stage[data-phase="pasted"] .paste-receipt {
  opacity:1;
  transform:translateY(0);
}

.demo-stage[data-phase="armed"] .quick-popup {
  opacity:0;
  transform:translateY(5px) scale(.99);
  pointer-events:none;
}

.history-story {
  height:auto;
  min-height:0;
  position:relative;
  background:var(--surface);
  --progress:0;
}

.history-sticky {
  position:relative;
  top:0;
  height:auto;
  min-height:0;
  max-height:none;
  padding:112px 5% 120px;
  overflow:clip;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:48px;
}

.history-heading {
  width:100%;
  max-width:1100px;
  display:block;
  justify-content:space-between;
  align-items:flex-end;
  padding:0;
  gap:40px;
  text-align:center;
}

.history-heading h2 {
  font-size:clamp(32px,3.5vw,50px);
  font-weight:600;
  line-height:1.22;
  letter-spacing:-.035em;
}
.history-heading p {
  font-size:17px;
  line-height:1.8;
  color:var(--muted);
  margin-top:18px;
}

.history-window {
  pointer-events:none;
  user-select:none;
  position:relative;
  --app-surface:var(--sidebar);
  --app-paper:var(--app-detail);
  --app-card:var(--card);
  --app-ink:var(--ink);
  --app-secondary:var(--app-muted);
  --app-selected:var(--selected);
  --app-selected-secondary:var(--selected-secondary);
  width:min(100%,1100px);
  height:auto;
  aspect-ratio:4 / 3;
  min-height:390px;
  flex:none;
  border-radius:12px;
  background:var(--app-paper);
  color:var(--app-ink);
  box-shadow:var(--window-shadow);
  overflow:hidden;
  transform:none;
  transform-origin:center;
  transition:background .3s,color .3s;
}

.history-cursor {
  position:absolute;
  top:0;
  left:0;
  width:28px;
  height:34px;
  pointer-events:none;
  z-index:5;
  opacity:0;
  transition:transform .7s var(--ease),opacity .2s;
}

.history-cursor.visible { opacity:1; }
.history-cursor svg {
  position:relative;
  width:100%;
  height:100%;
  fill:#202328;
  stroke:#fff;
  stroke-width:1.8;
  stroke-linejoin:round;
  filter:drop-shadow(0 2px 3px #0003);
  transform-origin:3px 2px;
  transition:transform .12s;
}
.history-cursor.clicking svg { transform:scale(.85); }

@media (prefers-reduced-motion:reduce) {
  .history-cursor { display:none; }
}

.app-titlebar {
  height:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 15px;
  background:var(--app-chrome);
  font-size:12px;
  font-weight:500;
}

.app-titlebar>.traffic-lights {
  width:58px;
}

.app-body {
  height:calc(100% - 32px);
  display:grid;
  grid-template-columns:39% 61%;
  background:var(--app-chrome);
}

.app-sidebar {
  background:var(--app-surface);
  padding:10px 8px;
  margin:0 0 8px 8px;
  border-radius:12px;
  overflow:auto;
  scrollbar-width:thin;
}

.sidebar-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 8px 8px;
  min-height:30px;
}

.sidebar-title strong {
  font-size:16px;
  font-weight:500;
}

.sidebar-actions { display:flex; align-items:center; gap:20px; }
.sidebar-actions .icon { width:18px; height:18px; }
.source-app-icon { width:14px; height:14px; flex:none; object-fit:contain; }
.source-label { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }

.demo-search {
  color:var(--app-secondary);
  margin:0 8px;
  font-size:13px;
  height:36px;
  display:flex;
  align-items:center;
  gap:9px;
  background:var(--app-card);
  padding:0 12px;
  border-radius:9px;
}

.demo-search>.icon {
  color:var(--app-secondary);
  width:16px;
}

.filter-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:var(--app-secondary);
  margin:8px 8px 7px;
}

.filter-bar>span:first-child {
  background:var(--app-card);
  border-radius:20px;
  padding:5px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:116px;
  height:28px;
  color:var(--app-ink);
}

.filter-bar .icon { width:12px; height:12px; }

.history-items {
  display:flex;
  flex-direction:column;
  gap:7px;
}

.history-item {
  border:0;
  text-align:left;
  border-radius:12px;
  background:var(--app-card);
  color:var(--app-ink);
  padding:22px 12px 8px;
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  flex:none;
  transition:background .2s;
}

.history-item.selected {
  background:var(--app-selected);
}

.item-title {
  font-size:13.5px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.item-meta {
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--app-secondary);
  gap:5px;
}

.history-item.selected .item-meta {
  color:var(--app-selected-secondary);
}

.item-meta>span {
  display:flex;
  align-items:center;
  gap:5px;
}

.item-meta .icon {
  height:12px;
  width:12px;
}

.history-image > img {
  height:132px;
  width:100%;
  object-fit:contain;
}

.history-image {
  gap:6px;
  padding-top:18px;
}

.app-detail {
  background:var(--app-paper);
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
}

.detail-meta {
  padding:20px 20px 12px;
  display:flex;
  justify-content:flex-end;
  gap:9px;
  font-size:12px;
  color:var(--app-secondary);
  align-items:center;
}

.detail-canvas {
  flex:1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:15px 30px;
  overflow:auto;
}

.preview-text {
  font-size:14px;
  font-weight:400;
  line-height:1.6;
  letter-spacing:-.025em;
}

.preview-link {
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:5px;
  overflow-wrap:anywhere;
  color:var(--app-ink);
}

.detail-canvas>img {
  height:100%;
  width:100%;
  object-fit:contain;
  border-radius:5px;
}

.detail-toolbar {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding:10px 16px;
  border-top:1px solid var(--app-card);
  font-size:11px;
  color:var(--app-secondary);
}

.reading-section {
  padding:112px 5% 120px;
  background:var(--paper);
}

.reading-heading {
  display:block;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  max-width:1100px;
  margin:0 auto 56px;
  text-align:center;
}

.reading-heading h2 {
  font-size:clamp(32px,3.5vw,50px);
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.035em;
}

.reading-grid {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:28px;
  max-width:1100px;
  margin:auto;
}

.reading-example {
  margin:0;
  min-width:0;
}

.reading-window {
  background:var(--app-detail);
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--window-shadow);
}

.reading-titlebar {
  height:32px;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--app-chrome);
  font-size:12px;
  font-weight:500;
}

.reading-meta {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
  padding:20px 20px 12px;
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
}

.reading-body {
  height:490px;
  position:relative;
  min-width:0;
}

.reading-text-scroll {
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:none;
  scroll-behavior:auto;
  overflow-anchor:none;
  border-radius:2px;
}

.reading-text-scroll::-webkit-scrollbar {
  display:none;
}

.reading-text-scroll:focus-visible {
  outline:none;
  background:var(--selected);
}

.reading-document {
  max-width:65ch;
  margin:auto;
  padding:8px 32px 28px;
  font-size:14px;
  line-height:1.65;
  overflow-wrap:anywhere;
}

.reading-document p+p {
  margin-top:22px;
}

.reading-scroll-track {
  position:absolute;
  top:10px;
  right:7px;
  bottom:10px;
  width:5px;
  border-radius:4px;
  background:var(--card);
  pointer-events:none;
}

.reading-scroll-track span {
  display:block;
  width:100%;
  min-height:28px;
  height:24%;
  background:var(--scroll-thumb);
  border-radius:4px;
}

.reading-image-canvas {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 28px 22px;
}

.reading-image-canvas img {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}

.reading-footer {
  height:63px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  padding:10px 16px;
  border-top:1px solid var(--card);
  color:var(--muted);
  font-size:11px;
}

.reading-copy {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 16px;
  height:42px;
  border-radius:24px;
  background:var(--selected);
  color:var(--ink);
  font-size:15px;
}

.reading-copy .icon {
  width:24px;
  height:24px;
}

.local-section {
  min-height:0;
  position:relative;
  display:block;
  grid-template-columns:1fr 1fr;
  align-items:center;
  padding:120px 6%;
  gap:70px;
  background:var(--surface);
  color:var(--ink);
  overflow:clip;
  text-align:center;
}

.local-copy h2 {
  font-size:clamp(32px,3.5vw,50px);
  font-weight:600;
  line-height:1.27;
  letter-spacing:-.035em;
}
.local-copy p {
  font-size:17px;
  line-height:1.9;
  color:var(--muted);
  margin-top:20px;
}

.questions {
  display:grid;
  grid-template-columns:1fr 1.6fr;
  max-width:var(--content);
  margin:auto;
  padding:100px 8%;
  gap:70px;
  background:var(--paper);
}

.questions h2 {
  font-size:34px;
  font-weight:600;
  letter-spacing:-.035em;
}

.question-list details {
  border-bottom:1px solid var(--line);
}

.question-list details:first-child {
  border-top:1px solid var(--line);
}

.question-list summary {
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  cursor:pointer;
  padding:24px 0;
  font-size:15px;
}

.question-list summary::-webkit-details-marker {
  display:none;
}

.question-list summary>.icon {
  width:17px;
  height:17px;
  color:var(--muted);
  transition:transform .3s;
}

.question-list details[open] summary>.icon {
  transform:rotate(180deg);
}

.question-list details p {
  font-size:14px;
  line-height:1.9;
  color:var(--muted);
  padding:0 30px 25px 0;
  max-width:65ch;
}

.site-footer {
  margin:0 4.5%;
  padding:28px 0 35px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.site-footer>.brand {
  font-size:18px;
}

.site-footer>.brand .brand-symbol {
  width:23px;
  height:23px;
}

.site-footer>a:last-child {
  font-size:11px;
  color:var(--muted);
}

.site-footer>a:last-child {
  display:flex;
  align-items:center;
  gap:8px;
}

.site-footer>a:last-child>.icon {
  transform:rotate(180deg);
  width:13px;
  height:13px;
}

.noscript-note {
  padding:20px;
  background:var(--paper);
  color:var(--ink);
  font-size:14px;
  text-align:center;
}

@keyframes blink {
  50% {
    opacity:0;
  }
}

@keyframes keytap {
  0%,100% {
    transform:translateY(0);
  }
  35% {
    transform:translateY(3px);
    background:var(--key-pressed);
    color:var(--key-pressed-ink);
  }
}

@keyframes inserted {
  from {
    opacity:0;
    transform:translateY(2px);
    filter:none;
  }
  to {
    opacity:1;
    transform:translateY(0);
    filter:none;
  }
}

.letter-key.tapping {
  animation:keytap .24s var(--ease);
}

.pasted-content.inserted {
  animation:inserted .22s var(--ease);
}

@media(min-width:1600px) {
  .hero {
    padding-left:max(5%,calc((100vw - 1440px)/2));
    padding-right:max(5%,calc((100vw - 1440px)/2));
  }
  .hero-copy {
    padding-left:0;
  }
  .demo-stage {
    height:570px;
  }
  .quick-popup {
    top:5%;
    width:72%;
    max-width:460px;
  }
  .quick-list {
    max-height:380px;
  }
  .quick-item {
    min-height:64px;
    font-size:14px;
  }
  .quick-item.quick-image {
    height:138px;
  }
  .writing-window {
    height:405px;
    top:9%;
  }
}

@media(max-width:1100px) {
  .hero {
    grid-template-columns:45% 55%;
    padding-left:4%;
    padding-right:4%;
  }
  .hero-copy h1 {
    font-size:45px;
  }
  .hero-description {
    font-size:14px;
  }
  .keycap {
    width:60px;
    height:66px;
    padding:9px;
  }
  .key-symbol {
    font-size:27px;
  }

  .key-deck {
    gap:8px;
  }
  .held-keys {
    gap:7px;
  }
  .demo-stage {
    height:495px;
  }
  .quick-popup {
    left:9%;
    width:89%;
  }
  .writing-window {
    left:0;
    top:8%;
  }
  .writing-content {
    padding:29px;
  }
  .writing-content h2 {
    font-size:20px;
  }

  .history-heading {
    gap:20px;
  }
  .history-heading p {
    font-size:12px;
  }
  .history-heading h2 {
    font-size:32px;
  }
  .questions {
    gap:50px;
    padding-left:7%;
    padding-right:7%;
  }
}

@media(max-width:760px) {
  html {
    scroll-padding-top:30px;
  }
  .site-header {
    height:74px;
    padding:0 6%;
  }
  .brand {
    font-size:20px;
    gap:8px;
  }
  .brand-symbol {
    width:27px;
    height:27px;
  }
  .site-header nav {
    display:none;
  }
  .hero {
    height:auto;
    max-height:none;
    min-height:100svh;
    grid-template-columns:1fr;
    padding:123px 6% 65px;
    gap:40px;
    overflow:clip;
  }
  .hero-copy {
    max-width:600px;
    width:100%;
    margin:auto;
    text-align:center;
  }
  .hero-copy h1 {
    font-size:clamp(37px,8.5vw,58px);
    line-height:1.24;
  }
  .hero-description {
    font-size:14px;
    line-height:1.8;
    margin-top:20px;
  }
  .hero-description br {
    display:none;
  }
  .key-deck {
    margin:29px auto 0;
    gap:9px;
    scroll-margin-top:90px;
  }
  .keycap {
    width:65px;
    height:69px;
  }
  .key-instruction {
    margin-top:20px;
  }

  .demo-stage {
    width:100%;
    max-width:550px;
    margin:0 auto;
    height:445px;
    transform:none;
  }
  .quick-popup {
    left:13%;
    width:80%;
    max-width:none;
    top:0;
  }
  .quick-list {
    max-height:298px;
  }
  .quick-item {
    min-height:47px;
    font-size:12px;
    padding:10px 12px;
  }
  .quick-item.quick-image {
    height:103px;
  }
  .popup-heading {
    padding:14px 10px 11px;
    font-size:11px;
  }
  .popup-footer {
    padding:12px 9px;
    font-size:11px;
  }
  .writing-window {
    top:7%;
    left:2%;
    right:1%;
    height:340px;
  }
  .writing-content {
    padding:24px;
  }
  .writing-content h2 {
    font-size:20px;
  }
  .writing-content>p {
    font-size:12px;
  }
  .paste-receipt {
    top:64%;
    right:2%;
  }

  .history-heading {
    padding:0 3px;
    display:block;
  }
  .history-heading h2 {
    font-size:32px;
  }
  .history-heading p {
    font-size:12px;
    margin-top:13px;
    line-height:1.7;
  }
  .history-heading p br {
    display:none;
  }
  .app-titlebar {
    height:34px;
  }
  .app-body {
    height:calc(100% - 34px);
    grid-template-columns:1fr;
    grid-template-rows:159px minmax(0,1fr);
  }
  .app-sidebar {
    padding:10px 12px;
    overflow:hidden;
  }
  .sidebar-title {
    display:none;
  }
  .sidebar-title strong {
    font-size:12px;
  }

  .demo-search {
    padding:0 10px;
    height:32px;
    gap:8px;
    border-radius:7px;
  }
  .demo-search>.icon {
    width:12px;
  }
  .filter-bar {
    display:none;
  }
  .filter-bar>span:first-child {
    padding:4px 7px;
  }
  .filter-bar>span:last-child {
    display:none;
  }
  .history-items {
    flex-direction:row;
    gap:8px;
    margin-top:10px;
    height:97px;
    overflow-x:auto;
    scrollbar-width:thin;
  }
  .history-item {
    padding:10px;
    gap:8px;
    border-radius:8px;
    width:148px;
    height:85px;
    justify-content:space-between;
  }
  .item-title {
    font-size:12px;
    line-height:1.45;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  .item-meta {
    font-size:11px;
  }
  .item-meta>span:last-child {
    display:none;
  }
  .item-meta>span:first-child {
    gap:4px;
  }
  .item-meta .icon {
    width:10px;
    height:10px;
  }
  .history-image > img {
    height:40px;
  }
  .detail-meta {
    padding:12px 16px;
    gap:12px;
    font-size:11px;
  }
  .detail-canvas {
    padding:10px 18px;
  }

  .preview-link {
    font-size:13px;
    line-height:1.8;
  }
  .detail-toolbar {
    padding:12px;
    justify-content:flex-end;
  }

  .local-copy {
    order:1;
    padding-top:30px;
  }
  .local-copy h2 {
    font-size:40px;
  }
  .local-copy p {
    font-size:13px;
    margin-top:23px;
  }

  .questions {
    grid-template-columns:1fr;
    padding:90px 8%;
    gap:32px;
  }
  .questions h2 {
    font-size:30px;
  }
  .question-list summary {
    font-size:13px;
    padding:22px 0;
  }
  .question-list details p {
    font-size:12px;
    padding-right:10px;
  }
  .site-footer {
    margin:0 6%;
    padding:24px 0 30px;
    flex-wrap:wrap;
    row-gap:20px;
  }
  .site-footer>.brand {
    font-size:17px;
  }
  .site-footer>a:last-child {
    font-size:11px;
  }
}

@media(max-width:370px) {
  .hero {
    padding-top:110px;
  }
  .hero-copy h1 {
    font-size:35px;
  }
  .hero-description {
    font-size:12px;
  }
  .keycap {
    width:56px;
    height:63px;
  }
  .key-deck {
    gap:6px;
  }
  .held-keys {
    gap:6px;
  }
  .key-symbol {
    font-size:25px;
  }
  .demo-stage {
    height:425px;
  }
  .quick-popup {
    left:6%;
    width:91%;
  }

  .history-heading h2 {
    font-size:28px;
  }

  .local-copy h2 {
    font-size:35px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
  }

  .demo-stage .quick-popup {
    filter:none;
  }
  .caret {
    opacity:1;
  }
}

@media(max-width:900px) {
  .reading-section { padding:85px 7%; }
  .reading-heading { display:block; margin-bottom:34px; }

  .reading-grid { grid-template-columns:1fr; gap:42px; max-width:620px; }
  .reading-heading { max-width:620px; }
}

@media(max-width:760px) {
  .reading-section { padding:80px 6%; }
  .reading-heading h2 { font-size:34px; }

  .reading-meta { padding:17px 16px 13px; font-size:11px; }
  .reading-body { height:410px; }
  .reading-document { padding:8px 22px 24px; font-size:14px; }
  .reading-document p+p { margin-top:20px; }
  .reading-image-canvas { padding:6px 20px 20px; }
}

::selection { background:var(--selected); color:var(--ink); }
@media(max-width:760px) {
  .hero { padding:120px 6% 64px; gap:48px; }
  .keycap { width:52px; height:52px; }
  .key-symbol { font-size:24px; }
  .demo-stage { height:410px; }
  .history-sticky { padding:72px 5%; gap:32px; }
  .history-window { aspect-ratio:auto; height:540px; min-height:0; transform:none; }
  .history-heading p { font-size:15px; }
  .reading-section { padding:72px 5%; }
  .reading-heading { margin-bottom:32px; }
  .local-section { padding:80px 6%; }
  .local-copy p { font-size:15px; }
}

.window-topline, .reading-titlebar, .app-titlebar {
  display:grid;
  grid-template-columns:1fr auto 1fr;
}
.window-topline > span:last-child, .reading-titlebar > span:last-child, .app-titlebar > span:last-child { grid-column:2; }

/* Product details share the native app's quiet hierarchy. */
#detail-date { white-space:nowrap; }
.preview-file { display:flex; align-items:flex-start; gap:12px; max-width:100%; text-align:left; }
.preview-file > div { min-width:0; }
.file-document { width:32px; height:32px; flex:none; margin:0; fill:var(--file-fill); stroke:var(--file-stroke); stroke-width:1.2; stroke-linejoin:round; }
.preview-file p { font-size:14px; font-weight:500; }
.preview-file span { display:block; overflow-wrap:anywhere; margin-top:6px; color:var(--app-muted); font-size:12px; }
@media(max-width:760px) {
  .hero-description { margin-left:auto; margin-right:auto; }
  .quick-popup { left:6%; width:91%; }
  .keycap { border-radius:8px; }
  .detail-toolbar { justify-content:flex-end; }
  .detail-meta { gap:7px; }
}

.header-controls { display:flex; align-items:center; gap:30px; }
.appearance-control {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  color:var(--muted);
  background:transparent;
  border:0;
  border-radius:50%;
  cursor:pointer;
  touch-action:manipulation;
}
.appearance-control .icon { width:20px; height:20px; }
.appearance-control:hover { color:var(--ink); background:var(--card); }
.appearance-control:focus-visible { outline:2px solid var(--blue-text); outline-offset:2px; }
@media(max-width:760px) {
  .header-controls { gap:0; }
}
