/* textparcel.com
   One stylesheet for every page. Tokens, type, layout and motion follow
   site/DESIGN.md. Light is the bare root; dark follows the system until the
   visitor picks a theme with the header's button, which stamps data-theme on
   <html> (site.js). Every component below has a deliberate dark treatment:
   mostly through the tokens, and where a token isn't enough, a rule next to
   the component says so.

   Contents
     1. Fonts            10. Cards, paper          19. How it works
     2. Tokens            11. Tables, spreadsheet   20. Pricing
     3. Base              12. Accordion             21. CTA card
     4. Type              13. Hero, collage         22. Download
     5. Layout            14. Transcript bits       23. Buy
     6. Skip link         15. Demo                  24. Support
     7. Header            16. Comparison            25. Forms, thanks
     8. Footer            17. Flow diagram          26. Utilities
     9. Buttons, lists    18. Sample pairing        27. Motion, media
                                                    28. Pages
                                                    28b. Guides
                                                    28c. Guide video
                                                    28d. Guides hub
                                                    29. Service pages */


/* 1. Fonts ------------------------------------------------------------------
   Self-hosted latin subsets from Google Fonts' css2 API, unmodified, all SIL
   OFL 1.1 (licences beside the files: assets/fonts/OFL-*.txt). The
   unicode-range is Google's latin range. It has no U+2192 (the right arrow),
   so an arrow typed in copy renders from the next font in the stack. */

/* Newsreader: variable, wght 200 to 800 and opsz 6 to 72 in the file; the
   site uses 400 to 600 and the browser picks the optical size by font size. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/Newsreader-Variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader italic: 400 only, variable in opsz. */
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Sans: variable, wght 400 to 700 in the file; the site uses 400 to 600. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/InstrumentSans-Variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono: two static weights. */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 2. Tokens -----------------------------------------------------------------
   Three states: the bare root is light; dark applies when the system prefers
   it and the visitor hasn't picked light, or when the visitor picked dark.
   The dark block is written twice on purpose (a media query and an attribute
   selector can't share one rule); keep the two copies identical.

   Components use the base tokens directly (never a token built from another
   at the root), so a scope like .band-dark can re-point --ink and the rest
   and everything inside follows. Body text is at least 4.5:1 on --bg,
   --band and --surface in both themes, --ink-3 included. */
:root {
  color-scheme: light;

  --bg: #F4F4F0;
  --band: #ECECE6;          /* alternate sections */
  --surface: #FFFFFF;       /* cards, paper */
  --fill: #F7F7F4;          /* table head fill inside a card */
  --ink: #1C1C1B;
  --ink-2: #4A4A45;
  --ink-3: #686862;
  --rule: #DAD9D2;
  --rule-soft: #E9E8E2;     /* hairlines inside cards and paper */
  --rule-strong: #1C1C1B;
  --accent: #2445D4;
  --accent-hover: #16289A;
  --on-accent: #FFFFFF;     /* text on an --accent fill */
  --on-dark: #F4F4F0;
  --btn-ink: #F4F4F0;       /* text on the primary (ink) button */

  /* The dark band and dark cards, in both themes */
  --dark: #1C1C1B;
  --dark-surface: #262625;
  --dark-ink: #F4F4F0;
  --dark-muted: #B9B8B0;
  --dark-ink-3: #8F8D87;
  --dark-rule: #3A3A37;
  --dark-line: #5A5A55;     /* secondary button border, dashed note */
  --dark-arrow: #6F6E68;
  --dark-accent: #9DB0FF;

  --header-bg: rgba(244, 244, 240, 0.88);
  --selection: #FFE15A;
  --selection-ink: #1C1C1B;
  --hl: #FFE15A;                          /* the highlighter behind a phrase */
  --hl-row: rgba(255, 225, 90, 0.45);     /* the matching spreadsheet row */
  --dot: rgba(28, 28, 27, 0.09);          /* the demo panel's dot grid */
  --ph: #E6E5DE;                          /* photo placeholder */
  --ph-ink: #8E8D86;

  --shadow-lift: 0 28px 60px -32px rgba(28, 28, 27, 0.4);
  --shadow-paper: 0 1px 2px rgba(28, 28, 27, 0.05), 0 22px 44px -16px rgba(28, 28, 27, 0.24);
  --shadow-front: 0 2px 4px rgba(28, 28, 27, 0.06), 0 34px 64px -22px rgba(28, 28, 27, 0.34);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px -8px rgba(28, 28, 27, 0.5);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --content: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 8vw, 120px);
  --header-h: 65px;   /* the sticky header's height, for anchor jumps */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #1C1C1B;
    --band: #232322;
    --surface: #262625;
    --fill: #232322;
    --ink: #ECEBE8;
    --ink-2: #B9B8B0;
    --ink-3: #8F8D87;
    --rule: #3A3A37;
    --rule-soft: #31312F;
    --rule-strong: #ECEBE8;
    --accent: #7B86FF;
    --accent-hover: #9DB0FF;
    --on-accent: #1C1C1B;
    --on-dark: #ECEBE8;
    --btn-ink: #1C1C1B;

    --dark: #0F0F0E;
    --dark-surface: #1A1A19;
    --dark-ink: #ECEBE8;
    --dark-muted: #A8A6A0;
    --dark-rule: #2E2E2C;
    --dark-line: #4A4A46;
    --dark-arrow: #5E5D58;

    --header-bg: rgba(28, 28, 27, 0.88);
    --selection: #3B3F8F;
    --selection-ink: #ECEBE8;
    --hl: #3B3F8F;
    --hl-row: rgba(123, 134, 255, 0.24);
    --dot: rgba(236, 235, 232, 0.07);
    --ph: #34342F;
    --ph-ink: #8F8D87;

    --shadow-lift: 0 24px 56px -24px rgba(0, 0, 0, 0.6);
    --shadow-paper: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 56px -24px rgba(0, 0, 0, 0.6);
    --shadow-front: 0 2px 4px rgba(0, 0, 0, 0.4), 0 34px 64px -22px rgba(0, 0, 0, 0.7);
    --shadow-btn: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #1C1C1B;
  --band: #232322;
  --surface: #262625;
  --fill: #232322;
  --ink: #ECEBE8;
  --ink-2: #B9B8B0;
  --ink-3: #8F8D87;
  --rule: #3A3A37;
  --rule-soft: #31312F;
  --rule-strong: #ECEBE8;
  --accent: #7B86FF;
  --accent-hover: #9DB0FF;
  --on-accent: #1C1C1B;
  --on-dark: #ECEBE8;
  --btn-ink: #1C1C1B;

  --dark: #0F0F0E;
  --dark-surface: #1A1A19;
  --dark-ink: #ECEBE8;
  --dark-muted: #A8A6A0;
  --dark-rule: #2E2E2C;
  --dark-line: #4A4A46;
  --dark-arrow: #5E5D58;

  --header-bg: rgba(28, 28, 27, 0.88);
  --selection: #3B3F8F;
  --selection-ink: #ECEBE8;
  --hl: #3B3F8F;
  --hl-row: rgba(123, 134, 255, 0.24);
  --dot: rgba(236, 235, 232, 0.07);
  --ph: #34342F;
  --ph-ink: #8F8D87;

  --shadow-lift: 0 24px 56px -24px rgba(0, 0, 0, 0.6);
  --shadow-paper: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 56px -24px rgba(0, 0, 0, 0.6);
  --shadow-front: 0 2px 4px rgba(0, 0, 0, 0.4), 0 34px 64px -22px rgba(0, 0, 0, 0.7);
  --shadow-btn: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}

/* The dark scope: a full-width dark band (.band-dark) or a dark card
   (.card-dark, .cta-card). It re-points the base tokens, so text, rules,
   buttons, links, focus rings and the mark inside all turn over with it. In
   light it is the ink color; in dark it is a step darker than the page, so
   it still reads as a band. */
.band-dark,
.card-dark,
.cta-card {
  color-scheme: dark;
  --bg: var(--dark);
  --surface: var(--dark-surface);
  --fill: var(--dark-surface);
  --ink: var(--dark-ink);
  --ink-2: var(--dark-muted);
  --ink-3: var(--dark-ink-3);
  --rule: var(--dark-rule);
  --rule-soft: var(--dark-rule);
  --rule-strong: var(--dark-ink);
  --accent: var(--dark-accent);
  --accent-hover: var(--dark-ink);
  --on-accent: var(--dark);
  --btn-ink: var(--dark);
  --shadow-btn: none;
  background: var(--dark);
  color: var(--ink);
}


/* 3. Base -------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 24px);  /* anchors land below the sticky header */
}

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

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, td, figcaption { text-wrap: pretty; }

/* Lists with a class are components and carry no bullets; plain lists in
   running text (Privacy, Terms, Support) keep theirs. */
ul[class], ol[class] { list-style: none; padding: 0; }
ul:not([class]), ol:not([class]) { padding-left: 1.3em; }
ul:not([class]) > li + li, ol:not([class]) > li + li { margin-top: 6px; }
li::marker { color: var(--ink-3); }

img, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
strong, b { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { height: 0; margin: 0; border: 0; border-top: 1px solid var(--rule); }

::selection { background: var(--selection); color: var(--selection-ink); }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms, background-color 150ms, border-color 150ms, text-decoration-color 150ms;
}
a:hover { color: var(--accent-hover); }

/* Focus: a 2px accent ring everywhere, rounded on text links and summaries.
   Inside the dark scope --accent is the light blue, so the ring still shows. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a:not(.btn):focus-visible, summary:focus-visible { border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }


/* 4. Type -------------------------------------------------------------------
   Newsreader for h1, h2, h3 and the wordmark; Instrument Sans for body and
   UI; IBM Plex Mono for eyebrows, labels, counts and the checksum. */
h1, .h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.h1-home { font-size: clamp(50px, 6.4vw, 92px); }

