/* Pastify site. No external fonts or requests: system faces, like the app. */

:root {
  --paper: #f4f6fb;
  --surface: #ffffff;
  --ink: #121a3a;
  --muted: #535c80;
  --line: #d5dbee;
  --blue: #3d57f0;
  --blue-deep: #2233a8;
  --star: #ffc531;
  --tint: #e9edf8;
  --sel: #3d57f0;
  --sel-ink: #ffffff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Ubuntu Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --step: clamp(72px, 10vw, 128px);
}

/* The theme is set on <html> by the inline script in index.html (system
   preference unless the visitor picked one) and switched by the header button. */
html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1430;
  --surface: #161e45;
  --ink: #e8ecfa;
  --muted: #a3acd0;
  --line: #2a3466;
  --blue: #7086ff;
  --tint: #121a3c;
  --sel: #3d57f0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Language switching: both languages are in the markup; one is hidden. */
html[data-lang="en"] .ru,
html[data-lang="ru"] .en { display: none !important; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; max-width: 22ch; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.measure { max-width: 60ch; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: 13px/1.5 var(--sans);
  text-align: center;
}
code { font-family: var(--mono); font-size: 0.88em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center;
  height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--blue); }
.btn-primary { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: #2a3fc4; border-color: #2a3fc4; }
html[data-theme="dark"] .btn-primary { background: var(--sel); border-color: var(--sel); }
html[data-theme="dark"] .btn-primary:hover { background: #5068f5; border-color: #5068f5; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -0.01em; }
.brand-small { font-size: 15px; gap: 8px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.lang, .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface); }
.lang button, .seg button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 13px/1 var(--sans); padding: 7px 10px; border-radius: 6px;
}
.lang button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }
.theme-btn {
  display: inline-grid; place-items: center; width: 36px; height: 34px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer;
}
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .theme-btn .sun, html:not([data-theme="dark"]) .theme-btn .moon { display: none; }
.top-row .theme-btn { margin-left: -16px; }
@media (max-width: 760px) { .nav { display: none; } .top-row { gap: 10px; } .theme-btn { margin-left: auto !important; } }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--step); }
.hero-head { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(32px, 5vw, 64px); align-items: end; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.028em;
  max-width: 15ch;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 46ch; }
.hero .actions { margin-top: 28px; }
.platforms { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 46ch; }
@media (max-width: 960px) { .hero-head { grid-template-columns: 1fr; } }

/* Demo stage: a desktop with a notes window and the Pastify panel on it */
.stage {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px); gap: 28px; align-items: center;
  padding: clamp(20px, 4vw, 52px);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 0% 0%, #e6ebfd 0%, transparent 60%),
    linear-gradient(150deg, #cdd6fa 0%, #9fb0f3 50%, #5d74ec 100%);
}
html[data-theme="dark"] .stage { background: radial-gradient(120% 90% at 0% 0%, #26306a 0%, transparent 60%), linear-gradient(150deg, #1c2457 0%, #202d7c 55%, #3346b8 100%); }
.doc {
  align-self: stretch;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(18, 26, 58, .18), 0 12px 32px -8px rgba(18, 26, 58, .3);
  margin: 40px 0;
}
.doc-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); flex: none; }
.doc-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.doc-bar i:nth-child(3) { margin-right: 8px; }
.doc-body { padding: 18px 20px; font-size: 15px; line-height: 1.55; overflow: hidden; }
.doc-body h4 { margin: 0 0 10px; font: 650 17px/1.4 var(--display); }
#doc-out > * { display: block; margin-bottom: 6px; overflow-wrap: anywhere; }
#doc-out b { font-weight: 650; }
#doc-out .pasted-img { width: 120px; height: 72px; border-radius: 6px; }
#doc-out .pasted-files { color: var(--blue); }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--blue); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.flash { animation: flash 1s ease-out; border-radius: 3px; }
@keyframes flash { from { background: color-mix(in srgb, var(--star) 45%, transparent); } to { background: transparent; } }
.demo-note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 80ch; }
@media (max-width: 1000px) {
  .stage { grid-template-columns: 1fr; }
  .doc { margin: 0; height: 170px; }
}

