/* Snapline: the document pages.
 *
 * /changelog/, /about/, the compare and how-to guides, /privacy/, /terms/,
 * /refund/, and 404. Pages someone reads carefully, sometimes because they are
 * worried, so the capture grammar is spent exactly once: on the summary at
 * the top, the part that answers the worry. Nothing else on the page competes
 * with the text.
 *
 * Tokens and grammar are the daylight-studio dialect of landing.css, restated
 * for the subset a document needs (like site.css does): sky canvas, bone-white
 * surfaces with no borders or shadows, the charcoal pill as the only dense
 * dark, iris blue as the single accent. Self-contained on purpose: landing.css
 * is 1,700 lines of demo machinery a document will never draw.
 */

:root {
  --paper: #ebf5ff;
  --card: #fafdff;
  --paper-raised: #f3f9ff;
  --ink: #0a0d12;
  --ink-soft: #535862;
  --fog: #93979f;
  --rule: #dbe8f5;

  --charcoal: #181d27;

  --marquee: #0069e0;
  --marquee-deep: #0055b8;

  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-card: 24px;
  --radius-card-sm: 16px;
  --shadow-press: 0 1px 2px rgba(10, 13, 18, 0.8), 0 0 0 1px #0a0d12;

  /* The iris pill: the filled call-to-action (Download, Buy) wears the marquee
     as a graded fill — sky-lit at the top, deepening to the hover blue at the
     foot — with a glass highlight along the rim and a soft blue glow, no dark ring. The
     gradient is twice the pill's height so hover slides it, not swaps it. */
  --cta: linear-gradient(180deg, #4aa2ff 0%, #0069e0 50%, #0052b3 100%);
  --shadow-cta: inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 2px 6px -1px rgba(0, 105, 224, 0.28), 0 10px 22px -8px rgba(0, 105, 224, 0.5);
  --shadow-cta-hover: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 10px -2px rgba(0, 105, 224, 0.32), 0 16px 32px -10px rgba(0, 105, 224, 0.6);

  --step: 8px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--marquee);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Menu bar ──────────────────────────────────────────────────────────────
   The landing page's floating white pill, so a reader arriving from a search
   result sees the same site the homepage is. What sits inside it (the menu,
   Buy) is assets/menu.css, shared by every page. */

.menubar {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 56px;
  max-width: 1160px;
  width: calc(100% - 28px);
  margin: 14px auto 0;
  padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(4, 69, 144, 0.06), 0 8px 24px -12px rgba(4, 69, 144, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px;
}

.menubar__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.menubar__logo { display: block; width: 20px; height: 20px; }

.menubar__spacer { margin-left: auto; }

.menubar > .btn { flex-shrink: 0; }

/* The iris pill — the landing's filled call to action, restated. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  background-color: var(--marquee);
  background-image: var(--cta);
  background-size: 100% 200%;
  background-position: 0 0;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 45, 110, 0.3);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, background-position 220ms ease, transform 140ms ease, box-shadow 140ms ease;
  box-shadow: var(--shadow-cta);
}

.btn:hover {
  background-color: var(--marquee-deep);
  background-position: 0 100%;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-cta);
}

.btn:focus-visible { outline-offset: 3px; }

.btn--small {
  min-height: 36px;
  padding: 0 18px;
  font-size: 0.88rem;
}

/* ── The document ────────────────────────────────────────────────────────── */

.doc {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(56px, 9vh, 104px);
}

.doc__head { margin-bottom: calc(var(--step) * 5); }

/* Display type is Inter at 500 and never bolder; the heading carries its own
   weight, so there is no label above it. */
.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.doc__dates {
  margin: calc(var(--step) * 2) 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.doc__dates a { text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* The one place the capture grammar is spent: the summary someone reads when
   they are trying to find out whether to trust the thing. A bone-white pane
   inside a 1.5px iris marquee with eight handles; square corners, because a
   capture selection is the one deliberately sharp rectangle in a rounded
   system. It is measured, not captioned: readout.js reports the pane's real
   rendered size. */

.selection {
  position: relative;
  max-width: min(720px, 100%);
  margin: 0 0 calc(var(--step) * 6);
}

.selection__pane {
  background: var(--card);
  border: 1.5px solid var(--marquee);
  padding: clamp(22px, 3.4vw, 32px);
}

.selection__pane h2 {
  margin: 0 0 calc(var(--step) * 2);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.selection__pane ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.selection__pane li {
  position: relative;
  padding-left: 22px;
  margin-bottom: calc(var(--step) * 1.5);
  font-size: 16px;
  line-height: 1.55;
}

.selection__pane li:last-child { margin-bottom: 0; }

/* The list marker is a handle: the same 9px iris square as the corners. */
.selection__pane li::before,
.selection__handle {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--marquee);
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px var(--marquee);
}

.selection__pane li::before { left: 0; top: 0.55em; }

.selection__handle--tl { top: -5px; left: -5px; }
.selection__handle--tr { top: -5px; right: -5px; }
.selection__handle--bl { bottom: -5px; left: -5px; }
.selection__handle--br { bottom: -5px; right: -5px; }
.selection__handle--tm { top: -5px; left: 50%; margin-left: -5px; }
.selection__handle--bm { bottom: -5px; left: 50%; margin-left: -5px; }
.selection__handle--ml { left: -5px; top: 50%; margin-top: -5px; }
.selection__handle--mr { right: -5px; top: 50%; margin-top: -5px; }

.selection__readout {
  position: absolute;
  right: 0;
  bottom: -26px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--marquee);
}

/* ── Body + contents rail ────────────────────────────────────────────────── */

.doc__body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* `min-width: 0` on both columns: a grid item's automatic minimum size is its
   content, and one wide table would otherwise push the whole document past the
   viewport instead of scrolling inside `.table-wrap`. */
.toc {
  position: sticky;
  top: 92px;
  min-width: 0;
  font-size: 14px;
}

.toc h2 {
  margin: 0 0 calc(var(--step) * 1.5);
  font-size: 13px;
  font-weight: 500;
  color: var(--fog);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li { margin-bottom: 7px; counter-increment: toc; }

/* Hanging indent: a wrapped entry lines up under its own text rather than
   under its number, so the numbers stay a readable column of their own. */
.toc a {
  display: block;
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
  transition: color 120ms ease;
}

.toc a::before {
  content: counter(toc) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.toc a:hover { color: var(--marquee); }

.prose {
  min-width: 0;
  max-width: 68ch;
}

.prose h2 {
  margin: calc(var(--step) * 6) 0 calc(var(--step) * 2);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  scroll-margin-top: 92px;
  text-wrap: balance;
}

.prose h2 small {
  font-family: var(--mono);
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fog);
}

.prose > h2:first-child { margin-top: 0; }

.prose h3 {
  margin: calc(var(--step) * 4) 0 calc(var(--step) * 1);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.prose p {
  margin: 0 0 calc(var(--step) * 2);
  color: var(--ink);
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  margin: 0 0 calc(var(--step) * 2);
  padding-left: 20px;
}

.prose li { margin-bottom: calc(var(--step) * 1); }

.prose a {
  color: var(--marquee);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 105, 224, 0.4);
}

.prose a:hover { color: var(--marquee-deep); text-decoration-color: currentColor; }

.prose strong { font-weight: 600; }

/* A statement that answers the section's question outright. The pages are
   written to be quotable, by a reader in a hurry and by whatever summarizes
   them, so the answer is never buried in the middle of a paragraph. A
   bone-white card on the sky canvas: the canvas-to-card shift is the depth,
   with no border to do it. */
.answer {
  margin: 0 0 calc(var(--step) * 2.5);
  padding: calc(var(--step) * 2.5) calc(var(--step) * 3);
  background: var(--card);
  border-radius: var(--radius-card-sm);
  font-size: 16.5px;
}

.answer p { margin: 0; }
.answer p + p { margin-top: calc(var(--step) * 1.5); }

/* Shortcuts, file names, paths: the mono voice, on an inline surface. */
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 5px;
  white-space: nowrap;
}

.answer .mono { background: var(--paper); }

/* A command worth copying whole: the mono voice on a block surface. */
.prose pre {
  font-family: var(--mono);
  font-size: 0.86em;
  line-height: 1.55;
  padding: calc(var(--step) * 1.5) calc(var(--step) * 2);
  margin: 0 0 calc(var(--step) * 3);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card-sm);
  overflow-x: auto;
  white-space: pre;
}
.prose pre code { font: inherit; }

/* Wide content scrolls inside itself; the page never scrolls sideways. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 calc(var(--step) * 3);
  background: var(--card);
  border-radius: var(--radius-card-sm);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-raised);
}

thead th:first-child { border-top-left-radius: var(--radius-card-sm); }
thead th:last-child { border-top-right-radius: var(--radius-card-sm); }

tbody tr:last-child td { border-bottom: 0; }

.doc__contact {
  margin-top: calc(var(--step) * 6);
  padding-top: calc(var(--step) * 3);
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
}

.doc__contact a { color: var(--marquee); }

/* ── The Download page ─────────────────────────────────────────────────────
   Not a document: one decision, so one column of copy and one picture. The
   copy is the name, the button, and the three requirements that decide
   whether the button is any use; the picture is the Snapline mark
   (assets/snapline-web.webp, from docs/assets/brand/snapline-web.png). On a phone,
   sendtomac.js hides the button (a DMG is useless there) and shows "Send the
   link to my Mac" in its place. */

.get {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  max-width: 1080px;
  min-height: calc(100svh - 190px);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--gutter);
}

.get__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.get__title span {
  display: block;
  color: #6b7079;
}

.get__lede {
  margin: calc(var(--step) * 2) 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.get__button {
  width: 100%;
  min-height: 52px;
  margin-top: calc(var(--step) * 4);
}

.get__button[hidden] { display: none; }

.get__note {
  margin: calc(var(--step) * 1.5) 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.get__reqs {
  margin-top: calc(var(--step) * 4);
  padding-top: calc(var(--step) * 2.5);
  border-top: 1px solid var(--rule);
}

.get__reqs h2 {
  margin: 0 0 calc(var(--step) * 1.5);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
}

.get__reqs dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}

.get__reqs dt { color: var(--ink-soft); }
.get__reqs dd { margin: 0; text-align: right; color: var(--ink); }
.get__reqs .mono { font-size: 12.5px; }

.get__help {
  margin: calc(var(--step) * 2.5) 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.get__help a {
  color: var(--ink);
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

/* The mark on a bone-white tile, lit from behind and floating a little. */
.get__art {
  position: relative;
  display: grid;
  place-items: center;
}

.get__art::before {
  content: "";
  position: absolute;
  width: min(480px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 38%, rgba(255, 255, 255, 0) 70%);
}

.get__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(200px, 24vw, 280px);
  aspect-ratio: 1;
  border-radius: 23%;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(4, 69, 144, 0.08),
    0 36px 70px -24px rgba(4, 69, 144, 0.38);
}

.get__tile img {
  display: block;
  width: 80%;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .get__tile { animation: get-float 7s ease-in-out infinite; }
}

@keyframes get-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sendtomac { margin-top: calc(var(--step) * 3); }
.sendtomac[hidden] { display: none; }
.sendtomac .btn { width: 100%; }

.sendtomac__label {
  margin: 0 0 10px;
  font-weight: 500;
  color: var(--ink);
}

.sendtomac__hint {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.sendtomac__hint[hidden] { display: none; }

/* A touch device at phone or tablet width without the script: show the
   share button anyway; the script, when it runs, decides by user agent. */
@media (hover: none) and (pointer: coarse) and (max-width: 900px) {
  .sendtomac[hidden] { display: block; }
}

/* Narrow: the icon first and smaller, the copy under it. */
@media (max-width: 820px) {
  .get {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--step) * 4);
    min-height: 0;
    max-width: 520px;
    padding-top: calc(var(--step) * 4);
  }

  .get__art { order: -1; }
  .get__art::before { width: 300px; }
  .get__tile { width: 132px; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  padding: 22px 20px 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.footer a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.footer a:hover { color: var(--marquee); text-decoration-color: currentColor; }

@media (max-width: 900px) {
  .doc__body { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    padding-bottom: calc(var(--step) * 3);
    border-bottom: 1px solid var(--rule);
  }
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }
}

@media (max-width: 560px) {
  .selection__handle { display: none; }
  .selection__readout { display: none; }
  .selection__pane { border-radius: 12px; }
}