h2, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.h2-display { font-size: clamp(42px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.025em; }  /* "$19, once." and "Nothing leaves your Mac." */
.h2-md { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }       /* Download and Buy sections */
.h2-sm { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.015em; }      /* Support and Privacy sections */

h3, .h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Sans titles for cards and rows (the artboards' bold labels) */
.title-sm { font-family: var(--sans); font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.title-md { font-family: var(--sans); font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.serif { font-family: var(--serif); }

.lede {
  max-width: 33em;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}
.intro { max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--ink-2); }  /* the sentence beside a section title */

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* An eyebrow in parts ("Privacy policy", "Last updated ..."): each part a
   <span>, spaced apart, wrapping on phones. A plain .eyebrow is one run of
   text, so a data-fill <span> inside it stays inline. */
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label-accent { color: var(--accent); font-weight: 500; }

.caption { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 14px; line-height: 1.5; }
.fine { font-size: 13.5px; line-height: 1.5; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.strong { color: var(--ink); font-weight: 600; }

/* The highlighter behind a phrase (the home headline, the matched line on
   the sample card). Yellow in light, a quiet indigo in dark, so light text
   stays readable on it. */
.hl {
  background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 93%, transparent 93%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.06em;
  margin: 0 -0.06em;
}

/* Interface words: keys and menu items */
kbd {
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86em;
  white-space: nowrap;
}
code { font-family: var(--mono); font-size: 0.92em; }

/* Standalone links: "Resend my key", "Privacy details" */
.link { font-size: 15px; font-weight: 600; }

/* "See what you get" and "Read exactly what's sent and kept": a text link
   with an arrow after it, 44px tall. Accent inside the dark scope. Inline
   (not flex), like .btn, so a <span data-fill> inside stays in the text. */
.link-arrow {
  display: inline-block;
  padding-block: calc((44px - 1.5em) / 2);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow svg { display: inline-block; margin-inline-start: 8px; vertical-align: -0.15em; }
.link-arrow:hover { color: var(--accent); }
.band-dark .link-arrow, .card-dark .link-arrow { color: var(--accent); }
.band-dark .link-arrow:hover, .card-dark .link-arrow:hover { color: var(--accent-hover); }


/* 5. Layout -----------------------------------------------------------------
   .wrap: the 1200px column with the side gutter. Sections are full width so
   bands run edge to edge; put .wrap inside them. */
.wrap { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding-block: var(--section); }
.section-ruled { border-top: 1px solid var(--rule); }
.flush-top { padding-top: 0; }
.band { background: var(--band); }
/* .band-dark is in the tokens section (it is a token scope). */

/* Stacks: a column with a fixed gap between children */
.stack, .stack-tight, .stack-loose, .stack-section { display: flex; flex-direction: column; }
.stack { gap: 16px; }
.stack-tight { gap: 8px; }
.stack-loose { gap: 28px; }
.stack-section { gap: clamp(40px, 5vw, 56px); }

/* A section title with its sentence beside it, bottoms aligned */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 64px;
}
.section-head > h2 { max-width: 11em; }

/* Two columns that stack under about 1000px: text and a card (features,
   sample) */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 56px 80px;
  align-items: center;
}

/* A title column and a wide column (FAQ, "What version 1 doesn't do",
   "Try it before you pay") */
.side { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.side-head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.side-body { flex: 999 1 560px; min-width: 0; }

/* Auto grids of cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.grid-cards-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }

/* Ledger: the Support and Privacy sections. A heading column (with an
   optional number) and a body column, hairlines between rows, a strong
   rule over the first. */
.ledger { display: flex; flex-direction: column; }
.ledger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 64px;
  padding-block: 48px;
  border-top: 1px solid var(--rule);
}
.ledger-row:first-child { border-top: 1.5px solid var(--rule-strong); }
.ledger-row:last-child { border-bottom: 1px solid var(--rule); }
.ledger-head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.ledger-head p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.ledger-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; font-weight: 500; color: var(--accent); }
.ledger-body {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  line-height: 1.6;
}

/* Running text (Terms): paragraphs and lists spaced evenly */
.prose > * + * { margin-top: 14px; }
.prose h2, .prose h3 { margin-top: 32px; }


/* 6. Skip link --------------------------------------------------------------*/
.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus {
  left: 16px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--btn-ink);
  text-decoration: none;
}


/* 7. Header -----------------------------------------------------------------
   Sticky and translucent on screens wider than 760px; on phones it is two
   rows and scrolls away with the page (see the 760px query). The markup is
   identical on every page: docs/dev/site-snippets/header.html. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px clamp(16px, 3vw, 32px);
  padding-block: 10px;
}

/* The wordmark: the mark and "TextParcel" in Newsreader 600 */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark-name {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* The mark (E1, the transcript stack): the front page in currentColor, the
   card behind it and the last line in --accent, the gap between them and the
   two lines in --bg, all set in the SVG itself, so it turns over with the
   theme and the dark scope on its own (in dark the page is the light ink).
   The SVG's box is 26 by 28 (viewBox 10 8 44 48). In the wordmark it is
   raised 4px from the centre so the bottom of the page sits on the name's
   baseline and the tail hangs below it like a descender (the footer's 24 by
   26 lands the same way). A mark on anything but the page color sets --bg
   on itself (Buy's license card, the flow diagram's app node). */
.mark { flex: none; width: 26px; height: 28px; }
.wordmark .mark { position: relative; top: -4px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(16px, 2.2vw, 28px);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--accent); }
/* The page you're on: a 2px underline */
.nav-links a[aria-current="page"]:not(.btn) {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-links > .nav-theme { display: flex; margin-inline-start: -8px; }

/* The theme button: a 28px circle after the Download pill, the sun in light
   and the moon in dark (the app's own drawings, 1.5px strokes). It needs the
   script, so it shows once site.js has marked <html> with .js. Its tap area
   is 44px (the ::after). */
.theme-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 150ms, background-color 150ms;
}
.theme-toggle::after { content: ""; position: absolute; inset: -8px; }
.js .theme-toggle { display: inline-flex; }
html:not(.js) .nav-theme { display: none; }
.theme-toggle:hover { color: var(--ink); background: var(--band); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }


/* 8. Footer -----------------------------------------------------------------*/
.site-footer { padding-block: 48px 56px; border-top: 1px solid var(--rule); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 64px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand .wordmark { align-self: flex-start; }
.footer-brand .mark { width: 24px; height: 26px; }
.footer-brand .wordmark-name { font-size: 21px; }
.footer-brand p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 15px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); }
.footer-nav a[aria-current="page"] { font-weight: 600; }

.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a {
  align-self: flex-start;
  margin-bottom: -11px;
  padding-block: 11px;   /* a 44px tap area (23px line + 22px). The top half also sets the
                            address on the same line as the links and the wordmark (both
                            44px tall, text centred); the bottom half moves nothing. */
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { color: var(--ink-3); font-size: 13.5px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
}


/* 9. Buttons and lists ------------------------------------------------------
   Pills. Primary: an ink fill with the page color as its text (light text
   in light, dark text in dark), turning accent on hover. Secondary: a 1.5px
   ink border. Icons sit before the label and take currentColor.
   Buttons are inline blocks, not flex boxes, on purpose: in a flex box a
   <span data-fill> becomes its own item and the text around it loses its
   spaces ("$ 19", "Download TextParcel1.0.0"). The height comes
   from --btn-h: the padding centres one line of text in it. */
.btn {
  --btn-h: 52px;
  display: inline-block;
  min-height: var(--btn-h);
  padding: calc((var(--btn-h) - 3px - 1.2em) / 2) 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.btn svg { display: inline-block; margin-inline-end: 10px; vertical-align: -0.2em; }
.btn-sm svg { margin-inline-end: 8px; }
.btn svg.icon-after { margin-inline: 8px 0; }   /* an icon after the label */
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--btn-ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.band-dark .btn-secondary, .card-dark .btn-secondary, .cta-card .btn-secondary { border-color: var(--dark-line); }
.band-dark .btn-secondary:hover, .card-dark .btn-secondary:hover, .cta-card .btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-sm { --btn-h: 44px; padding-inline: 18px; font-size: 15px; }   /* the header's Download pill */
.btn-lg { --btn-h: 56px; padding-inline: 28px; font-size: 17px; }   /* hero and CTA card */
.btn-xl { --btn-h: 58px; padding-inline: 30px; font-size: 18px; }   /* the one big button on Download and Buy */
.btn-block { display: block; width: 100%; }
.btn-lift { box-shadow: var(--shadow-btn); }

.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary[aria-disabled="true"]:hover, .btn-primary:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--btn-ink); }

/* A row of buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.actions-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* Mono facts in a row ("Free for 100 messages", "macOS 14 or later"), each
   with an optional check icon in --accent. The items are blocks with the
   icon inline, so a <span data-fill> inside keeps its spaces. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
}
.facts > li, .facts > span { display: block; }
.facts svg { display: inline-block; margin-inline-end: 7px; vertical-align: -0.2em; color: var(--accent); }

/* A column of checked lines (pricing cards, the privacy list). The icon
   hangs in the left padding, so the line can hold any inline content. */
.tick-list { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.tick-list > li { position: relative; padding-left: 28px; }
.tick-list > li > svg { position: absolute; left: 0; top: 0.2em; color: var(--accent); }
.tick-list.is-plain svg { color: var(--ink-3); }      /* the free card's grey checks */
.tick-list-lg { gap: 14px; font-size: 17px; line-height: 1.6; }
.tick-list-lg > li { padding-left: 30px; }
.tick-list-lg > li > svg { top: 0.3em; }
.tick-list .is-note svg { color: var(--ink-3); }      /* the "One exception" line */
.tick-list strong { color: var(--ink); }

/* Numbered badges: the five features and their markers on the card. In
   dark the number is dark on the lighter accent. */
.badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.badge-sm { width: 22px; height: 22px; font-size: 11px; }

.numbered { display: flex; flex-direction: column; gap: 20px; }
.numbered > li { display: flex; align-items: flex-start; gap: 16px; }
.numbered > li > div { display: flex; flex-direction: column; gap: 2px; }
.numbered p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* Q&A or limit rows in a grid of hairlines (Download's "What version 1
   doesn't do", Buy's "Try it before you pay") */
.hairline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 40px;
  border-top: 1px solid var(--rule-strong);
}
@media (min-width: 640px) {
  .hairline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* four items: 2 + 2 at any width, never 3 + 1 */
}
.hairline-grid > * {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.hairline-grid > .with-icon { position: relative; padding-left: 34px; }               /* a leading dash or icon */
.hairline-grid > .with-icon > svg { position: absolute; left: 0; top: 24px; color: var(--ink-3); }
.hairline-grid p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }


