/* mPDF's website. The palette is the app icon's: warm paper, ink, and the
   coral of its signing line. Headings are set in Source Serif 4, a face
   made for documents; everything else in the system's own font, as the
   app's native chrome is. The pictures of the app are screenshots, in
   assets/shots/. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/SourceSerif4.437213d63a.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  --bg: #faf8f2;
  --bg-2: #f3efe5;
  --surface: #ffffff;
  --surface-2: #f7f4ec;
  --line: #e6e0d3;
  --line-soft: #eee9de;
  --text: #16181f;
  --text-2: #3b3e47;
  --muted: #5f626b;
  --faint: #8a8c93;
  --ink: #16181f;
  --on-ink: #faf8f2;

  --coral: #ff5a3c;
  --coral-text: #c13419;
  --coral-soft: #ffe8e1;
  --coral-line: #ffc6b8;
  --ok: #1d7a4b;
  --ok-soft: #e3f3ea;
  --blue: #2f5fd0;

  /* The page, in the pictures of the app. It stays paper in dark mode, as
     a PDF does in the app until you choose Night. */
  --paper: #ffffff;
  --paper-ink: #22242b;
  --paper-muted: #6b6e76;
  --paper-bar: #e7e4dc;
  --desk: #e8e4da;
  --hl: rgba(255, 213, 74, 0.55);
  --note: #fff1a8;

  --shadow-sm: 0 1px 2px rgba(40, 30, 10, 0.06), 0 1px 1px rgba(40, 30, 10, 0.04);
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.05), 0 10px 28px -10px rgba(40, 30, 10, 0.18);
  --shadow-lg: 0 2px 6px rgba(40, 30, 10, 0.06), 0 40px 90px -24px rgba(40, 30, 10, 0.32);
  --page-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 18px -6px rgba(0, 0, 0, 0.16);

  --radius: 18px;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: light dark;
  accent-color: var(--coral);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131419;
    --bg-2: #181a20;
    --surface: #1c1e25;
    --surface-2: #20232a;
    --line: #2c2f38;
    --line-soft: #24272f;
    --text: #f1eee7;
    --text-2: #cdcac3;
    --muted: #a19fa6;
    --faint: #7d7c83;
    --ink: #f4f1ea;
    --on-ink: #131419;

    --coral: #ff6b4f;
    --coral-text: #ff8f78;
    --coral-soft: #3a1f19;
    --coral-line: #6b3226;
    --ok: #7fd3a4;
    --ok-soft: #173326;
    --blue: #8eaaff;

    --paper: #f1eee8;
    --paper-ink: #22242b;
    --paper-muted: #686a71;
    --paper-bar: #dcd8cf;
    --desk: #0e0f13;
    --note: #f6e591;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.45), 0 40px 90px -20px rgba(0, 0, 0, 0.85);
    --page-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 20px -6px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
:focus-visible {
  outline: 2.5px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--coral-soft);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
}
.i-sm {
  width: 15px;
  height: 15px;
}
.muted {
  color: var(--muted);
}

/* ---------- The signature, mPDF's mark ---------- */

.sig .sig-ink {
  stroke: var(--paper-ink);
  stroke-width: 22;
}
.sig .sig-line {
  stroke: var(--coral);
  stroke-width: 22;
}

/* Drawn as it comes into view: main.js adds .drawn. */
@media (prefers-reduced-motion: no-preference) {
  .js .sig-draw .sig-ink {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .js .sig-draw.drawn .sig-ink {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.9s cubic-bezier(0.55, 0.1, 0.35, 1) 0.25s;
  }
  .js .sig-draw .sig-line {
    opacity: 0;
    transform: scaleX(0.2);
    transform-origin: 300px 740px;
    transform-box: view-box;
  }
  .js .sig-draw.drawn .sig-line {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease 2s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 2s;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-sm);
}
.btn-ink:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--coral));
}
.btn-line {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-line:hover {
  border-color: var(--faint);
}
.btn-sm {
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 11px;
  font-size: 15px;
}
.btn-store {
  text-align: left;
  padding-inline: 18px 22px;
}
.btn-store > span {
  display: flex;
  flex-direction: column;
}
.btn-store small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}
.btn-store b {
  font-size: 17px;
  font-weight: 650;
}
.btn.is-soon {
  background: transparent;
  border: 1px dashed var(--line);
  box-shadow: none;
  color: var(--muted);
}

/* ---------- Chinese and Japanese ---------- */

/* The Latin serif has no CJK, so headings fall to the system's Song or
   Mincho, which want no negative tracking and a little more leading. */
:lang(ja) {
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --serif: "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
}
:is(:lang(zh), :lang(ja)) :is(h1, .sec-head h2, .nf h1, .doc-hero h1, .prose h2, .plat h3, .dl h3) {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}
:is(:lang(zh), :lang(ja)) .hero h1 {
  max-width: none;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}