/* ---- The panel replica. Tokens and rules follow frontend/src/base.css and style.css. ---- */
.pf {
  --fs: 13px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --fg: #1d1d1f; --muted: #6e6e73; --faint: #86868b;
  --accent: #007aff; --accent-fg: #ffffff;
  --row: rgba(0, 0, 0, .045); --hover: rgba(0, 0, 0, .05);
  --sel: color-mix(in srgb, var(--accent) 18%, transparent);
  --border: rgba(0, 0, 0, .10); --hairline: rgba(0, 0, 0, .08);
  --group: #ffffff; --field: #ffffff; --star: #f2a60c; --danger: #d70015;
  --glass: rgba(242, 242, 245, .80);

  position: relative;
  height: 540px; min-width: 0;
  display: flex; flex-direction: column; padding-top: 44px;
  border-radius: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .22), 0 1px 1px rgba(0, 0, 0, .06), 0 24px 60px -12px rgba(10, 17, 80, .45);
  color: var(--fg); font: var(--fs) var(--font); line-height: normal; letter-spacing: normal;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; cursor: default;
  overflow: hidden; outline: none;
}
html[data-theme="dark"] .pf {
    --fg: #f5f5f7; --muted: #a1a1a6; --faint: #8d8d93;
    --row: rgba(255, 255, 255, .06); --hover: rgba(255, 255, 255, .06);
    --sel: color-mix(in srgb, var(--accent) 34%, transparent);
    --border: rgba(255, 255, 255, .12); --hairline: rgba(255, 255, 255, .08);
    --group: rgba(255, 255, 255, .16); --field: rgba(255, 255, 255, .07); --danger: #ff6961;
    --glass: rgba(36, 36, 38, .82);
    box-shadow: 0 0 0 .5px rgba(255, 255, 255, .14), 0 24px 60px -12px rgba(0, 0, 0, .7);
}
.pf:focus-visible:not(.by-mouse) { box-shadow: 0 0 0 2px var(--accent), 0 24px 60px -12px rgba(10, 17, 80, .45); }
.pf * { box-sizing: border-box; margin: 0; }
.pf button, .pf input { font: inherit; color: inherit; }
.pf svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pf-lights { position: absolute; top: 16px; left: 18px; display: flex; gap: 8px; }
.pf-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.pf-lights i:nth-child(2) { background: #febc2e; }
.pf-lights i:nth-child(3) { background: #28c840; }
.pf-spacer { flex: 1; }

.pf-topbar { padding: 0 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.pf-tabs { display: flex; align-items: center; gap: 8px; }
.pf-seg { display: inline-flex; background: var(--row); border-radius: 7px; padding: 2px; gap: 2px; }
.pf-seg button { border: 0; background: transparent; color: var(--muted); padding: 3px 12px; border-radius: 5px; font-size: 12px; font-weight: 500; cursor: default; }
.pf-seg button.active { background: var(--group); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .05); }
.pf-hint { border: 0; background: transparent; color: var(--muted); height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.pf-hint:hover { background: var(--hover); color: var(--fg); }
.pf-hint svg { width: 14px; height: 14px; flex: none; }
.pf-topbar.searching .pf-hint { display: none; }
.pf-kinds { display: inline-flex; gap: 1px; }
.pf-kinds button { border: 0; background: transparent; color: var(--muted); height: 24px; min-width: 26px; padding: 0 6px; border-radius: 6px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pf-kinds button:hover { background: var(--hover); color: var(--fg); }
.pf-kinds button.active { background: var(--row); color: var(--accent); }
.pf-topbar:not(.searching) .pf-search { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.pf-search { width: 100%; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--field); font-size: 14px; outline: none; }
.pf-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.pf-split { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 42%); min-height: 0; border-top: 1px solid var(--hairline); }
.pf-list { overflow: auto; border-right: 1px solid var(--hairline); padding: 4px 0; }
.pf-row { display: grid; grid-template-columns: 22px 1fr auto 22px; align-items: center; gap: 8px; padding: 0 8px; height: 34px; border-radius: 7px; margin: 1px 6px; }
.pf-row:hover { background: var(--hover); }
.pf-row.selected { background: var(--sel); }
.pf-row .num, .pf-row .app { grid-column: 1; grid-row: 1; }
.pf-row .num { visibility: hidden; width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-fg); background: var(--accent); }
.pf.mod-held .pf-row .num { visibility: visible; }
.pf.mod-held .pf-row:has(.num) .app { visibility: hidden; }
.pf-row .app { width: 20px; height: 20px; border-radius: 5px; background: var(--row); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.pf-row .body { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.pf-row .text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row .text.muted { color: var(--muted); }
.pf-row .path { color: var(--muted); }
.pf-row .label { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); border-radius: 5px; padding: 1px 6px; }
.pf-row .thumb { flex: none; width: 40px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 .5px var(--border); }
.pf-row .swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.pf-row .meta { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; display: flex; gap: 4px; align-items: center; }
.pf-row .lines { color: var(--faint); font-size: 10px; padding: 0 4px; border-radius: 4px; background: var(--row); }
.pf-row .star { border: 0; background: transparent; color: var(--faint); font-size: 13px; width: 22px; height: 22px; border-radius: 50%; visibility: hidden; padding: 0; }
.pf-row:hover .star, .pf-row.selected .star, .pf-row.fav .star { visibility: visible; }
.pf-row .star:hover { background: var(--hover); color: var(--fg); }
.pf-row.fav .star { color: var(--star); }
.pf mark { background: color-mix(in srgb, var(--star) 38%, transparent); color: inherit; border-radius: 2px; }
.pf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 48px 24px; }
.pf-empty strong { color: var(--fg); font-weight: 600; font-size: 13px; }
.pf-empty span { font-size: 12px; max-width: 260px; line-height: 1.45; }

.pf-preview { overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-preview .pf-empty { margin: auto; padding: 0; }
.pv-head { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.pv-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.pv-label .placeholder { color: var(--faint); font-weight: 400; }
.pv-head .pf-seg button { padding: 2px 10px; font-size: 11px; }
.pv-body { flex: 1; min-height: 0; overflow: auto; }
.pv-text { white-space: pre-wrap; word-break: break-word; font: 12px/1.5 var(--mono); }
.pv-html { font: 13px/1.5 var(--font); }
.pv-html h5 { font-size: 15px; margin-bottom: 6px; }
.pv-html li { margin-left: 18px; }
.pv-img { height: 100%; border-radius: 8px; position: relative; }
.pv-img .img-size { position: absolute; right: 6px; bottom: 6px; font-size: 10px; font-variant-numeric: tabular-nums; color: #fff; background: rgba(0, 0, 0, .5); border-radius: 4px; padding: 1px 5px; }
.kind-card { display: flex; flex-direction: column; gap: 10px; }
.link-host { font-size: 15px; font-weight: 600; word-break: break-all; }
.link-url { font: 12px/1.5 var(--mono); color: var(--muted); word-break: break-all; }
.kind-card .act { align-self: flex-start; }
.color-swatch { height: 112px; border-radius: 10px; box-shadow: inset 0 0 0 .5px var(--border); }
.color-values { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.color-values dt { color: var(--faint); }
.color-values dd { font-family: var(--mono); }
.file-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.file-list li { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.file-list svg { color: var(--muted); grid-row: 1 / span 2; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-dir { grid-column: 2; font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-meta { border-top: 1px solid var(--hairline); padding-top: 8px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-meta::before { content: ""; flex: none; width: 5px; height: 5px; border: solid var(--faint); border-width: 0 1.3px 1.3px 0; transform: rotate(-45deg); margin: 0 3px 0 1px; }
.pv-actions { display: flex; align-items: center; gap: 6px; }
.pf .act { border: 1px solid var(--border); background: var(--field); color: var(--fg); height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pf .act:hover { background: var(--hover); }
.pf .act kbd { all: unset; font: 11px var(--font); color: var(--muted); }
.pf .act.primary { background: var(--accent); border-color: transparent; color: var(--accent-fg); font-weight: 500; }
.pf .act.primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.pf .act.primary kbd { color: color-mix(in srgb, var(--accent-fg) 75%, transparent); }
.pf .icon-act { border: 0; background: transparent; color: var(--muted); width: 26px; height: 26px; border-radius: 6px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pf .icon-act:hover { background: var(--hover); color: var(--fg); }
.pf .icon-act.on { color: var(--star); }
.pf .icon-act.danger:hover { color: var(--danger); }

.pf-status { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; height: 30px; border-top: 1px solid var(--hairline); font-size: 11px; flex: none; }
.pf-pill { border-radius: 9px; padding: 2px 8px; color: var(--muted); white-space: nowrap; }
.pf-pill.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pf-count { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-link { color: var(--muted); padding: 2px 6px; }
.pf-help { border: 1px solid var(--border); color: var(--muted); width: 18px; height: 18px; border-radius: 50%; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

/* Windows and Linux: no title bar and no window buttons, as in the app. */
html[data-os="pc"] .pf { padding-top: 22px; border-radius: 8px; }
html[data-os="pc"] .pf-lights { display: none; }

/* Like the app, a narrow panel drops the preview. */
@media (max-width: 640px) {
  .pf { height: 460px; }
  .pf-split { grid-template-columns: 1fr 0; }
  .pf-preview { display: none; }
  .pf-list { border-right: 0; }
  .pf-hint span, .pf-link, .pf-kinds button:not(:first-child) { display: none; }
}

/* Sections */
.section { padding: var(--step) 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 100px; display: grid; gap: 20px; justify-items: start; }
.split-head p { max-width: 36ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-head { position: static; } }

/* Features as a definition list, not cards */
.features { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.feature { padding: 28px 0; border-top: 1px solid var(--line); }
.feature:nth-child(-n+2) { border-top: 0; padding-top: 4px; }
.feature dt { font: 650 19px/1.3 var(--display); letter-spacing: -0.01em; margin-bottom: 10px; }
.feature dd { margin: 0; color: var(--muted); font-size: 16px; }
.chips, .keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.chips b { font-weight: 600; font-size: 12px; color: var(--ink); padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; }
.code {
  margin: 14px 0 0; padding: 14px 16px; overflow-x: auto;
  background: var(--ink); color: #dfe5ff; border-radius: 8px;
  font: 13px/1.7 var(--mono);
}
html[data-theme="dark"] .code { background: #080c22; }
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(2) { border-top: 1px solid var(--line); padding-top: 28px; }
}

/* Keyboard table */
html:not([data-os="pc"]) .pc,
html[data-os="pc"] .mac { display: none; }
.keytable { width: 100%; border-collapse: collapse; }
.keytable td { padding: 14px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.keytable tr:first-child td { border-top: 0; }
.keytable td:first-child { width: 44%; white-space: nowrap; padding-right: 20px; }
.keytable kbd + kbd { margin-left: 4px; }

/* Sync */
.sync-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sync-grid h2 + p { margin-top: 24px; }
@media (max-width: 860px) { .sync-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; max-width: 56ch; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 15px;
}
.steps strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 650; }
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .lan line { stroke: var(--blue); stroke-width: 2; }
.diagram .wan path, .diagram .wan line { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.diagram .node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.diagram .relay rect { fill: var(--tint); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.diagram text { fill: var(--ink); font: 600 15px var(--sans); text-anchor: middle; dominant-baseline: middle; }
.diagram text.small { font-size: 11px; font-weight: 500; fill: var(--muted); }
.diagram text.lab { font-size: 12px; font-weight: 500; fill: var(--blue); }
.diagram figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.leg { width: 24px; height: 0; border-top: 2px solid var(--blue); display: inline-block; }
.leg-wan { border-top: 1.5px dashed var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 10px; margin-right: 14px; }

/* Security: the one dark band */
.security { background: var(--blue-deep); color: #fff; padding: var(--step) 0; }
html[data-theme="dark"] .security { background: #18247a; }
.sec-title { font-size: clamp(30px, 3.8vw, 50px); max-width: 24ch; line-height: 1.1; letter-spacing: -0.03em; }
.claims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, .22); }
.claims article { padding: 28px 28px 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.claims article:not(:nth-child(4n)) { border-right: 1px solid rgba(255, 255, 255, .22); }
.claims article:not(:nth-child(4n+1)) { padding-left: 28px; }
.claims h3 { color: #fff; margin-bottom: 10px; }
.claims p { color: rgba(255, 255, 255, .78); font-size: 15px; }
@media (max-width: 1000px) {
  .claims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claims article { padding: 24px 24px 28px 0 !important; border-right: 0 !important; }
  .claims article:nth-child(2n) { padding-left: 24px !important; border-left: 1px solid rgba(255, 255, 255, .22); }
}
@media (max-width: 600px) {
  .claims { grid-template-columns: 1fr; }
  .claims article:nth-child(2n) { padding-left: 0 !important; border-left: 0; }
}
.limits { margin-top: 56px; padding: 28px 32px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; max-width: 820px; }
.limits h3 { color: #fff; }
.limits ul { margin: 14px 0 0; padding-left: 20px; color: rgba(255, 255, 255, .82); font-size: 15px; display: grid; gap: 8px; }
.security a { color: #fff; }

/* Download */
.dl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.dl-head p { font-size: 15px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.dl { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.dl h3 { font-size: 22px; }
.dl p { color: var(--muted); font-size: 15px; flex: 1; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dl-meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dl-alt { font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.dl-extra { margin-top: 28px; display: grid; gap: 10px; font-size: 15px; color: var(--muted); max-width: 80ch; }
.dl-extra a { margin-left: 10px; white-space: nowrap; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }

/* Ideas and the feedback form */
.ideas { padding: var(--step) 0; border-top: 1px solid var(--line); background: var(--tint); }
.ideas-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ideas h2 { max-width: 18ch; }
.ideas h2 + p { margin-top: 24px; font-size: 18px; }
.next { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.next ul { list-style: none; margin: 16px 0 20px; padding: 0; }
.next li { padding: 11px 0 11px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.next li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--blue); }
@media (max-width: 860px) { .ideas-grid { grid-template-columns: 1fr; } }

.fb { margin-top: 36px; display: grid; gap: 18px; max-width: 640px; }
.fb-kind { justify-self: start; }
.fb-kind label { position: relative; }
.fb-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-kind label > span { display: block; padding: 8px 14px; border-radius: 6px; font: 600 14px/1 var(--sans); color: var(--muted); cursor: pointer; }
.fb-kind input:checked + span { background: var(--tint); color: var(--ink); }
.fb-kind input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }
.field-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.fb input[type="text"], .fb input[type="email"], .fb select, .fb textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font: 16px/1.45 var(--sans);
}
.fb textarea { resize: vertical; min-height: 140px; }
.fb select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.fb input:focus, .fb select:focus, .fb textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fb button[disabled] { opacity: .6; cursor: progress; }
.fb-status { font-size: 15px; color: var(--muted); }
.fb-status[data-tone="ok"] { color: #1f8a4c; }
.fb-status[data-tone="error"] { color: #c0352b; }
html[data-theme="dark"] .fb-status[data-tone="ok"] { color: #5fd08e; }
html[data-theme="dark"] .fb-status[data-tone="error"] { color: #ff8a80; }
.fb-note { max-width: 60ch; }
/* The honeypot: out of sight and out of the tab order. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-row a { margin-left: auto; }