/* 10. Cards and paper -------------------------------------------------------
   Cards: --surface with a 1px --rule border. Only the two lifted cards (the
   price card and the install card) carry a shadow (.lifted). */
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
/* A paragraph in a card is grey 16px body text. :where() keeps the rule at
   the weight of a bare "p", so a class on the paragraph (.label, .note-icon,
   .small, .form-answer) always wins over it. */
:where(.card) p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.card-lg { gap: 12px; padding: 28px; border-radius: 16px; }
.card-xl { gap: 28px; padding: clamp(28px, 4vw, 56px); border-radius: 20px; }
.card-strong { border: 1.5px solid var(--rule-strong); }
.lifted { box-shadow: var(--shadow-lift); }
/* .card-dark is a card in the dark scope (tokens section); the page's dark
   color, not the scope's surface. */
.card.card-dark { border-color: var(--dark); background: var(--dark); }
/* Serif titles in cards; the sans titles (.title-sm, .title-md) keep their
   own size. */
.card .h3, .card h3:not(.title-sm, .title-md) { font-size: 26px; }

/* Paper: the export mimics (collage, transcript and spreadsheet cards).
   --surface in both themes, like the app's own preview. */
.paper {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.paper-lg { border-radius: 10px; }
.paper-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.paper-bar { padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); }  /* a head row on a card with a table under it */

/* The SAMPLE stamp on the cover card */
.stamp {
  display: inline-block;
  padding: 2px 7px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-weight: 500;
  transform: rotate(-4deg);
}

/* Counts (the cover card): label left, mono number right, strong rules at
   the top and bottom */
.counts { display: grid; grid-template-columns: minmax(0, 1fr) auto; font-size: 13.5px; }
.counts dt, .counts dd { padding-block: 8px; border-top: 1px solid var(--rule-soft); }
.counts dd { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.counts dt:first-of-type, .counts dd:first-of-type { border-top-color: var(--rule-strong); }
.counts dt:last-of-type, .counts dd:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.counts .is-total { font-weight: 600; }

/* Small mono tags: EDITED, UNSENT */
.tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* A reaction pill: "Jordan Reyes loved this" */
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.4;
}

/* A photo in a transcript: the real one (img.photo) or a placeholder */
.photo { border-radius: 4px; object-fit: cover; }
.photo-ph {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--ph);
  color: var(--ph-ink);
}


/* 11. Tables ----------------------------------------------------------------
   .table: hairline rows, mono column heads, row heads in 600 (Privacy).
   Wrap it in .table-scroll so a narrow screen scrolls the table, not the
   page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.table th, .table td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  padding-top: 0;
  border-bottom: 1.5px solid var(--rule-strong);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table tbody th { width: 34%; font-weight: 600; color: var(--ink); }
.table td { color: var(--ink-2); }
.table td strong { color: var(--ink); }

/* .sheet: the spreadsheet mimic. Mono, fixed columns, cut with an ellipsis;
   the head row is filled (--fill: a pale grey in light, --band in dark). */