:is(:lang(zh), :lang(ja)) .kicker {
  letter-spacing: 0.08em;
}
:lang(ja) :is(h1, h2, h3, .lead, .hero-lead) {
  word-break: auto-phrase;
}

/* ---------- Top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.is-scrolled {
  border-bottom-color: var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  margin: -3px;
}
.top-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.top-links a {
  padding: 7px 11px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.top-links a:hover {
  background: var(--bg-2);
  color: var(--text);
}
.top-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 960px) {
  .top-links {
    display: none;
  }
  .top-end {
    margin-left: auto;
  }
}

/* ---------- Language menu ---------- */

.lang {
  position: relative;
}
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary:hover,
.lang[open] summary {
  background: var(--bg-2);
}
.lang summary .i {
  width: 18px;
  height: 18px;
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.lang li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.lang li a:hover {
  background: var(--surface-2);
}
.lang li a[aria-current] {
  font-weight: 600;
}
@media (max-width: 420px) {
  .lang summary span {
    display: none;
  }
}

/* ---------- Shared section parts ---------- */

.sec {
  padding-block: clamp(80px, 11vw, 136px);
}
.sec-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.sec-head-left {
  margin: 0;
  text-align: left;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--coral-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sec-head .kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
}
h1,
.sec-head h2,
.nf h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.06;
}
.sec-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}
.lead {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 24px 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card > h3 .i {
  color: var(--coral-text);
}
.card > p {
  margin: 0 24px 24px;
  color: var(--muted);
  font-size: 15.5px;
}
.pic {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--coral) 9%, transparent), transparent 70%),
    linear-gradient(var(--bg), var(--bg-2));
  overflow: clip;
}
.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-kicker {
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-sm);
}
.sig-mini {
  width: 22px;
  height: 20px;
}
.sig-mini .sig-ink {
  stroke: var(--coral);
  stroke-width: 60;
}
.hero h1 {
  max-width: 15ch;
  margin-top: 8px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}
