.hero {
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: clamp(24px, 6vw, 88px);
  padding-block: clamp(44px, 7vw, 100px) clamp(36px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.13;
  letter-spacing: -.075em;
}
.hero:lang(en) h1 { white-space: normal; }
.hero-details { padding-bottom: 8px; }
.hero-description { margin-top: 0; font-size: clamp(16px, 1.7vw, 23px); line-height: 1.7; }
.hero-actions { margin-top: 24px; flex-wrap: wrap; }
.hero .eyebrow { margin-bottom: 19px; }
.desktop-experience { margin-bottom: 24px; scroll-margin-top: -76px; }
.desktop-demo {
  --native-surface: #222325;
  --native-raised: #2f3032;
  --native-edge: #414243;
  --native-text: #efede8;
  --native-muted: #a6a6a2;
  --native-accent: #d8b886;
  --taskbar-height: 44px;
}
.desktop-toolbar, .desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.desktop-toolbar {
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
}
.desktop-demo button {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  line-height: 1.35;
}
.desktop-demo button:focus-visible, .desktop-demo input:focus-visible { outline-offset: 2px; }
.desktop-demo button:disabled { opacity: .42; cursor: default; }
.desktop-actions { flex-wrap: wrap; flex-shrink: 0; }
.desktop-actions button { display: inline-block; min-height: 36px; padding: 6px 11px; border-color: #d3ddef; font-size: 12px; }
.desktop-actions button:hover, .desktop-actions button[aria-pressed="true"] { background: #e5edff; }
.desktop-actions .demo-start { background: #275ddf; color: #fff; border-color: #275ddf; }
.desktop-actions .demo-start:hover { background: #174ac9; }
.desktop-demo kbd { margin-left: 4px; font: 11px Consolas, monospace; }
.demo-status { color: #435979; font-size: 13px; }
.desktop-caption { margin-top: 11px; color: var(--muted); font-size: 12px; }
.demo-desktop, .desktop-fallback {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #9aadc5;
  border-radius: 16px;
  box-shadow: 0 22px 52px -32px #17325791;
}
.demo-desktop {
  height: clamp(468px, 49vw, 636px);
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  background: #456987 url("images/desktop-wallpaper.webp") center / cover no-repeat;
}
.desktop-fallback p { padding: 12px 20px; color: var(--muted); font-size: 13px; }

.demo-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  mask: url("images/snapline-toolbar.png") var(--icon) center / 500px 20px no-repeat;
  pointer-events: none;
}
/* Positions in the strip exported from the Windows application's Ui.IconButton. */
.icon-edit { --icon: 0; }
.icon-rotate-left { --icon: -20px; }
.icon-rotate-right { --icon: -40px; }
.icon-pin { --icon: -60px; }
.icon-save { --icon: -80px; }
.icon-close { --icon: -100px; }
.icon-pen { --icon: -120px; }
.icon-arrow { --icon: -140px; }
.icon-undo { --icon: -160px; }
.icon-open { --icon: -180px; }
.icon-minus { --icon: -200px; }
.icon-plus { --icon: -220px; }
.icon-check { --icon: -240px; }
.icon-reselect { --icon: -260px; }
.icon-collapse { --icon: -280px; }
.icon-width { --icon: -300px; }
.icon-hand { --icon: -320px; }
.icon-rectangle { --icon: -340px; }
.icon-ellipse { --icon: -360px; }
.icon-line { --icon: -380px; }
.icon-text { --icon: -400px; }
.icon-mosaic { --icon: -420px; }
.icon-eraser { --icon: -440px; }
.icon-redo { --icon: -460px; }
.icon-picker { --icon: -480px; }

.demo-shelf { position: absolute; inset: 0 0 auto; z-index: 4; pointer-events: none; }
.demo-rope { position: absolute; inset: 31px 0 auto; width: 100%; height: 36px; }
.demo-shots {
  display: flex;
  align-items: flex-start;
  justify-content: safe center;
  gap: clamp(10px, 2vw, 22px);
  padding: 63px 8px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ecdcbd transparent;
  pointer-events: auto;
}
.desktop-demo .demo-shot {
  display: block;
  position: relative;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #fbfaf7;
  border-radius: 3px;
  background: #fbfaf7;
  box-shadow: 0 4px 12px #131c3b36;
}
.demo-shot:hover, .demo-shot[aria-pressed="true"] { outline: 1px solid #ae8e5f; outline-offset: 1px; }
.demo-shot canvas { display: block; width: var(--thumb-width); height: auto; }
.demo-shot::before {
  content: "";
  position: absolute;
  inset: -24px auto auto calc(50% - 9px);
  width: 18px;
  height: 32px;
  background: url("images/snapline-clothespin.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #402b1855);
  pointer-events: none;
}
.demo-shelf-tools {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e0ded7;
  border-radius: 11px;
  background: linear-gradient(#fffefb, #f5f3ed);
  box-shadow: 0 3px 12px #131c3b22;
  color: #3d3f3e;
  pointer-events: auto;
}
.demo-shelf-tools button { width: 34px; height: 30px; }
.demo-shelf-tools button:hover { background: #ede2cd; }

.demo-paper {
  position: absolute;
  overflow: hidden;
  border: 1px solid #f9fbffbd;
  border-radius: 8px;
  background: #edf1f8;
  box-shadow: 0 20px 38px -13px #051628b0;
}
.demo-document { top: 30%; left: 13%; width: min(45%, 458px); }
.demo-document canvas { display: block; width: 100%; height: auto; }
.demo-source { top: 35%; left: 45%; width: min(43%, 480px); z-index: 1; }
.demo-paper[data-front] { z-index: 6; }
.demo-source-image img { width: 100%; user-select: none; }
.demo-window-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding-inline: 10px 2px;
  background: #f6f8fb;
  color: #333e4d;
  font-size: 12px;
  line-height: 1.4;
}
.demo-window-title button { width: 34px; height: 28px; margin-left: auto; }
.demo-window-title button:hover { background: #c42b1c; color: white; }
.demo-paper .demo-window-title { cursor: grab; touch-action: none; user-select: none; }
.demo-paper .demo-window-title:active { cursor: grabbing; }
.demo-file-icon {
  --file-light: #edf6ff;
  --file-dark: #7ab6f5;
  --file-mark: #387cca;
  display: inline-block;
  position: relative;
  width: 16px;
  height: 19px;
  border-radius: 3px;
  background: linear-gradient(140deg, var(--file-light), var(--file-dark));
  box-shadow: 0 0 0 1px #326aa347 inset;
}
.demo-file-icon::after {
  content: "";
  position: absolute;
  inset: 7px 3px 3px;
  background: var(--file-mark);
  clip-path: polygon(0 100%, 37% 28%, 61% 58%, 74% 18%, 100% 100%);
}
.demo-weekend-icon { --file-light: #effbf6; --file-dark: #87cdbc; --file-mark: #298570; }
.demo-taskbar {
  position: absolute;
  z-index: 7;
  inset: auto 0 0;
  height: var(--taskbar-height);
  display: grid;
  place-items: center;
  border-top: 1px solid #a8c6e153;
  color: #f2f7ff;
  background: #102233cf;
  backdrop-filter: blur(18px);
}
.demo-taskbar-apps, .demo-tray { display: flex; align-items: center; gap: 8px; }
.demo-launcher {
  width: 16px;
  height: 16px;
  margin-inline: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 46%, #193145 46% 54%, transparent 54%),
    linear-gradient(0deg, #83baf0 46%, #193145 46% 54%, #9acbff 54%);
}
.demo-taskbar button { position: relative; width: 40px; height: 34px; }
.demo-taskbar button:hover, .demo-taskbar button[aria-pressed="true"] { background: #ffffff19; }
.demo-taskbar button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto auto 1px calc(50% - 5px);
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #9ed0ff;
}
.demo-tray { position: absolute; right: 16px; font-size: 11px; }
.demo-tray button { width: 32px; height: 31px; }
.demo-network { width: 12px; height: 10px; border-top: 2px solid; border-radius: 50%; }
.demo-battery { width: 12px; height: 7px; border: 1px solid; border-radius: 2px; box-shadow: 2px 0 0 -1px currentColor; }

.demo-capture {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
}
.demo-capture-frame { display: block; width: 100%; height: 100%; pointer-events: none; }
.demo-capture:not(:has(.demo-selection:not([hidden]))) .demo-capture-frame { filter: brightness(.52); }
.demo-selection { position: absolute; border: 1px solid var(--native-accent); box-shadow: 0 0 0 2000px #03050780; pointer-events: none; }
.demo-crop-art { display: block; width: 100%; height: 100%; }
.demo-capture[data-mode="mark"] [data-edge],
.demo-capture[data-locked] [data-edge] { display: none; }
.demo-selection [data-edge] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.demo-selection [data-edge]::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--native-accent); background: white; }
.demo-selection [data-edge*="w"] { left: 0; }
.demo-selection [data-edge*="e"] { left: 100%; }
.demo-selection [data-edge*="n"] { top: 0; }
.demo-selection [data-edge*="s"] { top: 100%; }
.demo-selection :is([data-edge="w"], [data-edge="e"]) { cursor: ew-resize; }
.demo-selection :is([data-edge="n"], [data-edge="s"]) { cursor: ns-resize; }
.demo-selection :is([data-edge="nw"], [data-edge="se"]) { cursor: nwse-resize; }
.demo-selection :is([data-edge="ne"], [data-edge="sw"]) { cursor: nesw-resize; }
.demo-crop-size {
  position: absolute;
  top: -26px;
  left: -2px;
  padding: 1px 6px;
  white-space: nowrap;
  background: #222325;
  color: #efede8;
  font: 11px/20px "Segoe UI", sans-serif;
}
.demo-capture-actions, .demo-editor, .demo-pin-tools {
  border: 1px solid var(--native-edge);
  color: var(--native-text);
  color-scheme: dark;
  background: var(--native-surface);
  box-shadow: 0 10px 26px #0611237d;
}
.demo-capture-actions {
  position: absolute;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 12px);
  border-radius: 6px;
  padding: 4px;
}
.demo-capture-actions[data-dragging] { visibility: hidden; }
.demo-capture-actions button, .demo-editor button, .demo-pin-tools button { width: 32px; height: 32px; padding: 0; }
.demo-capture-options { display: contents; }
.demo-capture-divider { align-self: center; width: 1px; height: 16px; margin-inline: 2px; background: var(--native-edge); }
.demo-capture-actions button[aria-pressed="true"], .demo-capture-actions button[aria-expanded="true"] {
  color: var(--native-accent);
  border-color: #695b45;
  background: #453e33;
}
.demo-ink-dot { display: block; width: 15px; height: 15px; border: 1px solid #ffffff55; border-radius: 50%; }
.demo-capture-choice { position: relative; }
.demo-capture-popover, .demo-capture-text, .demo-color-reading {
  border: 1px solid var(--native-edge);
  border-radius: 6px;
  background: var(--native-surface);
  color: var(--native-text);
  box-shadow: 0 6px 16px #06112373;
}
.demo-capture-popover {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(100% + 5px);
  display: flex;
  padding: 4px;
}
.demo-capture-popover button { width: 28px; height: 28px; font-size: 11px; white-space: nowrap; }
.demo-capture-popover [data-width] { width: 38px; }
.demo-capture-text {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 5px;
  pointer-events: auto;
  width: min(175px, 54vw);
}
.demo-capture-text textarea {
  width: 100%;
  min-height: 42px;
  padding: 4px;
  resize: none;
  border: 1px solid var(--native-edge);
  border-radius: 4px;
  font: 12px/1.4 var(--font);
  background: var(--native-raised);
  color: var(--native-text);
}
.demo-capture-text button { justify-self: end; padding: 2px 7px; font-size: 11px; background: var(--native-raised); }
.demo-color-reading {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font: 11px/1.4 Consolas, monospace;
  white-space: nowrap;
  pointer-events: auto;
}
.demo-color-reading button { padding: 2px 4px; font-size: 11px; }
.demo-color-reading button:hover { background: var(--native-raised); }
.demo-color-lens { position: relative; }
.demo-color-lens canvas { display: block; width: 45px; height: 45px; image-rendering: pixelated; }
.demo-color-lens::after { content: ""; position: absolute; inset: 19px; border: 1px solid white; box-shadow: 0 0 0 1px #222; }
.demo-capture-actions button:not(:disabled):hover, .demo-editor button:not(:disabled):hover, .demo-pin-tools button:hover { background: #3b3c3d; }
.desktop-demo .demo-native-highlight, .demo-editor button[aria-pressed="true"], .demo-editor button[aria-expanded="true"] {
  color: var(--native-accent);
  border-color: #695b45;
  background: #453e33;
}
.demo-editor {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  top: 25%;
  left: 50%;
  width: min(710px, calc(100% - 34px));
  height: min(410px, 65%);
  transform: translateX(-50%);
  border-radius: 8px;
  overflow: hidden;
}
.demo-editor .demo-window-title { color: #eee; background: #18191b; }
.demo-editor .demo-window-title button { height: 27px; }
.demo-editor .demo-window-title button:hover { background: #c42b1c; }
.demo-editor-command, .demo-editor-tools, .demo-editor-footer { display: flex; align-items: center; gap: 2px; padding: 4px 7px; }
.demo-editor-name { flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 12px; color: var(--native-muted); }
.demo-editor-tools { margin: 0 7px 5px; padding: 3px 5px; border: 1px solid var(--native-edge); border-radius: 8px; background: var(--native-raised); }
.demo-editor .demo-ink::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-color); }
.demo-ink[data-ink="#ff4500"] { --ink-color: #ff4500; }
.demo-ink[data-ink="#ffd700"] { --ink-color: #ffd700; }
.demo-ink[data-ink="#1e90ff"] { --ink-color: #1e90ff; }
.demo-editor-image {
  grid-row: 4;
  overflow: auto;
  display: grid;
  align-items: safe center;
  justify-items: safe center;
  border-block: 1px solid var(--native-edge);
  background: radial-gradient(#313233, #252628);
}
.demo-editor-image canvas { display: block; height: auto; touch-action: none; }
.demo-editor:has([aria-controls="demo-annotations"][aria-expanded="true"]) canvas { cursor: crosshair; }
.demo-editor-footer { grid-row: 5; }
.demo-editor-info { margin-inline: 5px auto; color: var(--native-muted); font-size: 11px; }
.demo-zoom-level { min-width: 40px; text-align: center; border-radius: 4px; background: var(--native-raised); font-size: 11px; }
.demo-zoom, .demo-pin-tools input { width: clamp(52px, 10vw, 124px); accent-color: var(--native-accent); }
.demo-pin { position: absolute; z-index: 6; }
.desktop-demo .demo-pin-handle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  touch-action: none;
  cursor: grab;
}
.demo-pin-handle:active { cursor: grabbing; }
.demo-pin canvas { display: block; width: 100%; height: auto; max-height: 205px; object-fit: contain; filter: drop-shadow(0 12px 12px #08172561); }
.demo-pin-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 5px;
  margin-top: 3px;
  padding: 3px 5px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.demo-pin:hover .demo-pin-tools, .demo-pin:has(:focus-visible) .demo-pin-tools { opacity: 1; pointer-events: auto; }
.demo-pin-tools label { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 11px; }
.demo-pin-tools input { width: 60%; }
.demo-pin-tools button { grid-area: 1 / 2 / 3; align-self: center; }
.demo-tour-focus { outline: 2px solid #8bc7ff; outline-offset: 2px; }
.demo-capture.demo-tour-focus { outline-offset: -3px; }
.showcase { display: grid; grid-template-columns: minmax(185px, .34fr) 1fr; }
.demo-tabs { grid-template-columns: 1fr; align-content: start; border-right: 1px solid var(--line); }
.demo-tabs button { text-align: left; padding-inline: 16px; }
.showcase .demo-panel { min-width: 0; }
.demo-footer { grid-column: 1 / -1; }
.showcase .shelf-stage { justify-content: center; }
.showcase .shelf-stage img { flex-shrink: 0; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: clamp(44px, 9.5vw, 66px); }
  .hero-details { padding-bottom: 0; }
  .download-copy:lang(en) > img { position: static; margin-bottom: 14px; }
  .showcase { display: block; }
  .demo-tabs { grid-template-columns: repeat(4, 1fr); border-right: 0; }
  .demo-tabs button { padding-inline: 4px; text-align: center; }
}
@media (max-width: 540px) {
  .hero:lang(en) h1 { font-size: clamp(36px, 9.8vw, 55px); }
  .desktop-demo { --taskbar-height: 41px; }
  .desktop-toolbar { align-items: flex-start; flex-direction: column-reverse; gap: 6px; }
  .desktop-actions { width: 100%; }
  .desktop-actions button { flex: 1 0 auto; }
  .demo-status { font-size: 12px; }
  .demo-desktop { height: 450px; border-radius: 12px; }
  .demo-document { top: 33%; left: 5%; width: 70%; }
  .demo-source { top: 40%; left: 17%; width: 76%; }
  .demo-shots { gap: 9px; }
  .demo-shot canvas { max-width: 92px; }
  .demo-editor { top: 25%; width: calc(100% - 14px); height: 65%; }
  .demo-editor-command, .demo-editor-footer { padding-inline: 3px; }
  .demo-editor-info { font-size: 10px; margin-left: 2px; }
  .demo-zoom { width: 43px; }
  .demo-pin-tools { opacity: 1; pointer-events: auto; }
  .demo-taskbar { grid-template-columns: 1fr auto; padding-inline: 8px; }
  .demo-taskbar-apps { gap: 4px; }
  .demo-tray { position: static; gap: 4px; }
}
@media (pointer: coarse) {
  .demo-pin-tools { opacity: 1; pointer-events: auto; }
}
@media (max-width: 380px) {
  .demo-zoom { display: none; }
}