.sheet {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}
.sheet th, .sheet td {
  overflow: hidden;
  padding: 7px 10px;
  border-bottom: 1px solid var(--rule-soft);
  font-weight: 400;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet th { background: var(--fill); color: var(--ink-3); font-weight: 500; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .is-match td { background: var(--hl-row); color: var(--ink); }  /* the row that matches the transcript line */
.sheet .is-dim td { opacity: 0.5; }                                     /* context rows around it (decorative, aria-hidden) */
.sheet-lg { font-size: 12px; }


/* 12. Accordion -------------------------------------------------------------
   <div class="faq"><details><summary>Question <svg class="plus">...</svg>
   </summary><p>Answer</p></details>...</div>. All closed by default; the
   plus turns into a cross when open. */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 18px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 150ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover { color: var(--accent); }
.plus { flex: none; transition: transform 200ms ease; }
details[open] > summary .plus { transform: rotate(45deg); }
.faq details > :not(summary) {
  max-width: 40em;
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.6;
}


/* 13. Hero and collage ------------------------------------------------------
   Home: <section class="hero"> holds .hero-grid with .hero-copy (eyebrow,
   h1, lede, actions, facts) and .hero-art (the collage figure). Only the
   home hero fades up. Other pages open with <section class="page-head">,
   the same spacing, no fade. */
.hero, .page-head { padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
}
.hero-grid.top { align-items: flex-start; }   /* Download: the install card lines up with the title */
/* The copy column grows with the viewport so the home h1 sets on two lines
   ("Every message," / "accounted for.") wherever the columns sit side by
   side; under about 1050px the art drops below the copy. */
.hero-copy { flex: 1 1 clamp(420px, 44vw, 620px); min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-art { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-art .caption { text-align: right; }

/* The sample-export collage: three paper cards, overlapping. The spreadsheet
   sits top right, tilted right; the transcript page sits left, tilted left;
   the cover card sits in front. On phones only the cover card shows, flat. */
.collage { position: relative; height: 610px; }
.collage > .paper { position: absolute; }
.collage-sheet {
  top: 0;
  right: 0;
  width: min(440px, 88%);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transform: rotate(2.5deg);
  transform-origin: top right;
}
.collage-page {
  top: 78px;
  left: 0;
  width: min(372px, 84%);
  padding: 22px 22px 30px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-3.5deg);
}
.collage-cover {
  top: 158px;
  right: 4%;
  width: min(360px, 86%);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-front);
}
.cover-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cover-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
}
.cover-counts { margin-top: 20px; }
.cover-note { position: relative; margin-top: 16px; padding-left: 28px; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.cover-note > svg { position: absolute; left: 0; top: 1px; color: var(--accent); }
.cover-note strong { color: var(--ink); }


/* 14. Transcript bits -------------------------------------------------------
   Two families. .pdf-*: typeset like the real export's page (sans, the time
   in grey, a bold sender, a grey status line, centred day dividers). .tx-*:
   the annotated card on Home (a time column and a message column). */
.pdf { color: var(--ink); font-family: var(--sans); font-size: 12.5px; line-height: 1.45; }
.pdf-title { font-size: 1.6em; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.pdf-sub { color: var(--ink-2); font-size: 0.86em; }
.pdf-day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  color: var(--ink-2);
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
}
.pdf-day::before, .pdf-day::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.pdf-msg + .pdf-msg { margin-top: 8px; }
.pdf-time { color: var(--ink-3); }
.pdf-name { font-weight: 600; }
.pdf-status { color: var(--ink-3); font-size: 0.78em; }
.pdf-file { color: var(--ink-3); font-size: 0.78em; }
.pdf-reaction { padding-left: 1.2em; color: var(--ink-2); font-size: 0.8em; }
.pdf-photo { width: 46%; aspect-ratio: 4 / 3; margin-top: 4px; }

.tx { font-size: 15px; line-height: 1.5; }
.tx-day {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 6px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tx-day::after { content: ""; flex: 1; height: 1px; background: var(--rule-soft); }
.tx-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 16px;
  border-top: 1px solid var(--rule-soft);
}
.tx-time { padding-top: 3px; color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.tx-name { font-weight: 600; }
.tx-handle { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.tx-quote { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 6px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.tx-quote svg { margin-top: 2px; }
.tx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tx-meta .badge { margin-left: auto; }
.tx-unsent { color: var(--ink-3); font-style: italic; }
.tx-compact { font-size: 12.5px; line-height: 1.45; }
.tx-compact .tx-row { grid-template-columns: 54px minmax(0, 1fr); gap: 2px 10px; padding-block: 9px; }  /* the collage's transcript page */
.tx-compact .tx-time { padding-top: 2px; font-size: 10.5px; }


/* 15. Demo ------------------------------------------------------------------
   The real app, live, in a 16:10 box (surface, 1px rule, 12px radius, no
   fake chrome). site.js adds <iframe class="demo-frame"> to
   <div class="demo" data-src> on screens 720px or wider at load; the iframe
   keeps the app's 980px width and is scaled to the box (--demo-scale, set by
   site.js); its height follows the box. Narrower screens get the picture
   from <template id="demo-still"> in the box's place, and the figure gets
   .demo-still, which swaps the caption. The box must be a direct child of
   the figure. */
.demo-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.6vw, 48px);
  padding: clamp(32px, 5vw, 72px) clamp(16px, 4.4vw, 64px) clamp(28px, 4.4vw, 64px);
  border-radius: 24px;
  background-color: var(--band);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.demo-figure { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1040px; margin-inline: auto; }
.demo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.demo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 980px;
  height: calc(100% / var(--demo-scale, 1));
  border: 0;
  transform: scale(var(--demo-scale, 1));
  transform-origin: 0 0;
}
/* The still (phones) and the no-script picture, framed like the box */
.demo-figure img { width: 100%; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.demo-note { color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; text-align: center; }
.demo-note .demo-phone, .demo-still .demo-note .demo-live { display: none; }
.demo-still .demo-note .demo-phone { display: inline; }
html:not(.js) .demo, html:not(.js) .demo-note { display: none; }

/* Any other real screenshot, framed the same way */
.shot { width: 100%; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }


/* 16. Comparison ("Screenshots aren't a record.") ---------------------------
   Rows of three: the label, the screenshots cell (a dash, grey) and the
   TextParcel cell (a check, accent). Each cell starts with a .cmp-tag naming
   its column: visually hidden on wide screens (the aria-hidden .colhead row
   shows instead) but still read out, and shown on phones where the cells
   stack. */
.row3 {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 40px;
  align-items: baseline;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.compare > .row3:nth-child(2) { border-top-color: var(--rule-strong); }  /* the first row under the column heads */
.compare > .row3:last-child { border-bottom: 1px solid var(--rule); }
.row3.colhead {
  padding-block: 0 14px;
  border-top: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.colhead .is-us { color: var(--ink); font-weight: 500; }
.cmp-label { font-size: 17px; font-weight: 600; }
.cmp-cell { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.cmp-cell > svg { position: absolute; left: 0; top: 3px; }
.cmp-no { color: var(--ink-3); }
.cmp-yes svg { color: var(--accent); }
.cmp-tag {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* 17. Flow diagram ("Nothing leaves your Mac.") -----------------------------
   Inside .band-dark. Three nodes with arrows; the middle one (TextParcel) is
   turned over, light on the dark band in both themes. Then the dashed
   "The internet" note, and the three columns. Stacks on phones with the
   arrows turned down. */
.flow { display: flex; align-items: stretch; gap: 14px; }
.flow-node {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.flow-node svg { color: var(--ink-2); }
.flow-title { font-size: 18px; font-weight: 600; }
.flow-sub { color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; }
.flow-node.is-app {
  --ink: var(--dark);
  --ink-2: #4A4A45;
  --accent: #2445D4;
  border-color: var(--dark-ink);
  background: var(--dark-ink);
  color: var(--dark);
}
.flow-node.is-app .mark { --bg: var(--dark-ink); width: 24px; height: 26px; color: var(--dark); }
.flow-arrow { flex: none; align-self: center; color: var(--dark-arrow); }
.flow-net {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 24px;
  border: 1px dashed var(--dark-line);
  border-radius: 12px;
}
.flow-net svg, .flow-net .label { color: var(--accent); }
.flow-net p { flex: 1 1 320px; color: var(--ink); font-size: 15.5px; line-height: 1.5; }

/* The three columns under it: a top rule, serif h3, muted text */
.band-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* three in a row from 761px (the 760px query), never 2 + 1 */
  gap: 32px 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.band-cols > div { display: flex; flex-direction: column; gap: 8px; }
.band-cols p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }


/* 18. Sample pairing ("A transcript a lawyer can read.") --------------------*/
/* The PDF / SHEET / MEDIA / COUNTS list */
.deflist { display: flex; flex-direction: column; border-top: 1px solid var(--rule-strong); }
.deflist > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}
.deflist dt { padding-top: 4px; color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.deflist dd { display: flex; flex-direction: column; gap: 3px; }
.deflist dd p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* The same message in the transcript and the spreadsheet, joined by a
   dashed accent line */
.pairing { display: flex; flex-direction: column; }
.pairing > .paper { padding: 22px 24px; }
.pairing > .paper.has-table { padding: 0; overflow: hidden; }
.pairing-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  margin-left: 46px;
  padding-left: 12px;
  border-left: 1.5px dashed var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}


/* 19. How it works ----------------------------------------------------------
   Three cards. Each opens with a 220px window onto a real screenshot (light
   and dark swapped by site.js), cropped from the top, then the number, the
   title and the words. One column on phones, three in a row from 761px up
   (an auto-fit grid would leave step 3 alone on a second row on tablets);
   the window keeps the desktop card's shape (220px tall at 384px wide) in
   narrower cards. */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@media (min-width: 761px) {
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
}
.how-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}
.how-shot {
  aspect-ratio: 384 / 220;
  overflow: hidden;
  padding: 24px 24px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--band);
}
.how-shot img {
  width: 100%;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
}
/* Steps 1 and 3: the screenshot fills the window at any card width, cut
   from the top like the zoomed one, so a narrow card (a laptop, a tablet,
   a phone) never shows a strip of the band under a short screenshot. */
.how-shot:not(.is-zoomed) img { height: 100%; object-fit: cover; object-position: 50% 0; }
.how-body { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 32px; }
.how-num { color: var(--accent); font-family: var(--serif); font-size: 44px; line-height: 1; }
.how-body h3 { margin-top: 4px; font-family: var(--sans); font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.how-body p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }


/* 20. Pricing ---------------------------------------------------------------
   Two cards on the band: Free (the page color, a plain rule) and Full (the
   surface, a 1.5px --rule-strong border, lifted). */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; }
.price-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--bg);
}
.price-card.is-full {
  border: 1.5px solid var(--rule-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.price-card > p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.price-head { display: flex; flex-direction: column; gap: 10px; }   /* the 56px "$" rises above its line, so the label needs more than the artboard's 6px */
.price-line { display: flex; align-items: baseline; gap: 12px; }
.price-amount {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.price-amount-xl { font-size: 80px; line-height: 0.95; letter-spacing: -0.03em; }  /* Buy's license card */
.price-per { color: var(--ink-2); font-size: 16px; }
.price-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.price-foot .fine { color: var(--ink-3); text-align: center; }
.price-card > .btn { margin-top: auto; }


/* 21. CTA card --------------------------------------------------------------
   The dark card that closes Home ("Your messages, in one parcel.") and
   Support ("Still stuck? Write to a human."). In the dark scope. */
.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  padding: clamp(36px, 5.5vw, 80px);
  border-radius: 20px;
}
.cta-card > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 60px); }
.cta-card .facts, .cta-card p { color: var(--ink-2); }

/* A mono line of facts with dots between ("about 48 MB · macOS 14 or
   later · Apple silicon and Intel"): each fact a <span>, each dot a
   .fact-sep. On phones each fact takes its own line and the dots go, so no
   line ends on a dot (760px query). */


/* 22. Download --------------------------------------------------------------*/
/* The version badge in the eyebrow ("v1.0.0") */
.version-badge {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 9px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 500;
  text-transform: none;   /* "v1.0.0" keeps its lowercase v in the uppercase eyebrow */
}

/* The checksum card: label, Copy button, the SHA-256 (the one place a hash
   is shown), and how to check it. The Copy button needs the script. */
.checksum-card { gap: 10px; padding: 18px 20px; }
.checksum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checksum {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;   /* the hash breaks anywhere; the file name after it wraps whole */
}
.checksum-card p { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.checksum-card p code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
}
.copy-btn {
  position: relative;
  min-width: 72px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
.copy-btn::after { content: ""; position: absolute; inset: -4px; }  /* 44px tall tap area */
.copy-btn:hover { border-color: var(--ink); }
html:not(.js) .copy-btn { display: none; }

/* The install card: lifted, three ruled steps with serif numbers */
.install-card { gap: 8px; padding: clamp(28px, 3.4vw, 44px); }
.install-card h2 { margin-bottom: 12px; font-size: 32px; letter-spacing: -0.015em; }
.steps-ruled { display: flex; flex-direction: column; }
.steps-ruled > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.steps-ruled > li:first-child { border-top-color: var(--rule-strong); }
.steps-ruled > li:last-child { padding-bottom: 6px; }
.steps-ruled > li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step-num { color: var(--accent); font-family: var(--serif); font-size: 36px; line-height: 1; }
.steps-ruled .title-sm { font-size: 18px; }
.steps-ruled p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Drag to Applications, drawn in HTML */
.drag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 500;
}
.drag-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drag-item .mark { width: 37px; height: 40px; }
.drag svg { color: var(--ink-2); }
.drag .drag-arrow { color: var(--ink-3); }

/* "Before your first export": three tips, each with a link */
.tips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; }
@media (min-width: 1000px) {
  .tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* three in a row, or one under another; never 2 + 1 */
}
.tips > div { display: flex; flex-direction: column; gap: 8px; }
.tips p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }


/* 23. Buy -------------------------------------------------------------------*/
.license-card { gap: 26px; padding: clamp(28px, 3.6vw, 48px); border-radius: 18px; }
.license-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.license-top .mark { --bg: var(--surface); width: 52px; height: 56px; }

/* Spec rows: label left, mono value right, strong rules top and bottom */
.spec-rows { display: flex; flex-direction: column; border-top: 1px solid var(--rule-strong); }
.spec-rows > li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
}
.spec-rows > li:last-child { border-bottom-color: var(--rule-strong); }
.spec-rows > li > :last-child { font-family: var(--mono); font-size: 14px; }

/* A small note with a lock or info icon (the Stripe sentence) */
.note-icon { position: relative; padding-left: 26px; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.note-icon > svg { position: absolute; left: 0; top: 2px; }

/* "What happens after you buy": columns under a strong rule */
.step-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; }
.step-cols > li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1.5px solid var(--rule-strong); }
.step-tag { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.step-cols p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }


/* 24. Support ---------------------------------------------------------------*/
/* Topic cards: five links to the sections below */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.topic {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms, color 150ms;
}
.topic svg { color: var(--accent); }
.topic:hover { border-color: var(--rule-strong); color: var(--ink); }

/* Numbered steps with mono numbers ("1.", "2.") that work with any content
   inside the <li>, nested lists included */
.steps-mono { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps-mono > li { position: relative; padding-left: 44px; counter-increment: step; }
.steps-mono > li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0.18em;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 14px;
}
.steps-mono ul { margin-top: 8px; }

/* One plain link per line (Apple's guides) */
.links { display: flex; flex-direction: column; gap: 8px; }

/* A note with a bold lead-in: "Good to know:", "Still missing?" */
.note { color: var(--ink-2); font-size: 16px; }
.note strong { color: var(--ink); }


/* 25. Forms and thanks ------------------------------------------------------
   Resend: a centred card. site.js expects #resend-form > fieldset[disabled]
   with input[type=email] and button[type=submit], the empty #captcha slot,
   the answer region #resend-answer after the form, and the templates
   #resend-sent and #resend-failed. */