.hero-lead {
  max-width: 640px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.hero-meta a {
  color: var(--text-2);
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.hero-meta a:hover {
  text-decoration-color: currentColor;
}
.hero-stage {
  position: relative;
  margin-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.hero-hint {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13.5px;
  text-align: center;
}
.hint-touch {
  display: none;
}
@media (hover: none) {
  .hint-mouse {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
}

/* ---------- Screenshots ---------- */

.shot {
  display: block;
  width: 100%;
  height: auto;
}

/* Window screenshots: clipped to the macOS window's corner radius (10
   points of a 1320 by 860 point window), with an ordinary shadow, which
   is cheaper to draw than a drop-shadow filter over a large picture. */
.window,
.frame {
  --wr: 0.76% / 1.17%;
  position: relative;
  margin: 0 auto;
  border-radius: var(--wr);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(40, 30, 10, 0.08), 0 2px 6px rgba(40, 30, 10, 0.08), 0 30px 60px -20px rgba(40, 30, 10, 0.35);
}
.window {
  max-width: 1100px;
}
.frame {
  box-shadow: 0 0 0 1px rgba(40, 30, 10, 0.08), 0 2px 6px rgba(40, 30, 10, 0.07), 0 24px 50px -20px rgba(40, 30, 10, 0.3);
}
@media (prefers-color-scheme: dark) {
  .window,
  .frame {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
}
/* The title bar, shown: it fades out a moment after the page loads, and
   back in while the visitor points at the window, as in the app. */
.window-chrome {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease;
}
.js .window:not(.show):not(:hover) .window-chrome {
  opacity: 0;
}
.frame-wide {
  max-width: 1000px;
}
.shot-dialog {
  filter: drop-shadow(0 1px 3px rgba(40, 30, 10, 0.12)) drop-shadow(0 16px 28px rgba(40, 30, 10, 0.2));
}

/* ---------- Points ---------- */

.points-sec {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 34px;
}
.points > div {
  display: flex;
  gap: 12px;
}
.points .i {
  margin-top: 2px;
  color: var(--coral-text);
}
.points p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.points b {
  display: block;
  color: var(--text);
  font-weight: 650;
}
@media (max-width: 900px) {
  .points {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .points {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---------- Read ---------- */

.read-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--desk);
  border: 1px solid var(--line);
}
.book-shots {
  display: grid;
  width: 100%;
  max-width: 460px;
  /* The window's corners: 10 points of a 760 by 980 point window. */
  border-radius: 1.32% / 1.02%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(40, 30, 10, 0.08), 0 20px 40px -16px rgba(40, 30, 10, 0.35);
}
.book-shots .shot {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.book:has(input[value="normal"]:checked) .book-normal,
.book:has(input[value="sepia"]:checked) .book-sepia,
.book:has(input[value="night"]:checked) .book-night {
  opacity: 1;
}
.seg {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.seg label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.seg label:hover {
  color: var(--text);
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg label:has(input:checked) {
  background: var(--ink);
  color: var(--on-ink);
}
.seg label:has(input:focus-visible) {
  outline: 2.5px solid var(--coral);
  outline-offset: 2px;
}
.seg-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.seg-normal { background: #fffefb; }
.seg-sepia { background: #f3e8d0; }
.seg-night { background: #1a1b20; border-color: rgba(255, 255, 255, 0.3); }

.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feat-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat-list .i {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--coral-text);
}
.feat-list b {
  display: block;
  font-weight: 650;
}
.feat-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.feat-list .feat-lead {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--coral-line);
  box-shadow: var(--shadow-sm);
}
.feat-list .feat-lead .i {
  background: var(--coral-soft);
  border-color: var(--coral-line);
}
.feat-list .feat-lead b {
  font-size: 18px;
}
@media (max-width: 860px) {
  .read-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .feat-list {
    grid-template-columns: 1fr;
  }
  .seg label {
    padding: 7px 10px;
  }
}

/* ---------- Mark up ---------- */

.sec-markup,
.sec-pages,
.sec-protect {
  background: var(--bg-2);
  border-block: 1px solid var(--line-soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 820px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Edit, Sign ---------- */

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.two-wide {
  grid-template-columns: 1.35fr 1fr;
}
.card .pic {
  padding: clamp(16px, 2.6vw, 28px);
}
.card .pic > .shot:not(.shot-dialog) {
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.pic-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 32vw, 360px);
}
/* A definite width for each, so they hold their size before they load. */
.pic-dialog .shot-dialog {
  width: 100%;
  height: auto;
}
.dlg-signature { max-width: 460px; }
.dlg-password { max-width: 290px; }
.dlg-compress { max-width: 480px; }
.card-facts {
  justify-content: center;
  padding: clamp(18px, 3vw, 32px);
}
.card-facts > h3,
.card-facts > p {
  margin-inline: 0;
}
.card-facts > h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}
.card-facts > h3 .i {
  width: 26px;
  height: 26px;
}
.card-facts ul {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.card-facts li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
}
.card-facts li .i {
  margin-top: 4px;
  color: var(--ok);
}
@media (max-width: 820px) {
  .two,
  .two-wide {
    grid-template-columns: 1fr;
  }
}

/* ---------- Before you send it ---------- */

.protect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card-plain {
  padding-top: 6px;
}
@media (max-width: 720px) {
  .protect-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Command line ---------- */

.sec-cli {
  --bg: #15161b;
  --surface: #1c1e24;
  --line: #2c2f38;
  --text: #f1eee7;
  --text-2: #c9c6bf;
  --muted: #a3a1a8;
  --coral-text: #ff8f78;
  color-scheme: dark;
  background:
    radial-gradient(50% 60% at 85% 0%, rgba(255, 90, 60, 0.12), transparent 70%),
    var(--bg);
  color: var(--text);
}
.sec-cli code {
  background: #262830;
  border-color: #33363f;
}
.cli-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.term {
  border-radius: 14px;
  background: #0d0e12;
  border: 1px solid #2c2f38;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #22252c;
  color: #8d8b92;
  font-size: 13px;
}
.term-lights {
  display: flex;
  gap: 7px;
}
.term-lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.term-lights i:nth-child(2) {
  background: #febc2e;
}
.term-lights i:nth-child(3) {
  background: #28c840;
}
.term-bar span:last-child {
  margin-inline: auto;
  padding-right: 50px;
}
.term pre {
  margin: 0;
  padding: 22px 22px 26px;
  overflow-x: auto;
  color: #e9e6df;
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.25vw, 14.5px);
  line-height: 1.7;
}
.term-c {
  color: #7f7d86;
}
.term-p {
  color: var(--coral);
}
.term b {
  color: #fff;
  font-weight: 700;
}
.term pre i {
  color: #f2c28a;
  font-style: normal;
}
.term-cur {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 0.3em;
  vertical-align: -0.2em;
  background: #e9e6df;
}
@media (prefers-reduced-motion: no-preference) {
  .term-cur {
    animation: blink 1.05s steps(1) infinite;
  }
}
.cli-notes {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cli-notes li {
  padding-left: 18px;
  border-left: 2px solid var(--coral);
}
.cli-notes b {
  display: block;
  font-weight: 650;
}
.cli-notes span {
  color: var(--muted);
  font-size: 15.5px;
}
@media (max-width: 860px) {
  .cli-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Platforms ---------- */

.plat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plat li {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.plat li > .i {
  width: 30px;
  height: 30px;
  color: var(--coral-text);
}
.plat h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}
.soon {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
}
.plat p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15.5px;
}
.plat small {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 960px) {
  .plat {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .plat {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.sec-faq {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.faq-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 4px;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background-color: var(--coral);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq-list details[open] > summary::before {
  rotate: 0deg;
}
.faq-list summary:hover {
  color: var(--coral-text);
}
@media (prefers-reduced-motion: no-preference) {
  .faq-list summary::before {
    transition: rotate 0.2s;
  }
}
.faq-a {
  padding: 0 4px 22px 36px;
  color: var(--text-2);
}
.faq-a a {
  color: var(--coral-text);
  text-underline-offset: 3px;
}
.faq-list details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq-list details:not([open])::details-content {
  block-size: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-list details::details-content {
    transition: block-size, content-visibility;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}
@media (max-width: 820px) {
  .faq-in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Download ---------- */

.sec-get {
  position: relative;
  background:
    radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 70%),
    var(--bg);
}
.sig-get {
  width: 110px;
  height: 100px;
  margin: 0 auto 8px;
}
.sig-get .sig-ink {
  stroke: var(--ink);
  stroke-width: 40;
}
.sig-get .sig-line {
  stroke-width: 40;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin-inline: auto;
}
.dl {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dl h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}
.dl h3 .i {
  width: 24px;
  height: 24px;
  color: var(--coral-text);
}
.dl-req {
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.dl-main {
  justify-content: flex-start;
  margin-top: auto;
  min-height: 58px;
  text-align: left;
}
.dl-main > span {
  display: flex;
  flex-direction: column;
}
.dl-main small {
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.72;
}
.dl-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
}
.dl-alts a {
  color: var(--text-2);
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.dl-alts a:hover {
  text-decoration-color: currentColor;
}
.dl-soon {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.dl-soon-tag {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral-text);
  font-weight: 650;
  text-align: center;
}
.dl-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 30px;
  font-size: 15px;
}
.dl-foot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-weight: 550;
  text-decoration: none;
}
.dl-foot a:hover {
  color: var(--coral-text);
}
/* main.js marks the visitor's system, which then comes first. */
html[data-os="win"] [data-os-card="win"] {
  order: -1;
}
@media (max-width: 860px) {
  .dl-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 15px;
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px;
  padding-block: 56px 36px;
}
.foot-brand p {
  max-width: 300px;
  margin-top: 14px;
  color: var(--muted);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols h2 {
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-cols a,
.foot-cols span {
  display: block;
  padding: 4px 0;
  color: var(--text-2);
  text-decoration: none;
}
.foot-cols a:hover {
  color: var(--coral-text);
}
.foot-cols span {
  color: var(--faint);
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 36px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13.5px;
}
.foot-langs {
  display: flex;
  gap: 14px;
}
.foot-langs a {
  text-decoration: none;
}
@media (max-width: 760px) {
  .foot-in {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Privacy and Support ---------- */

.doc-hero {
  padding: clamp(56px, 8vw, 88px) 0 40px;
  background: linear-gradient(var(--bg-2), var(--bg));
}
.doc-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.doc-hero .lead {
  max-width: 720px;
}
.doc-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}
.doc {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 24px 0 110px;
}
.toc {
  position: sticky;
  top: 92px;
  font-size: 14.5px;
}
.toc p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover {
  border-left-color: var(--coral);
  color: var(--text);
}
.prose {
  max-width: 740px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}
.prose h2 {
  margin: 52px 0 12px;
  padding-top: 8px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose > section:first-of-type h2 {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--faint);
}
.prose strong {
  color: var(--text);
}
.prose a {
  color: var(--coral-text);
  text-underline-offset: 3px;
}
.prose .callout {
  display: flex;
  gap: 14px;
  margin: 0 0 40px;
  padding: 18px 20px;
  border: 1px solid var(--coral-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--coral-soft) 55%, var(--surface));
  color: var(--text);
}
.prose .callout .i {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--coral-text);
}
.prose .callout ul {
  margin: 6px 0 0;
}
.table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 56px;
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: translate 0.2s ease, box-shadow 0.2s ease;
}
a.help-card:hover {
  translate: 0 -2px;
  box-shadow: var(--shadow);
}
.help-card > .i {
  width: 24px;
  height: 24px;
  color: var(--coral-text);
}
.help-card h2 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 650;
}
.help-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.help-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--coral-text);
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
  }
  .help-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 404 ---------- */

.nf {
  padding-block: clamp(80px, 14vw, 160px);
}
.nf-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sig-nf {
  width: 120px;
  height: 108px;
  margin-bottom: 18px;
}
.sig-nf .sig-ink {
  stroke: var(--ink);
  stroke-width: 40;
}
.sig-nf .sig-line {
  stroke-width: 40;
}
.nf h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.nf .lead {
  max-width: 520px;
  margin-bottom: 30px;
}

/* ---------- Rising into view ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-reveal].in {
    opacity: 1;
    translate: none;
  }
}