.form-card { width: 100%; max-width: 460px; margin-inline: auto; padding: clamp(24px, 4vw, 36px); text-align: left; }
.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.form input[type="email"], .form input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  transition: border-color 150ms;
}
.form input:hover { border-color: var(--ink-3); }
.form input:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.form input:disabled { color: var(--ink-3); cursor: not-allowed; }
.form .btn { width: 100%; margin-top: 20px; }
/* The bot check is usually invisible; site.js adds .shown when it asks the visitor to click. */
#captcha.shown { margin-top: 16px; }
.form-answer { margin-top: 20px; color: var(--ink-2); font-size: 16px; }
.form-answer:empty { display: none; }
.form-answer:focus { outline: none; }  /* focused only so the answer is read out */
/* The sentence put in from a template is a <p> inside the card; it takes the
   answer's color and size, not the card's paragraph style. */
.form-answer p { color: inherit; font-size: inherit; }
/* The answer that takes the form's place reads like the card's own sentence. */
.form[hidden] + .form-answer { margin-top: 0; color: var(--ink); font-size: 18px; text-align: center; }

/* Thanks: the three steps to unlock, numbered, hairlines between */
.unlock { display: flex; flex-direction: column; border-top: 1px solid var(--rule); counter-reset: unlock; }
.unlock > li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--rule);
  counter-increment: unlock;
}
.unlock > li::before {
  content: counter(unlock);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}


/* 26. Utilities -------------------------------------------------------------*/
.center { text-align: center; }
.center .actions, .center .facts { justify-content: center; }
.center .lede, .center .intro, .center .measure { margin-inline: auto; }
.center .lede { text-wrap: balance; }   /* a centred sentence never leaves one or two words alone on its last line */
.measure { max-width: 40em; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.only-sm { display: none; }
/* A phrase a heading keeps whole when it fits ("a lawyer can read.",
   "Write to a human."), so the line breaks before it, not inside it. Too
   long for the line, it still wraps inside itself. */
.keep { display: inline-block; }


/* 27. Motion and media ------------------------------------------------------
   Motion: only the home hero fades up, once, on first paint (280ms, 70ms
   apart), from a visible resting state, so without the script or under
   reduced motion nothing hides or moves. Hover is a 150ms color change; the
   FAQ plus turns. */
@media (prefers-reduced-motion: no-preference) {
  .hero-fade .hero .hero-copy > *,
  .hero-fade .hero .hero-art { animation: rise 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-fade .hero .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-fade .hero .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-fade .hero .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .hero-fade .hero .hero-copy > :nth-child(n+5) { animation-delay: 280ms; }
  .hero-fade .hero .hero-art { animation-delay: 140ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .plus { transition: none; }
}

/* Phones and small tablets: 760px and under */
@media (max-width: 760px) {
  :root { --header-h: 0px; }
  html { scroll-padding-top: 16px; }

  /* Header: two rows, not sticky (two sticky rows would take too much of a
     small screen). Row one: the wordmark, placed over the row's left end,
     with the Download pill and the theme button at the right; row two: the
     five links. The ::before is the line break. */
  .site-header { position: relative; }
  .site-header .wrap { display: block; padding-block: 8px 4px; }
  .site-header .wordmark { position: absolute; top: 8px; left: 0; z-index: 1; }
  .nav-links { column-gap: 24px; }
  .nav-links::before { content: ""; order: 1; flex-basis: 100%; }
  .nav-links > li { order: 2; }
  .nav-links > .nav-cta { order: 0; margin-inline-start: auto; }
  .nav-links > .nav-theme { order: 0; margin-inline-start: -10px; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav ul { column-gap: 24px; }

  /* The collage becomes its front card, flat */
  .collage { height: auto; }
  .collage > .paper { position: static; }
  .collage-sheet, .collage-page { display: none; }
  .collage-cover { width: 100%; max-width: 440px; margin-inline: auto; }
  .hero-art .caption { text-align: center; }

  .row3 { grid-template-columns: 1fr; gap: 8px; }
  .row3.colhead { display: none; }
  .compare > .row3:nth-child(2) { border-top-color: var(--rule-strong); }
  .cmp-tag {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin-bottom: 2px;
    overflow: visible;
    clip-path: none;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: normal;
  }

  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }

  .fact-line > .fact-sep { display: none; }
  .fact-line > span { display: block; }

  .faq summary { font-size: 17px; }
  .ledger-row { padding-block: 36px; }
  .pairing-link { margin-left: 24px; }
  .only-sm { display: block; }
  .only-lg { display: none; }
}

/* The demo rule: under 720px wide site.js never loads the demo and puts the
   still (1960 by 1280) in the box's place, so the waiting box takes the
   still's shape and nothing jumps. */
@media (max-width: 720px) {
  .demo { aspect-ratio: 1960 / 1280; }
  .demo-panel { border-radius: 16px; }
}

/* Tablets and up: rows of three stay rows of three */
@media (min-width: 761px) {
  .band-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 3.4vw, 48px); }
}

/* Narrow tablets (761 to 820px): the header's five links, the pill and the
   theme button keep one row beside the wordmark (with the default gaps the
   row wraps under 775px). */
@media (min-width: 761px) and (max-width: 820px) {
  .site-header .wrap { column-gap: 16px; }
  .nav-links { column-gap: 14px; }
}

/* Small phones: 460px and under */
@media (max-width: 460px) {
  /* The five header links share row two, spread evenly; the 8px gap is only
     the least they keep, so the row has room to spare at 375px. The theme
     button's margin keeps it 2px from the pill. */
  .nav-links { justify-content: space-between; column-gap: 8px; }
  .nav-links > .nav-theme { margin-inline-start: -6px; }
  /* The footer's six links: two rows of three, so Terms never sits alone on
     a second row */
  .footer-nav ul { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 28px; }
  .wordmark-name { font-size: 21px; }
  .hero-copy .actions > .btn, .cta-card .actions > .btn { width: 100%; }
  .cta-card .actions { flex: 1 1 100%; }   /* else a row with one button stays as wide as the button */
  .collage-cover { padding: 22px 20px 20px; }
  .card-lg, .price-card { padding: 24px 20px; }
  .tx-row { grid-template-columns: 1fr; }
  .tx-time { padding-top: 0; }
  .table { min-width: 0; }   /* two columns fit a phone; no sideways scroll */
  .table th, .table td { padding-right: 12px; }
  .deflist > div { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .drag { justify-content: center; }
  /* Numbered steps give the words more of a phone's width */
  .steps-mono > li { padding-left: 32px; }
  .steps-ruled > li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
}

/* The smallest phones (320 to 374px): the pill drops its icon so the
   wordmark, the pill and the theme button still share the first row. */
@media (max-width: 374px) {
  .nav-cta svg { display: none; }
  .nav-links .btn-sm { padding-inline: 14px; }
  .wordmark { gap: 8px; }
  .wordmark-name { font-size: 20px; }
  /* The five header links at 14px (still about 13px apart at 360px) */
  .nav-links { column-gap: 4px; }
  .nav-links > .nav-theme { margin-inline-start: -2px; }
  .nav-links a:not(.btn) { font-size: 14px; }
}
/* Under 360px: 13px, so the five links still fit one row at 320px (about
   8px apart). */
@media (max-width: 359px) {
  .nav-links a:not(.btn) { font-size: 13px; }
}


/* 28. Pages -----------------------------------------------------------------
   Rules one page needs and no other, scoped under the class on that page's
   <main> (page-home, page-download, page-buy, page-support, page-privacy,
   page-terms, page-utility for Resend, Thanks and 404) and built from tokens
   only, so both themes follow. A rule two pages share is written once. */

/* Shared: Support and Terms open with a shorter page head, because their
   numbered or legal sections follow straight on. */
.page-support .page-head,
.page-terms .page-head { padding-bottom: clamp(48px, 6vw, 80px); }

/* Shared: a standalone link at the end of a flex column (Download's tips,
   Buy's Q&A rows) is only as wide as its words, with a 44px tall tap area
   made of padding and an equal negative margin, so nothing moves. */
.page-download .tips .link,
.page-buy .hairline-grid .link {
  align-self: flex-start;
  margin-block: -11px;
  padding-block: 11px;
}


/* Home (index.html) ---------------------------------------------------------*/

/* The headline always sets on two lines, "Every message," over "accounted
   for.", also when the copy runs the full width (tablets). "Every message,"
   measures 6.5em, so 7em leaves room for it and no more. */
.page-home .h1-home { max-width: 7em; }

/* Hero collage: when the art drops below the copy (under about 1050px wide)
   it keeps the desktop's width, centred, so the three cards still overlap. */
.page-home .collage,
.page-home .hero-art .caption { width: 100%; max-width: 600px; margin-inline: auto; }

/* Hero collage, spreadsheet card: the CSV's first six columns at their real
   widths. The table runs past the card's right edge, as in a spreadsheet
   window, and the card (overflow: hidden) cuts it off. */
.page-home .collage-sheet .sheet { width: 804px; }

/* Hero collage, transcript page: a step smaller than the .pdf default, so
   the header lines sit on one line as they do on the real page. */
.page-home .collage-page .paper-head { margin-bottom: 14px; }
.page-home .collage-page .pdf { font-size: 11.5px; }
.page-home .pdf-sub { margin-top: 2px; }

/* "Everything in the message.": the transcript card, set like the real PDF,
   with numbered markers at the right of the lines they point at. */
.page-home .feature-card { padding: clamp(20px, 3vw, 36px); }
.page-home .feature-card .paper-head { margin-bottom: 4px; }
.page-home .feature-card .pdf { font-size: 14.5px; }
.page-home .marked { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-home .marked > :first-child { min-width: 0; }
.page-home .marked > .badge { margin-top: 0.1em; }

/* The keys photo, cut out of assets/sample-page.png (1600 by 2071): the
   photo is the 376 by 281 box at x 151, y 1155. Width and left are
   percentages of the box's width, top of its height. */
.page-home .photo-crop {
  position: relative;
  width: min(44%, 220px);
  aspect-ratio: 376 / 281;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
}
.page-home .photo-crop img {
  position: absolute;
  top: -411.03%;
  left: -40.16%;
  width: 425.53%;
  max-width: none;
  height: auto;
}

/* "Edited (last edit ...). Earlier versions:" and the list under it, and a
   reply's quote behind a rule, as the real page sets them. */
.page-home .pdf-edit { margin-top: 2px; color: var(--ink-2); font-size: 0.8em; line-height: 1.45; }
.page-home .pdf-edit-note { color: var(--ink-3); font-style: italic; }
.page-home .pdf-edit ul { margin-top: 2px; padding-left: 1.1em; }
.page-home .pdf-quote { margin: 4px 0; padding-left: 10px; border-left: 2px solid var(--rule); font-size: 0.82em; line-height: 1.45; }
.page-home .pdf-quote > :first-child { color: var(--ink-3); }

/* "Same message, same count": the transcript line at the page's size, and a
   spreadsheet wide enough to read (it scrolls sideways if the card is
   narrower), whose text column wraps so the matched message shows in full. */
.page-home .pairing .paper:not(.has-table) .paper-head { margin-bottom: 12px; }
.page-home .pairing .pdf { font-size: 15px; }
.page-home .pairing .sheet { min-width: 520px; }
.page-home .pairing .sheet td:last-child { white-space: normal; }

/* How it works, step 2: the conversation list, zoomed from the full window. */
.page-home .how-shot.is-zoomed img { width: 250%; max-width: none; }

@media (max-width: 460px) {
  /* Under about 375px wide, 50px is too big for "Every message," on one line
     (16px gutters); scale it with the screen there. 390px and up stay 50px. */
  .page-home .h1-home { font-size: min(50px, calc((100vw - 32px) / 6.9)); }
  /* The pairing: drop date_local so the matched text fits without scrolling. */
  .page-home .pairing .sheet { min-width: 0; }
  .page-home .pairing .sheet :is(th, td):nth-child(2) { display: none; }
}


/* Download (download.html) --------------------------------------------------*/

/* "for Mac" in the h1 stays on one line, so the title breaks as
   "Download / TextParcel / for Mac" and never leaves "Mac" alone. */
.page-download .h1-tail { white-space: nowrap; }

/* The phone line under the button: only where the main pointer is a finger
   (phones and tablets, never a Mac). */
.page-download .touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .page-download .touch-only { display: block; }
}

/* The checksum card sits a step below the button group. The file name
   after the hash never breaks at its hyphens. */
.page-download .checksum-card { margin-top: 8px; }
.page-download .checksum .muted { white-space: nowrap; }

/* Drag to Applications: the well is the page color, which the mark's gap
   and lines already use; the mark is ink like the app's name. */
.page-download .drag .mark { color: var(--ink); }

/* The free-version band: the sentence left, the Buy button right; they
   stack when the row gets narrow. */
.page-download .free-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 64px;
}
.page-download .free-band > .stack { flex: 1 1 520px; min-width: 0; }
.page-download .free-band .intro { max-width: 34em; }

/* "What version 1 doesn't do": a title column wide enough for "What
   version 1" on one line (the HTML keeps "version 1" together). */
.page-download .side-head { flex-basis: 350px; }

/* The release note under it */
.page-download .release-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.page-download .release-note p { color: var(--ink-2); font-size: 16px; }


/* Buy (buy.html) ------------------------------------------------------------*/

/* The license card's column (.hero-art): the card, then the point-of-sale
   line under it. At most 520px wide, as on the artboard, also when it drops
   below the title (under about 1050px) and would otherwise run the full
   width. */
.page-buy .buy-card { max-width: 520px; gap: 16px; }

/* The card's label over the $19: the 80px "$" rises above the line's top,
   so the 6px gap of .price-head would nearly touch the label. */
.page-buy .license-top .price-head { gap: 14px; }

/* "What happens after you buy": the three steps sit in one row on anything
   wider than a phone and stack on phones. The auto-fit grid of .step-cols
   (300px columns) would leave step 3 alone on a second row from about 700
   to 1100px wide (tablets). */
.page-buy .step-cols { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) {
  .page-buy .step-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); }
}


/* Support (support.html) ----------------------------------------------------*/

/* Page head: the title column and the email button side by side, bottoms
   aligned (the artboard), then the topic cards. */
.page-support .support-intro { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.page-support .support-contact { gap: 6px; }
/* "Lost your key? Resend it" and the links in cards: 44px tall tap areas. */
.page-support .support-contact .link,
.page-support .card .link {
  display: inline-block;
  padding-block: calc((44px - 1.5em) / 2);
  line-height: 1.5;
}
.page-support .card .link { margin-block: -10px; }   /* the tap area, not extra space in the card */

/* Five in a row from 950px wide (where the auto-fit grid would start
   making rows of four), so a laptop never shows 4 + 1. */
@media (min-width: 950px) {
  .page-support .topic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* The line under the topic cards that names the other sections */
.page-support .topic-more { margin-top: 16px; }

/* Cards inside the sections: a little more air between their parts, the
   interface words in --ink, and steps set at the card's own size. */
.page-support .ledger-body .card { gap: 12px; }
.page-support .card strong { color: var(--ink); }
.page-support .card .steps-mono { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Android: the iPhone card carries on from step 1 in the Mac card. The two
   cards keep their own heights (one step against three), so the Mac card
   isn't a mostly empty box. */
.page-support .steps-mono[start="2"] { counter-reset: step 1; }
.page-support .grid-cards { align-items: start; }

/* Sync step 3: the sentence after its bulleted list */
.page-support .steps-mono ul + p { margin-top: 8px; }

/* The closing card: the artboard's Support sizes, a step smaller than
   Home's closing card. */
.page-support .cta-card { padding: clamp(32px, 4.5vw, 64px); }
.page-support .cta-card h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.015em; }

@media (max-width: 760px) {
  /* Topic cards: two columns, the fifth one full width (2 + 2 + 1, never a
     lone half-width card) */
  .page-support .topic-grid { grid-template-columns: 1fr 1fr; }
  .page-support .topic:last-child { grid-column: 1 / -1; }

  /* Apple's guides: one link per line, each with a 44px tap area */
  .page-support .links { gap: 0; }
  .page-support .links a { display: inline-block; padding-block: calc((44px - 1.55em) / 2); }
}

@media (max-width: 460px) {
  /* Five tall cards in one column would fill two screens; the two columns
     (760px query) get shorter cards here. */
  .page-support .topic-grid { gap: 10px; }
  .page-support .topic { min-height: 0; gap: 10px; padding: 16px; font-size: 15.5px; }
  /* The email button runs the full width, like the hero buttons on Home. */
  .page-support .support-contact { flex: 1 1 100%; }
  .page-support .support-contact .btn { width: 100%; }
}


/* Privacy (privacy.html) ----------------------------------------------------*/

/* The title block keeps the artboard's 900px column, so "Your messages stay
   on your Mac." sets on two lines on wide screens. */
.page-privacy .privacy-intro { max-width: 900px; }

/* "In short": the three cards in a row from 900px wide, one under another
   below it (never 2 + 1). */
.page-privacy .page-head .grid-cards-wide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .page-privacy .page-head .grid-cards-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The tables end on their last row: the section's own rule, 48px below,
   closes them, so two hairlines never run side by side. */
.page-privacy .table tbody tr:last-child > * { border-bottom: 0; }

/* The closing line under the ledger: the company and the address at the
   left, Terms at the right, wrapping on phones (24px between the rows, so
   the two links' tap areas don't overlap). */
.page-privacy .privacy-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  margin-top: 56px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
/* Both links are inline, so this padding gives a 44px tap area without
   moving anything. */
.page-privacy .privacy-contact a { padding-block: 13px; }
.page-privacy .privacy-contact p a { color: var(--ink); font-weight: 500; }
.page-privacy .privacy-contact p a:hover { color: var(--accent); }


/* Terms (terms.html) --------------------------------------------------------*/

/* Each heading sits on the first line of its text, not above it. */
.page-terms .ledger-row { align-items: baseline; }

/* Legal text at a reading measure (about 75 characters a line) rather than
   the full body column; the column itself keeps its width. */
.page-terms .ledger-body p { max-width: 40em; }


/* Resend, Thanks and 404 (main.page-utility) --------------------------------*/

/* A short page fills the window: the footer sits at the bottom and the
   content is centred in the space above it, so a tall screen shows no empty
   strip under the footer. Browsers without :has() simply end the page
   higher. */
body:has(> main.page-utility) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body:has(> main.page-utility) > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The 404's buttons sit a little further from the sentence above them than
   the stack's 16px. */
.page-utility .page-head .actions { margin-top: 16px; }


/* 28b. Guides ---------------------------------------------------------------
   The article pages (guides/*.html and sample-export.html, on
   <main class="page-guide">) and the guides index (guides/index.html, on
   <main class="page-guides">). Built from the components above: the eyebrow
   row, .card with .tick-list, .steps-ruled with .step-num, .steps-mono,
   .shot, .pairing with .sheet, .table, .faq, .ledger and .cta-card. These
   rules add only the article's shape: the breadcrumb, a reading measure
   (about 68 characters for running text, figures wider), the short answer,
   the "On this page" list (a sticky column from 1100px wide, at the top of
   the article below that), figures and their captions, and the cards for
   related guides. Tokens only, so both themes follow; every screenshot is a
   <picture> with its -dark.png twin, swapped by site.js like everywhere
   else. Numbered 28b so section 29 keeps the number DESIGN.md and the
   developer docs give it. */

/* Breadcrumb: Home › Guides › this page, in the eyebrow's mono. The links
   get a 44px tall tap area from padding and an equal negative margin, so
   nothing moves. */
.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.crumbs-list > li { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; }
.crumbs-list > li + li::before { content: "›"; color: var(--ink-3); }
.crumbs-list a {
  display: inline-block;
  margin-block: -11px;
  padding-block: 11px;
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs-list a:hover { color: var(--accent); text-decoration: underline; }

/* The page head: the breadcrumb, the eyebrow row (kind · byline · last
   updated), the h1 a step smaller than the site's (article titles run
   long), then the short answer or the lede. */
.page-guide .page-head,
.page-guides .page-head { padding-bottom: clamp(40px, 5vw, 64px); }
.guide-head { display: flex; flex-direction: column; gap: 22px; }
.page-guide .guide-head h1 { max-width: 15em; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.025em; }
.guide-head .lede { max-width: 36em; }

/* The short answer: two to four sentences on a card under the title, with
   an accent label. */
.answer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46em;
  padding: clamp(20px, 2.6vw, 28px) clamp(20px, 3vw, 32px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.answer > p:not(.label) { color: var(--ink); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; }

/* The article and its "On this page" list: one column with the list first;
   from 1100px wide the list is a sticky column at the right. */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.guide-toc { display: flex; flex-direction: column; gap: 12px; max-width: 46em; }
.toc-list { border-top: 1.5px solid var(--rule-strong); counter-reset: toc; }
.toc-list > li { border-bottom: 1px solid var(--rule); counter-increment: toc; }
.toc-list a {
  display: flex;
  gap: 12px;
  padding-block: 11px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  padding-top: 0.2em;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.toc-list a:hover { color: var(--accent); }
@media (min-width: 1100px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) 248px; column-gap: clamp(48px, 5vw, 80px); align-items: start; }
  .guide-toc { position: sticky; top: calc(var(--header-h) + 32px); grid-column: 2; grid-row: 1; }
  .guide-body { grid-column: 1; grid-row: 1; }
}

/* The article body: sections under a hairline, running text at a reading
   measure, figures wider. */
.guide-body { display: flex; flex-direction: column; min-width: 0; }
.guide-sec { display: flex; flex-direction: column; gap: 20px; padding-block: 44px; border-top: 1px solid var(--rule); }
.guide-sec:first-child { padding-top: 0; border-top: 0; }
.guide-sec:last-child { padding-bottom: 0; }
.guide-sec > h2 { max-width: 20em; }
.guide-sec > :is(p, ul, ol, .card, .faq, .note, .table-scroll, .actions) { max-width: 68ch; }
.guide-sec > p,
.guide-sec > ul:not([class]),
.guide-sec > ol:not([class]) { font-size: 17px; line-height: 1.65; }
.guide-sec > ul:not([class]) > li + li { margin-top: 10px; }
.guide-sec strong { color: var(--ink); }
.guide-sec .steps-mono { line-height: 1.6; }

/* "Before you begin": a card with a label and checked lines */
.guide-box { gap: 14px; padding: 24px 26px; }
.guide-box .tick-list a { font-weight: 500; }

/* Numbered steps (the four TextParcel steps): .steps-ruled with serif
   numbers, a title, the words at body size, and a screenshot under them. On
   phones the number sits over the title, so the figure gets the full width. */
.guide-steps { max-width: 880px; }
.guide-steps > li { grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding-block: 32px; }
.guide-steps > li:last-child { padding-bottom: 0; }
.guide-steps > li > div { gap: 14px; }
.guide-steps .step-num { font-size: 44px; }
.guide-steps h3 { margin-top: 6px; }
.guide-steps p { max-width: 68ch; color: var(--ink); font-size: 17px; line-height: 1.65; }
.guide-steps .guide-fig { margin-top: 6px; }

/* Figures: a real screenshot in the .shot frame, light and dark swapped by
   site.js, and a mono caption under it. Tall ones (.is-narrow) and the
   export's own page (.is-page) are held narrower. */
.guide-fig { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.guide-fig.is-narrow { max-width: 560px; }
.guide-fig.is-page { max-width: 440px; }
.guide-fig.is-page .page-crop { border: 1px solid var(--rule); border-radius: 8px; }
.guide-fig .caption { max-width: 68ch; }

/* "Same message, same count": the real page image (assets/sample-page.png,
   1600 by 2071) cut to the Tuesday, September 22 block (the 1380 by 735 box
   at x 110, y 995), joined by the dashed accent line to the matching rows of
   the real spreadsheet. Width and left are percentages of the box's width,
   top of its height. */
.guide-pair { max-width: 760px; }
.guide-pair > .paper.has-image { padding: 0; overflow: hidden; }
.page-crop { position: relative; aspect-ratio: 1380 / 735; overflow: hidden; }
.page-crop img {
  position: absolute;
  top: -135.374%;
  left: -7.971%;
  width: 115.942%;
  max-width: none;
  height: auto;
}
/* The whole page down to its last message, without the footer line (the
   1600 by 1800 box at the top) */
.page-crop.is-top { aspect-ratio: 1600 / 1800; }
.page-crop.is-top img { position: static; width: 100%; }
.guide-pair .sheet { min-width: 600px; }
.guide-pair .sheet td:last-child { white-space: normal; }
.guide-pair .caption { margin-top: 14px; }

/* After the steps: one Download button and a line beside it */
.guide-inline-cta { margin-top: 8px; }
.guide-inline-cta p { color: var(--ink-2); font-size: 15px; }

/* Related guides: link cards, one column on phones and three in a row from
   761px (never 2 + 1) */
.guide-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 761px) {
  .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.guide-cards > a.card { gap: 6px; color: var(--ink); text-decoration: none; transition: border-color 150ms; }
.guide-cards > a.card:hover { border-color: var(--rule-strong); }
.guide-cards > a.card:hover .title-sm { color: var(--accent); }

/* The guides index: each group a .ledger row, its guides in hairline rows.
   A guide that isn't published yet is plain text with a label, never a
   link. */
.guide-list { display: flex; flex-direction: column; }
.guide-list > li { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.guide-list > li:first-child { padding-top: 0; }
.guide-list > li:last-child { padding-bottom: 0; border-bottom: 0; }
.guide-list h3 a { color: var(--accent); text-decoration: none; }
.guide-list h3 a:hover { color: var(--accent-hover); text-decoration: underline; }
.guide-list p:not(.label) { max-width: 40em; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.guide-list .is-soon h3 { color: var(--ink-2); }

@media (max-width: 760px) {
  .guide-sec { padding-block: 36px; }
}

@media (max-width: 460px) {
  .guide-steps > li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 28px; }
  .guide-steps .step-num { font-size: 36px; }
  .guide-box { padding: 20px; }
  /* The pairing: drop the date and the kind so the text fits without scrolling */
  .guide-pair .sheet { min-width: 0; }
  .guide-pair .sheet :is(th, td):is(:nth-child(2), :nth-child(4)) { display: none; }
}


/* 28c. Guides: video, ways, annotated page ---------------------------------
   Added with "How to print text messages from your iPhone"
   (guides/print-text-messages-from-iphone.html, on
   <main class="page-guide page-guide-video">). Additive only: nothing in
   28b changes, so the guides already published keep their look. Tokens
   only, so both themes follow. No motion: the video plays only when the
   visitor presses play, and the chapter buttons only seek it.
   - .guide-video: the how-to video under the short answer, wider than the
     text (up to 1040px), in a 16:9 --surface frame with a 1px rule and a
     12px radius, no shadow. The video and its poster stay light in dark,
     like the sample page in its paper. Under it the mono caption and the
     chapters (ol.chapters): plain text without the script; site.js turns
     each item into a pill button that plays the video from there.
   - .ways: "Three ways at a glance", three cards on the band, one column
     on phones and three in a row from 761px (never 2 + 1), each with four
     hairline rows under mono labels; the third has the 1.5px strong border.
   - .annotated: the real sample page cut to the Tuesday, September 22
     block (.page-crop.is-tuesday) with numbered markers (.pin, Home's
     badges), beside a .numbered list; stacked until 1000px. */

/* The video, its caption and its chapters */
.guide-video { display: flex; flex-direction: column; gap: 14px; max-width: 1040px; margin-top: 6px; }
.video-fig { display: flex; flex-direction: column; gap: 10px; }
.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }

.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.chapter-time { color: var(--accent); font-weight: 500; }
.js .chapters { gap: 8px; }
.chapters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  letter-spacing: inherit;
  text-align: start;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
}
.chapters button:hover { border-color: var(--accent); color: var(--ink); }

/* Three ways at a glance (on the band) */
.ways-wrap { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 40px); }
.ways-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 48px; }
.ways-head > h2 { max-width: 14em; }
.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 761px) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.way { gap: 12px; padding: 24px; }
/* Side by side, each card's number, title, rows and link share rows with
   the other cards (subgrid), so the hairline rows start level even when a
   title runs to two lines. Without subgrid each card simply stacks. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .ways { grid-template-rows: auto auto 1fr auto; row-gap: 12px; }
    .way { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
  }
}
.way-num { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.card.way h3 { font-size: clamp(22px, 2vw, 26px); }
.way-facts { display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid var(--rule-soft); }
.way-facts > div { display: flex; flex-direction: column; gap: 2px; padding-block: 11px; border-bottom: 1px solid var(--rule-soft); }
.way-facts dt { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; }
.way-facts dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.45; }
.way .link-arrow { margin-top: auto; align-self: flex-start; }

/* Section text in the article: a sub-heading after running text gets a
   little air above it (Print the PDF, If something's missing). */
.page-guide-video .guide-sec > h3 { margin-top: 8px; }

/* What prints on every message: the page and the list beside it from
   1000px, stacked below. The caption runs under both. */
.annotated { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 880px; }
@media (min-width: 1000px) {
  .annotated { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px 36px; align-items: start; }
}
.annotated > .paper.has-image { padding: 0; overflow: hidden; }
.annotated > .caption { grid-column: 1 / -1; }
.annotated-list { gap: 18px; }
.annotated-list p { font-size: 15.5px; }

/* The real page image (assets/sample-page.png, 1600 by 2071) cut to the
   Tuesday, September 22 block, 20:10:36 to 20:16:35: the 990 by 735 box at
   x 80, y 995 (narrower than 28b's crop, so the text is larger, with a
   gutter at the left for markers). Width and left are percentages of the
   box's width, top of its height. The page's footer is never in the box. */
.page-crop.is-tuesday { aspect-ratio: 990 / 735; }
.page-crop.is-tuesday img { top: -135.374%; left: -8.081%; width: 161.616%; }

/* The markers, centred on points of the page measured in its own pixels
   (x - 80) / 990 and (y - 995) / 735: 1 in the gutter beside the first
   time (y 1077); 2 after the delivered and read line (ends x 932, y 1100,
   a little high so it clears the longer line under it);
   3 beside the photo (right edge x 527, middle y 1295); 4 in the gutter
   beside the reaction line (y 1482); 5 after Jordan Reyes's name and
   number line (ends x 814, y 1528). The markers are a size smaller than
   Home's, to suit the page's smaller type. */
.pin { position: absolute; width: 18px; height: 18px; font-size: 10px; transform: translate(-50%, -50%); }
.pin-1 { left: 3.586%; top: 11.156%; }
.pin-2 { left: 89.091%; top: 14.286%; }
.pin-3 { left: 48.788%; top: 40.816%; }
.pin-4 { left: 3.586%; top: 66.259%; }
.pin-5 { left: 77.778%; top: 72.517%; }

@media (max-width: 760px) {
  .chapters button { min-height: 44px; }
}

@media (max-width: 460px) {
  .way { padding: 20px; }
  .pin { width: 16px; height: 16px; font-size: 9px; }
}


/* 28d. Guides hub and guide cards ------------------------------------------
   The guides index as a blog-style hub (guides/index.html, on
   <main class="page-guides">), and the same cards in their compact form on
   Home ("From the guides"). Additive only: nothing in 28b or 28c changes,
   so the guides keep their look. Tokens only, so both themes follow; no
   shadow and no motion (hover is a 150ms color change, never a lift).
   - .hub: the hub's parts stacked: the featured card, then each section
     under a mono kicker heading (.hub-kicker) and the strong rule.
   - .hub-feature: the newest guide as a large card, its picture at the left
     (7 of 12 columns) and its words at the right from 1000px, stacked
     below that. When a newer guide is published it takes this slot and the
     previous one moves to the first card of the grid.
   - .hub-grid of .hub-card: any number of cards, newest first. One column
     on phones, two in a row from 761px, three from 1000px. It is built on
     six tracks so a row never holds one card alone: from 761px an odd
     count ends on a row of three; from 1000px two left over share the last
     row and one left over turns the last four into two rows of two. A lone
     card (a grid of one) takes the whole row.
   - .hub-card.is-compact: picture, label and title only (Home).
   - .hub-media: a 16:9 window: the video's poster (light in both themes,
     like the video), a real screenshot on the band cut from the top (its
     dark twin swapped by site.js), or the sample page on paper
     (.page-crop.is-card).
   The whole card is the link: the title's link (.hub-link) stretches over
   the card with an ::after, so there is one link per card and its name is
   the title. The featured card's "Read the guide" sits above it. */

.hub { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.hub-sec { display: flex; flex-direction: column; }
.hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-bottom: 12px;
}
.hub-kicker {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* The grid sits under the same strong rule the ledger opens with */
.hub-sec > .hub-grid { padding-top: 24px; border-top: 1.5px solid var(--rule-strong); }

/* "Get new guides by RSS": a small link with the feed icon, 44px tall */
.hub-rss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}
.hub-rss svg { flex: none; color: var(--accent); }
.hub-rss:hover { color: var(--accent); }

/* The window every card opens with */
.hub-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--band); }
.hub-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-media.is-poster { background: var(--surface); }
.hub-media.is-poster img { object-position: 0 50%; }   /* cut from the right, so the headline stays whole */
.hub-media.is-shot,
.hub-media.is-paper { padding: clamp(14px, 1.8vw, 22px) clamp(14px, 1.8vw, 22px) 0; }
.hub-media.is-shot img {
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  object-position: 50% 0;
}
/* The sample page (assets/sample-page.png, 1600 by 2071) from its top: the
   box is x 110 to 1490 of the page, from y 100 down (the heading Jordan
   Reyes and the first messages). Margins are percentages of the box's
   width (1380 page pixels), so the cut is the same at any card size. */
.page-crop.is-card {
  aspect-ratio: auto;
  height: 100%;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.page-crop.is-card img {
  position: static;
  width: 115.942%;
  height: auto;
  max-width: none;
  margin: -7.246% 0 0 -7.971%;
  object-fit: fill;
}

/* "Video · 1:42" on a poster: mono on the dark ink in both themes, since
   the poster stays light */
.hub-badge {
  position: absolute;
  left: clamp(10px, 1.4vw, 16px);
  bottom: clamp(10px, 1.4vw, 16px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--dark-ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.hub-badge svg { flex: none; fill: currentColor; }

/* The card link: the title's link covers the whole card */
.hub-link { color: inherit; text-decoration: none; transition: color 150ms; }
.hub-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@supports selector(:has(a)) {
  .hub-link:focus-visible { outline: none; }
  :is(.hub-card, .hub-feature):has(.hub-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
}
.hub-topic { color: var(--accent); }

/* The featured card */
.hub-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 150ms;
}
.hub-feature > .hub-media { border-bottom: 1px solid var(--rule); }
.hub-feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(22px, 3.4vw, 44px);
}
.hub-feature-title { max-width: 15em; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.018em; text-wrap: balance; }
.hub-feature-body > p:not(.eyebrow) { max-width: 34em; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.hub-feature-body .link-arrow { position: relative; z-index: 2; margin-block: -6px -12px; }
.hub-feature:hover { border-color: var(--rule-strong); }
.hub-feature:hover .hub-link { color: var(--accent); }
@media (min-width: 1000px) {
  /* The picture keeps its 7 columns and is at least 16:9 (the ::before, a
     padding of 9/16 of its width); when the words beside it run taller, it
     grows with them and the poster is cut from the right. */
  .hub-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hub-feature > .hub-media { aspect-ratio: auto; align-self: stretch; border-bottom: 0; border-right: 1px solid var(--rule); }
  .hub-feature > .hub-media::before { content: ""; display: block; padding-top: 56.25%; }
  .hub-feature > .hub-media > img { position: absolute; inset: 0; }
  .hub-feature-body { justify-content: center; }
}

/* The cards */
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 150ms;
}
.hub-card > .hub-media { flex: none; border-bottom: 1px solid var(--rule); }
.hub-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.hub-card-title { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; text-wrap: balance; }
.hub-card-body > p:not(.label, .hub-meta) { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.hub-card:hover { border-color: var(--rule-strong); }
.hub-card:hover .hub-link { color: var(--accent); }

/* Compact (Home): picture, label, title */
.hub-card.is-compact .hub-card-body { gap: 8px; padding: 18px 20px 22px; }
.hub-card.is-compact .hub-card-title { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.2; }

/* The grid rule at any count (see the top of this section) */
@media (min-width: 761px) {
  .hub-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hub-grid > * { grid-column: span 3; }
  /* an odd count (3, 5, 7...) ends on a row of three */
  .hub-grid > :first-child:nth-last-child(2n+3):nth-last-child(-n+3),
  .hub-grid > :first-child:nth-last-child(2n+3) ~ :nth-last-child(-n+3) { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .hub-grid > * { grid-column: span 2; }
  /* two left over (2, 5, 8...): they share the last row;
     one left over (4, 7, 10...): the last four go two and two */
  .hub-grid > :first-child:nth-last-child(3n+2):nth-last-child(-n+2),
  .hub-grid > :first-child:nth-last-child(3n+2) ~ :nth-last-child(-n+2),
  .hub-grid > :first-child:nth-last-child(3n+4):nth-last-child(-n+4),
  .hub-grid > :first-child:nth-last-child(3n+4) ~ :nth-last-child(-n+4) { grid-column: span 3; }
}
.hub-grid > :only-child { grid-column: 1 / -1; }

@media (max-width: 460px) {
  .hub-card-body { padding: 20px; }
  .hub-badge { font-size: 11px; padding: 4px 9px 4px 8px; }
}


/* 29. The license service's pages --------------------------------------------
   The reset link in a key email opens a page that the license service writes
   itself (crates/tp-license-service/src/pages.rs), served from this site at
   /api/reset/... with this stylesheet and site.js. That page still carries the
   previous site's markup: a plain list and a loose theme button in the
   header, the old page-stack mark, .page, .headline, .cta, .text-link, and
   .footer-meta. These rules dress it in the current design, in both themes,
   until the service uses docs/dev/site-snippets/; then this section can go.
   None of these selectors match the site's own pages. */

/* Header: the links in a row, the theme button after them */
.site-nav > ul:not(.nav-links) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(16px, 2.2vw, 28px);
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  vertical-align: middle;
}
.site-nav > ul:not(.nav-links) > li + li { margin-top: 0; }
.site-nav > ul:not(.nav-links) a,
.site-footer nav:not(.footer-nav) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.site-nav > ul:not(.nav-links) a:hover,
.site-footer nav:not(.footer-nav) a:hover { color: var(--accent); }
.site-nav > .theme-toggle { vertical-align: middle; margin-inline-start: clamp(12px, 2vw, 20px); }

/* The old mark: the back page in --ink-3, the front in the text color, the
   line in --accent. The service's source now writes the E1 mark, which needs
   none of this; these three rules go once the rebuilt service is live. */
.mark-back { fill: var(--ink-3); }
.mark-back ~ path { fill: currentColor; }
.mark-line { fill: var(--accent); }

/* The page: a centred head like Resend and Thanks, filling the window */
body:has(> main > .page) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> main > .page) > main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: clamp(48px, 7vw, 104px) var(--section);
}
.page .headline { max-width: 14em; }
.page .lede { max-width: 33em; }
.page .cta { margin-top: 8px; }
.text-link { font-size: 15px; font-weight: 600; }

/* Footer: the five links in a row, then the address and the company line */
.site-footer nav:not(.footer-nav) ul { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 0; list-style: none; font-size: 15px; }
.site-footer nav:not(.footer-nav) li + li { margin-top: 0; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}
.footer-meta a { color: var(--ink); }

@media (max-width: 760px) {
  /* Row one: the wordmark (placed by the header rules) and the theme button
     at the right; row two: the links */
  .site-nav > ul:not(.nav-links) { display: flex; margin-top: 44px; column-gap: 24px; }
  .site-nav > .theme-toggle { position: absolute; top: 16px; right: 0; margin: 0; }
}
